xmirror-components 1.0.34-alpha.2 → 1.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dist/index.cjs +23 -23
- package/build/dist/index.mjs +999 -991
- package/build/es/hooks/useSearchParams/index.js +3 -0
- package/build/es/hooks/useTable/index.js +10 -1
- package/build/es/hooks/useTable/types.d.ts +4 -0
- package/build/lib/hooks/useSearchParams/index.js +3 -0
- package/build/lib/hooks/useTable/index.js +10 -1
- package/build/lib/index.d.ts +4 -0
- package/build/package.json +1 -1
- package/build/types/hooks/useTable/types.d.ts +4 -0
- package/package.json +1 -1
package/build/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react"),Ee=require("antd"),Lt=require("react-dom"),qt=require("@ant-design/icons");function fl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const D=fl(M);var jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function nn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Nr={exports:{}},Jt={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.js
|
|
4
4
|
*
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var ao;function pl(){return ao||(ao=1,process.env.NODE_ENV!=="production"&&(function(){function e(
|
|
17
|
+
*/var ao;function pl(){return ao||(ao=1,process.env.NODE_ENV!=="production"&&(function(){function e(O){if(O==null)return null;if(typeof O=="function")return O.$$typeof===k?null:O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case S:return"Fragment";case c:return"Profiler";case h:return"StrictMode";case x:return"Suspense";case f:return"SuspenseList";case A:return"Activity"}if(typeof O=="object")switch(typeof O.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),O.$$typeof){case E:return"Portal";case v:return O.displayName||"Context";case g:return(O._context.displayName||"Context")+".Consumer";case p:var F=O.render;return O=O.displayName,O||(O=F.displayName||F.name||"",O=O!==""?"ForwardRef("+O+")":"ForwardRef"),O;case P:return F=O.displayName||null,F!==null?F:e(O.type)||"Memo";case j:F=O._payload,O=O._init;try{return e(O(F))}catch{}}return null}function t(O){return""+O}function r(O){try{t(O);var F=!1}catch{F=!0}if(F){F=console;var z=F.error,W=typeof Symbol=="function"&&Symbol.toStringTag&&O[Symbol.toStringTag]||O.constructor.name||"Object";return z.call(F,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",W),t(O)}}function n(O){if(O===S)return"<>";if(typeof O=="object"&&O!==null&&O.$$typeof===j)return"<...>";try{var F=e(O);return F?"<"+F+">":"<...>"}catch{return"<...>"}}function a(){var O=B.A;return O===null?null:O.getOwner()}function o(){return Error("react-stack-top-frame")}function i(O){if(U.call(O,"key")){var F=Object.getOwnPropertyDescriptor(O,"key").get;if(F&&F.isReactWarning)return!1}return O.key!==void 0}function s(O,F){function z(){X||(X=!0,console.error("%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://react.dev/link/special-props)",F))}z.isReactWarning=!0,Object.defineProperty(O,"key",{get:z,configurable:!0})}function l(){var O=e(this.type);return ue[O]||(ue[O]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),O=this.props.ref,O!==void 0?O:null}function u(O,F,z,W,ee,te){var H=z.ref;return O={$$typeof:w,type:O,key:F,props:z,_owner:W},(H!==void 0?H:null)!==null?Object.defineProperty(O,"ref",{enumerable:!1,get:l}):Object.defineProperty(O,"ref",{enumerable:!1,value:null}),O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(O,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(O,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ee}),Object.defineProperty(O,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:te}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O}function m(O,F,z,W,ee,te){var H=F.children;if(H!==void 0)if(W)if(L(H)){for(W=0;W<H.length;W++)d(H[W]);Object.freeze&&Object.freeze(H)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else d(H);if(U.call(F,"key")){H=e(O);var ne=Object.keys(F).filter(function(se){return se!=="key"});W=0<ne.length?"{key: someKey, "+ne.join(": ..., ")+": ...}":"{key: someKey}",N[H+W]||(ne=0<ne.length?"{"+ne.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
18
|
let props = %s;
|
|
19
19
|
<%s {...props} />
|
|
20
20
|
React keys must be passed directly to JSX without using spread:
|
|
21
21
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,W,
|
|
22
|
+
<%s key={someKey} {...props} />`,W,H,ne,H),N[H+W]=!0)}if(H=null,z!==void 0&&(r(z),H=""+z),i(F)&&(r(F.key),H=""+F.key),"key"in F){z={};for(var le in F)le!=="key"&&(z[le]=F[le])}else z=F;return H&&s(z,typeof O=="function"?O.displayName||O.name||"Unknown":O),u(O,H,z,a(),ee,te)}function d(O){b(O)?O._store&&(O._store.validated=1):typeof O=="object"&&O!==null&&O.$$typeof===j&&(O._payload.status==="fulfilled"?b(O._payload.value)&&O._payload.value._store&&(O._payload.value._store.validated=1):O._store&&(O._store.validated=1))}function b(O){return typeof O=="object"&&O!==null&&O.$$typeof===w}var y=M,w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),g=Symbol.for("react.consumer"),v=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),A=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),B=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U=Object.prototype.hasOwnProperty,L=Array.isArray,J=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(O){return O()}};var X,ue={},Z=y.react_stack_bottom_frame.bind(y,o)(),we=J(n(o)),N={};Zt.Fragment=S,Zt.jsx=function(O,F,z){var W=1e4>B.recentlyCreatedOwnerStacks++;return m(O,F,z,!1,W?Error("react-stack-top-frame"):Z,W?J(n(O)):we)},Zt.jsxs=function(O,F,z){var W=1e4>B.recentlyCreatedOwnerStacks++;return m(O,F,z,!0,W?Error("react-stack-top-frame"):Z,W?J(n(O)):we)}})()),Zt}var oo;function hl(){return oo||(oo=1,process.env.NODE_ENV==="production"?Nr.exports=dl():Nr.exports=pl()),Nr.exports}var $=hl();function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hr.apply(null,arguments)}function $i(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function aa(e,t){return aa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},aa(e,t)}function Ui(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,aa(e,t)}var Ar={exports:{}},Mr={exports:{}},me={};/** @license React v16.13.1
|
|
23
23
|
* react-is.production.min.js
|
|
24
24
|
*
|
|
25
25
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -33,12 +33,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the MIT license found in the
|
|
35
35
|
* LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/var so;function gl(){return so||(so=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,c=e?Symbol.for("react.scope"):60119;function g(C){return typeof C=="string"||typeof C=="function"||C===n||C===u||C===o||C===a||C===d||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===w||C.$$typeof===y||C.$$typeof===i||C.$$typeof===s||C.$$typeof===m||C.$$typeof===S||C.$$typeof===h||C.$$typeof===c||C.$$typeof===E)}function v(C){if(typeof C=="object"&&C!==null){var _e=C.$$typeof;switch(_e){case t:var Be=C.type;switch(Be){case l:case u:case n:case o:case a:case d:return Be;default:var vt=Be&&Be.$$typeof;switch(vt){case s:case m:case w:case y:case i:return vt;default:return _e}}case r:return _e}}}var p=l,x=u,f=s,
|
|
36
|
+
*/var so;function gl(){return so||(so=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,c=e?Symbol.for("react.scope"):60119;function g(C){return typeof C=="string"||typeof C=="function"||C===n||C===u||C===o||C===a||C===d||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===w||C.$$typeof===y||C.$$typeof===i||C.$$typeof===s||C.$$typeof===m||C.$$typeof===S||C.$$typeof===h||C.$$typeof===c||C.$$typeof===E)}function v(C){if(typeof C=="object"&&C!==null){var _e=C.$$typeof;switch(_e){case t:var Be=C.type;switch(Be){case l:case u:case n:case o:case a:case d:return Be;default:var vt=Be&&Be.$$typeof;switch(vt){case s:case m:case w:case y:case i:return vt;default:return _e}}case r:return _e}}}var p=l,x=u,f=s,P=i,j=t,A=m,k=n,B=w,U=y,L=r,J=o,X=a,ue=d,Z=!1;function we(C){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(C)||v(C)===l}function N(C){return v(C)===u}function O(C){return v(C)===s}function F(C){return v(C)===i}function z(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function W(C){return v(C)===m}function ee(C){return v(C)===n}function te(C){return v(C)===w}function H(C){return v(C)===y}function ne(C){return v(C)===r}function le(C){return v(C)===o}function se(C){return v(C)===a}function Ae(C){return v(C)===d}ge.AsyncMode=p,ge.ConcurrentMode=x,ge.ContextConsumer=f,ge.ContextProvider=P,ge.Element=j,ge.ForwardRef=A,ge.Fragment=k,ge.Lazy=B,ge.Memo=U,ge.Portal=L,ge.Profiler=J,ge.StrictMode=X,ge.Suspense=ue,ge.isAsyncMode=we,ge.isConcurrentMode=N,ge.isContextConsumer=O,ge.isContextProvider=F,ge.isElement=z,ge.isForwardRef=W,ge.isFragment=ee,ge.isLazy=te,ge.isMemo=H,ge.isPortal=ne,ge.isProfiler=le,ge.isStrictMode=se,ge.isSuspense=Ae,ge.isValidElementType=g,ge.typeOf=v})()),ge}var lo;function Wi(){return lo||(lo=1,process.env.NODE_ENV==="production"?Mr.exports=ml():Mr.exports=gl()),Mr.exports}/*
|
|
37
37
|
object-assign
|
|
38
38
|
(c) Sindre Sorhus
|
|
39
39
|
@license MIT
|
|
40
|
-
*/var Sn,uo;function vl(){if(uo)return Sn;uo=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(i).map(function(m){return i[m]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(m){u[m]=m}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sn=a()?Object.assign:function(o,i){for(var s,l=n(o),u,m=1;m<arguments.length;m++){s=Object(arguments[m]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){u=e(s);for(var b=0;b<u.length;b++)r.call(s,u[b])&&(l[u[b]]=s[u[b]])}}return l},Sn}var wn,co;function va(){if(co)return wn;co=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wn=e,wn}var Rn,fo;function qi(){return fo||(fo=1,Rn=Function.call.bind(Object.prototype.hasOwnProperty)),Rn}var Pn,po;function yl(){if(po)return Pn;po=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=va(),r={},n=qi();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function a(o,i,s,l,u){if(process.env.NODE_ENV!=="production"){for(var m in o)if(n(o,m)){var d;try{if(typeof o[m]!="function"){var b=Error((l||"React class")+": "+s+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}d=o[m](i,m,l,s,null,t)}catch(w){d=w}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var y=u?u():"";e("Failed "+s+" type: "+d.message+(y??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Pn=a,Pn}var On,ho;function bl(){if(ho)return On;ho=1;var e=Wi(),t=vl(),r=va(),n=qi(),a=yl(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return On=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function d(
|
|
41
|
-
Valid keys: `+JSON.stringify(Object.keys(A),null," "));var C=Ae(B,le,W,Z,ee+"."+le,r);if(C)return C}return null}return S(P)}function Y(A){switch(typeof A){case"number":case"string":case"undefined":return!0;case"boolean":return!A;case"object":if(Array.isArray(A))return A.every(Y);if(A===null||s(A))return!0;var P=d(A);if(P){var k=P.call(A),U;if(P!==A.entries){for(;!(U=k.next()).done;)if(!Y(U.value))return!1}else for(;!(U=k.next()).done;){var W=U.value;if(W&&!Y(W[1]))return!1}}else return!1;return!0;default:return!1}}function X(A,P){return A==="symbol"?!0:P?P["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&P instanceof Symbol:!1}function te(A){var P=typeof A;return Array.isArray(A)?"array":A instanceof RegExp?"object":X(P,A)?"symbol":P}function re(A){if(typeof A>"u"||A===null)return""+A;var P=te(A);if(P==="object"){if(A instanceof Date)return"date";if(A instanceof RegExp)return"regexp"}return P}function ie(A){var P=re(A);switch(P){case"array":case"object":return"an "+P;case"boolean":case"date":case"regexp":return"a "+P;default:return P}}function we(A){return!A.constructor||!A.constructor.name?b:A.constructor.name}return y.checkPropTypes=a,y.resetWarningCache=a.resetWarningCache,y.PropTypes=y,y},On}var _n,mo;function El(){if(mo)return _n;mo=1;var e=va();function t(){}function r(){}return r.resetWarningCache=t,_n=function(){function n(i,s,l,u,m,d){if(d!==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}}n.isRequired=n;function a(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},_n}var go;function Er(){if(go)return Ar.exports;if(go=1,process.env.NODE_ENV!=="production"){var e=Wi(),t=!0;Ar.exports=bl()(e.isElement,t)}else Ar.exports=El()();return Ar.exports}var xl=Er();const oe=nn(xl);function Sl(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function wl(e,t){e.classList?e.classList.add(t):Sl(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function vo(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Rl(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=vo(e.className,t):e.setAttribute("class",vo(e.className&&e.className.baseVal||"",t))}const yo={disabled:!1};var Pl=process.env.NODE_ENV!=="production"?oe.oneOfType([oe.number,oe.shape({enter:oe.number,exit:oe.number,appear:oe.number}).isRequired]):null,Ol=process.env.NODE_ENV!=="production"?oe.oneOfType([oe.string,oe.shape({enter:oe.string,exit:oe.string,active:oe.string}),oe.shape({enter:oe.string,enterDone:oe.string,enterActive:oe.string,exit:oe.string,exitDone:oe.string,exitActive:oe.string})]):null;const Bi=I.createContext(null);var Hi=function(t){return t.scrollTop},fr="unmounted",xt="exited",St="entering",kt="entered",oa="exiting",rt=(function(e){Ui(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,s=i&&!i.isMounting?n.enter:n.appear,l;return o.appearStatus=null,n.in?s?(l=xt,o.appearStatus=St):l=kt:n.unmountOnExit||n.mountOnEnter?l=fr:l=xt,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===fr?{status:xt}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==St&&i!==kt&&(o=St):(i===St||i===kt)&&(o=oa)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,s;return o=i=s=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,s=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:s}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===St){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Lt.findDOMNode(this);i&&Hi(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xt&&this.setState({status:fr})},r.performEnter=function(a){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:a,l=this.props.nodeRef?[s]:[Lt.findDOMNode(this),s],u=l[0],m=l[1],d=this.getTimeouts(),b=s?d.appear:d.enter;if(!a&&!i||yo.disabled){this.safeSetState({status:kt},function(){o.props.onEntered(u)});return}this.props.onEnter(u,m),this.safeSetState({status:St},function(){o.props.onEntering(u,m),o.onTransitionEnd(b,function(){o.safeSetState({status:kt},function(){o.props.onEntered(u,m)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Lt.findDOMNode(this);if(!o||yo.disabled){this.safeSetState({status:xt},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:oa},function(){a.props.onExiting(s),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:xt},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,a(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:Lt.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=l[0],m=l[1];this.props.addEndListener(u,m)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===fr)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=$i(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return I.createElement(Bi.Provider,{value:null},typeof i=="function"?i(a,s):I.cloneElement(I.Children.only(i),s))},t})(I.Component);rt.contextType=Bi;rt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:oe.shape({current:typeof Element>"u"?oe.any:function(e,t,r,n,a,o){var i=e[t];return oe.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,r,n,a,o)}}),children:oe.oneOfType([oe.func.isRequired,oe.element.isRequired]).isRequired,in:oe.bool,mountOnEnter:oe.bool,unmountOnExit:oe.bool,appear:oe.bool,enter:oe.bool,exit:oe.bool,timeout:function(t){var r=Pl;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return r.apply(void 0,[t].concat(a))},addEndListener:oe.func,onEnter:oe.func,onEntering:oe.func,onEntered:oe.func,onExit:oe.func,onExiting:oe.func,onExited:oe.func}:{};function At(){}rt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:At,onEntering:At,onEntered:At,onExit:At,onExiting:At,onExited:At};rt.UNMOUNTED=fr;rt.EXITED=xt;rt.ENTERING=St;rt.ENTERED=kt;rt.EXITING=oa;var _l=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return wl(t,n)})},Tn=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return Rl(t,n)})},an=(function(e){Ui(t,e);function t(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=e.call.apply(e,[this].concat(o))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(s,l){var u=n.resolveArguments(s,l),m=u[0],d=u[1];n.removeClasses(m,"exit"),n.addClass(m,d?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,l)},n.onEntering=function(s,l){var u=n.resolveArguments(s,l),m=u[0],d=u[1],b=d?"appear":"enter";n.addClass(m,b,"active"),n.props.onEntering&&n.props.onEntering(s,l)},n.onEntered=function(s,l){var u=n.resolveArguments(s,l),m=u[0],d=u[1],b=d?"appear":"enter";n.removeClasses(m,b),n.addClass(m,b,"done"),n.props.onEntered&&n.props.onEntered(s,l)},n.onExit=function(s){var l=n.resolveArguments(s),u=l[0];n.removeClasses(u,"appear"),n.removeClasses(u,"enter"),n.addClass(u,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var l=n.resolveArguments(s),u=l[0];n.addClass(u,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var l=n.resolveArguments(s),u=l[0];n.removeClasses(u,"exit"),n.addClass(u,"exit","done"),n.props.onExited&&n.props.onExited(s)},n.resolveArguments=function(s,l){return n.props.nodeRef?[n.props.nodeRef.current,s]:[s,l]},n.getClassNames=function(s){var l=n.props.classNames,u=typeof l=="string",m=u&&l?l+"-":"",d=u?""+m+s:l[s],b=u?d+"-active":l[s+"Active"],y=u?d+"-done":l[s+"Done"];return{baseClassName:d,activeClassName:b,doneClassName:y}},n}var r=t.prototype;return r.addClass=function(a,o,i){var s=this.getClassNames(o)[i+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;o==="appear"&&i==="done"&&u&&(s+=" "+u),i==="active"&&a&&Hi(a),s&&(this.appliedClasses[o][i]=s,_l(a,s))},r.removeClasses=function(a,o){var i=this.appliedClasses[o],s=i.base,l=i.active,u=i.done;this.appliedClasses[o]={},s&&Tn(a,s),l&&Tn(a,l),u&&Tn(a,u)},r.render=function(){var a=this.props;a.classNames;var o=$i(a,["classNames"]);return I.createElement(rt,hr({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(I.Component);an.defaultProps={classNames:""};an.propTypes=process.env.NODE_ENV!=="production"?hr({},rt.propTypes,{classNames:Ol,onEnter:oe.func,onEntering:oe.func,onEntered:oe.func,onExit:oe.func,onExiting:oe.func,onExited:oe.func}):{};function Tl(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Cl(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Dl=(function(){function e(r){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Cl(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Tl(a);try{o.insertRule(n,o.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Fe="-ms-",Kr="-moz-",pe="-webkit-",Yi="comm",ya="rule",ba="decl",jl="@import",Vi="@keyframes",Nl="@layer",Al=Math.abs,on=String.fromCharCode,Ml=Object.assign;function Il(e,t){return Ie(e,0)^45?(((t<<2^Ie(e,0))<<2^Ie(e,1))<<2^Ie(e,2))<<2^Ie(e,3):0}function Xi(e){return e.trim()}function kl(e,t){return(e=t.exec(e))?e[0]:e}function he(e,t,r){return e.replace(t,r)}function ia(e,t){return e.indexOf(t)}function Ie(e,t){return e.charCodeAt(t)|0}function mr(e,t,r){return e.slice(t,r)}function Ze(e){return e.length}function Ea(e){return e.length}function Ir(e,t){return t.push(e),e}function Fl(e,t){return e.map(t).join("")}var sn=1,Ut=1,Gi=0,$e=0,De=0,Bt="";function ln(e,t,r,n,a,o,i){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:sn,column:Ut,length:i,return:""}}function Qt(e,t){return Ml(ln("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ll(){return De}function zl(){return De=$e>0?Ie(Bt,--$e):0,Ut--,De===10&&(Ut=1,sn--),De}function qe(){return De=$e<Gi?Ie(Bt,$e++):0,Ut++,De===10&&(Ut=1,sn++),De}function tt(){return Ie(Bt,$e)}function Ur(){return $e}function xr(e,t){return mr(Bt,e,t)}function gr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ki(e){return sn=Ut=1,Gi=Ze(Bt=e),$e=0,[]}function Ji(e){return Bt="",e}function Wr(e){return Xi(xr($e-1,sa(e===91?e+2:e===40?e+1:e)))}function $l(e){for(;(De=tt())&&De<33;)qe();return gr(e)>2||gr(De)>3?"":" "}function Ul(e,t){for(;--t&&qe()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return xr(e,Ur()+(t<6&&tt()==32&&qe()==32))}function sa(e){for(;qe();)switch(De){case e:return $e;case 34:case 39:e!==34&&e!==39&&sa(De);break;case 40:e===41&&sa(e);break;case 92:qe();break}return $e}function Wl(e,t){for(;qe()&&e+De!==57;)if(e+De===84&&tt()===47)break;return"/*"+xr(t,$e-1)+"*"+on(e===47?e:qe())}function ql(e){for(;!gr(tt());)qe();return xr(e,$e)}function Bl(e){return Ji(qr("",null,null,null,[""],e=Ki(e),0,[0],e))}function qr(e,t,r,n,a,o,i,s,l){for(var u=0,m=0,d=i,b=0,y=0,w=0,E=1,S=1,h=1,c=0,g="",v=a,p=o,x=n,f=g;S;)switch(w=c,c=qe()){case 40:if(w!=108&&Ie(f,d-1)==58){ia(f+=he(Wr(c),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:f+=Wr(c);break;case 9:case 10:case 13:case 32:f+=$l(w);break;case 92:f+=Ul(Ur()-1,7);continue;case 47:switch(tt()){case 42:case 47:Ir(Hl(Wl(qe(),Ur()),t,r),l);break;default:f+="/"}break;case 123*E:s[u++]=Ze(f)*h;case 125*E:case 59:case 0:switch(c){case 0:case 125:S=0;case 59+m:h==-1&&(f=he(f,/\f/g,"")),y>0&&Ze(f)-d&&Ir(y>32?Eo(f+";",n,r,d-1):Eo(he(f," ","")+";",n,r,d-2),l);break;case 59:f+=";";default:if(Ir(x=bo(f,t,r,u,m,a,s,g,v=[],p=[],d),o),c===123)if(m===0)qr(f,t,x,x,v,o,d,s,p);else switch(b===99&&Ie(f,3)===110?100:b){case 100:case 108:case 109:case 115:qr(e,x,x,n&&Ir(bo(e,x,x,0,0,a,s,g,a,v=[],d),p),a,p,d,s,n?v:p);break;default:qr(f,x,x,x,[""],p,0,s,p)}}u=m=y=0,E=h=1,g=f="",d=i;break;case 58:d=1+Ze(f),y=w;default:if(E<1){if(c==123)--E;else if(c==125&&E++==0&&zl()==125)continue}switch(f+=on(c),c*E){case 38:h=m>0?1:(f+="\f",-1);break;case 44:s[u++]=(Ze(f)-1)*h,h=1;break;case 64:tt()===45&&(f+=Wr(qe())),b=tt(),m=d=Ze(g=f+=ql(Ur())),c++;break;case 45:w===45&&Ze(f)==2&&(E=0)}}return o}function bo(e,t,r,n,a,o,i,s,l,u,m){for(var d=a-1,b=a===0?o:[""],y=Ea(b),w=0,E=0,S=0;w<n;++w)for(var h=0,c=mr(e,d+1,d=Al(E=i[w])),g=e;h<y;++h)(g=Xi(E>0?b[h]+" "+c:he(c,/&\f/g,b[h])))&&(l[S++]=g);return ln(e,t,r,a===0?ya:s,l,u,m)}function Hl(e,t,r){return ln(e,t,r,Yi,on(Ll()),mr(e,2,-2),0)}function Eo(e,t,r,n){return ln(e,t,r,ba,mr(e,0,n),mr(e,n+1,-1),n)}function zt(e,t){for(var r="",n=Ea(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Yl(e,t,r,n){switch(e.type){case Nl:if(e.children.length)break;case jl:case ba:return e.return=e.return||e.value;case Yi:return"";case Vi:return e.return=e.value+"{"+zt(e.children,n)+"}";case ya:e.value=e.props.join(",")}return Ze(r=zt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Vl(e){var t=Ea(e);return function(r,n,a,o){for(var i="",s=0;s<t;s++)i+=e[s](r,n,a,o)||"";return i}}function Xl(e){return function(t){t.root||(t=t.return)&&e(t)}}function Zi(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Gl=function(t,r,n){for(var a=0,o=0;a=o,o=tt(),a===38&&o===12&&(r[n]=1),!gr(o);)qe();return xr(t,$e)},Kl=function(t,r){var n=-1,a=44;do switch(gr(a)){case 0:a===38&&tt()===12&&(r[n]=1),t[n]+=Gl($e-1,r,n);break;case 2:t[n]+=Wr(a);break;case 4:if(a===44){t[++n]=tt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=on(a)}while(a=qe());return t},Jl=function(t,r){return Ji(Kl(Ki(t),r))},xo=new WeakMap,Zl=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!xo.get(n))&&!a){xo.set(t,!0);for(var o=[],i=Jl(r,o),s=n.props,l=0,u=0;l<i.length;l++)for(var m=0;m<s.length;m++,u++)t.props[u]=o[l]?i[l].replace(/&\f/g,s[m]):s[m]+" "+i[l]}}},Ql=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Qi(e,t){switch(Il(e,t)){case 5103:return pe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pe+e+Kr+e+Fe+e+e;case 6828:case 4268:return pe+e+Fe+e+e;case 6165:return pe+e+Fe+"flex-"+e+e;case 5187:return pe+e+he(e,/(\w+).+(:[^]+)/,pe+"box-$1$2"+Fe+"flex-$1$2")+e;case 5443:return pe+e+Fe+"flex-item-"+he(e,/flex-|-self/,"")+e;case 4675:return pe+e+Fe+"flex-line-pack"+he(e,/align-content|flex-|-self/,"")+e;case 5548:return pe+e+Fe+he(e,"shrink","negative")+e;case 5292:return pe+e+Fe+he(e,"basis","preferred-size")+e;case 6060:return pe+"box-"+he(e,"-grow","")+pe+e+Fe+he(e,"grow","positive")+e;case 4554:return pe+he(e,/([^-])(transform)/g,"$1"+pe+"$2")+e;case 6187:return he(he(he(e,/(zoom-|grab)/,pe+"$1"),/(image-set)/,pe+"$1"),e,"")+e;case 5495:case 3959:return he(e,/(image-set\([^]*)/,pe+"$1$`$1");case 4968:return he(he(e,/(.+:)(flex-)?(.*)/,pe+"box-pack:$3"+Fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pe+e+e;case 4095:case 3583:case 4068:case 2532:return he(e,/(.+)-inline(.+)/,pe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ze(e)-1-t>6)switch(Ie(e,t+1)){case 109:if(Ie(e,t+4)!==45)break;case 102:return he(e,/(.+:)(.+)-([^]+)/,"$1"+pe+"$2-$3$1"+Kr+(Ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ia(e,"stretch")?Qi(he(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ie(e,t+1)!==115)break;case 6444:switch(Ie(e,Ze(e)-3-(~ia(e,"!important")&&10))){case 107:return he(e,":",":"+pe)+e;case 101:return he(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pe+(Ie(e,14)===45?"inline-":"")+"box$3$1"+pe+"$2$3$1"+Fe+"$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return pe+e+Fe+he(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+Fe+he(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+Fe+he(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pe+e+Fe+e+e}return e}var eu=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case ba:t.return=Qi(t.value,t.length);break;case Vi:return zt([Qt(t,{value:he(t.value,"@","@"+pe)})],a);case ya:if(t.length)return Fl(t.props,function(o){switch(kl(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zt([Qt(t,{props:[he(o,/:(read-\w+)/,":"+Kr+"$1")]})],a);case"::placeholder":return zt([Qt(t,{props:[he(o,/:(plac\w+)/,":"+pe+"input-$1")]}),Qt(t,{props:[he(o,/:(plac\w+)/,":"+Kr+"$1")]}),Qt(t,{props:[he(o,/:(plac\w+)/,Fe+"input-$1")]})],a)}return""})}},tu=[eu],ru=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(E){var S=E.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||tu,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(E){for(var S=E.getAttribute("data-emotion").split(" "),h=1;h<S.length;h++)o[S[h]]=!0;s.push(E)});var l,u=[Zl,Ql];{var m,d=[Yl,Xl(function(E){m.insert(E)})],b=Vl(u.concat(a,d)),y=function(S){return zt(Bl(S),b)};l=function(S,h,c,g){m=c,y(S?S+"{"+h.styles+"}":h.styles),g&&(w.inserted[h.name]=!0)}}var w={key:r,sheet:new Dl({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return w.sheet.hydrate(s),w},kr={exports:{}},ve={};/** @license React v16.13.1
|
|
40
|
+
*/var Sn,uo;function vl(){if(uo)return Sn;uo=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(i).map(function(m){return i[m]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(m){u[m]=m}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sn=a()?Object.assign:function(o,i){for(var s,l=n(o),u,m=1;m<arguments.length;m++){s=Object(arguments[m]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){u=e(s);for(var b=0;b<u.length;b++)r.call(s,u[b])&&(l[u[b]]=s[u[b]])}}return l},Sn}var wn,co;function va(){if(co)return wn;co=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wn=e,wn}var Rn,fo;function qi(){return fo||(fo=1,Rn=Function.call.bind(Object.prototype.hasOwnProperty)),Rn}var Pn,po;function yl(){if(po)return Pn;po=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=va(),r={},n=qi();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function a(o,i,s,l,u){if(process.env.NODE_ENV!=="production"){for(var m in o)if(n(o,m)){var d;try{if(typeof o[m]!="function"){var b=Error((l||"React class")+": "+s+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}d=o[m](i,m,l,s,null,t)}catch(w){d=w}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var y=u?u():"";e("Failed "+s+" type: "+d.message+(y??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Pn=a,Pn}var On,ho;function bl(){if(ho)return On;ho=1;var e=Wi(),t=vl(),r=va(),n=qi(),a=yl(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return On=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function d(N){var O=N&&(u&&N[u]||N[m]);if(typeof O=="function")return O}var b="<<anonymous>>",y={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:c(),arrayOf:g,element:v(),elementType:p(),instanceOf:x,node:A(),objectOf:P,oneOf:f,oneOfType:j,shape:B,exact:U};function w(N,O){return N===O?N!==0||1/N===1/O:N!==N&&O!==O}function E(N,O){this.message=N,this.data=O&&typeof O=="object"?O:{},this.stack=""}E.prototype=Error.prototype;function S(N){if(process.env.NODE_ENV!=="production")var O={},F=0;function z(ee,te,H,ne,le,se,Ae){if(ne=ne||b,se=se||H,Ae!==r){if(l){var C=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 C.name="Invariant Violation",C}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var _e=ne+":"+H;!O[_e]&&F<3&&(o("You are manually calling a React.PropTypes validation function for the `"+se+"` prop on `"+ne+"`. 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."),O[_e]=!0,F++)}}return te[H]==null?ee?te[H]===null?new E("The "+le+" `"+se+"` is marked as required "+("in `"+ne+"`, but its value is `null`.")):new E("The "+le+" `"+se+"` is marked as required in "+("`"+ne+"`, but its value is `undefined`.")):null:N(te,H,ne,le,se)}var W=z.bind(null,!1);return W.isRequired=z.bind(null,!0),W}function h(N){function O(F,z,W,ee,te,H){var ne=F[z],le=X(ne);if(le!==N){var se=ue(ne);return new E("Invalid "+ee+" `"+te+"` of type "+("`"+se+"` supplied to `"+W+"`, expected ")+("`"+N+"`."),{expectedType:N})}return null}return S(O)}function c(){return S(i)}function g(N){function O(F,z,W,ee,te){if(typeof N!="function")return new E("Property `"+te+"` of component `"+W+"` has invalid PropType notation inside arrayOf.");var H=F[z];if(!Array.isArray(H)){var ne=X(H);return new E("Invalid "+ee+" `"+te+"` of type "+("`"+ne+"` supplied to `"+W+"`, expected an array."))}for(var le=0;le<H.length;le++){var se=N(H,le,W,ee,te+"["+le+"]",r);if(se instanceof Error)return se}return null}return S(O)}function v(){function N(O,F,z,W,ee){var te=O[F];if(!s(te)){var H=X(te);return new E("Invalid "+W+" `"+ee+"` of type "+("`"+H+"` supplied to `"+z+"`, expected a single ReactElement."))}return null}return S(N)}function p(){function N(O,F,z,W,ee){var te=O[F];if(!e.isValidElementType(te)){var H=X(te);return new E("Invalid "+W+" `"+ee+"` of type "+("`"+H+"` supplied to `"+z+"`, expected a single ReactElement type."))}return null}return S(N)}function x(N){function O(F,z,W,ee,te){if(!(F[z]instanceof N)){var H=N.name||b,ne=we(F[z]);return new E("Invalid "+ee+" `"+te+"` of type "+("`"+ne+"` supplied to `"+W+"`, expected ")+("instance of `"+H+"`."))}return null}return S(O)}function f(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function O(F,z,W,ee,te){for(var H=F[z],ne=0;ne<N.length;ne++)if(w(H,N[ne]))return null;var le=JSON.stringify(N,function(Ae,C){var _e=ue(C);return _e==="symbol"?String(C):C});return new E("Invalid "+ee+" `"+te+"` of value `"+String(H)+"` "+("supplied to `"+W+"`, expected one of "+le+"."))}return S(O)}function P(N){function O(F,z,W,ee,te){if(typeof N!="function")return new E("Property `"+te+"` of component `"+W+"` has invalid PropType notation inside objectOf.");var H=F[z],ne=X(H);if(ne!=="object")return new E("Invalid "+ee+" `"+te+"` of type "+("`"+ne+"` supplied to `"+W+"`, expected an object."));for(var le in H)if(n(H,le)){var se=N(H,le,W,ee,te+"."+le,r);if(se instanceof Error)return se}return null}return S(O)}function j(N){if(!Array.isArray(N))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var O=0;O<N.length;O++){var F=N[O];if(typeof F!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(F)+" at index "+O+"."),i}function z(W,ee,te,H,ne){for(var le=[],se=0;se<N.length;se++){var Ae=N[se],C=Ae(W,ee,te,H,ne,r);if(C==null)return null;C.data&&n(C.data,"expectedType")&&le.push(C.data.expectedType)}var _e=le.length>0?", expected one of type ["+le.join(", ")+"]":"";return new E("Invalid "+H+" `"+ne+"` supplied to "+("`"+te+"`"+_e+"."))}return S(z)}function A(){function N(O,F,z,W,ee){return L(O[F])?null:new E("Invalid "+W+" `"+ee+"` supplied to "+("`"+z+"`, expected a ReactNode."))}return S(N)}function k(N,O,F,z,W){return new E((N||"React class")+": "+O+" type `"+F+"."+z+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+W+"`.")}function B(N){function O(F,z,W,ee,te){var H=F[z],ne=X(H);if(ne!=="object")return new E("Invalid "+ee+" `"+te+"` of type `"+ne+"` "+("supplied to `"+W+"`, expected `object`."));for(var le in N){var se=N[le];if(typeof se!="function")return k(W,ee,te,le,ue(se));var Ae=se(H,le,W,ee,te+"."+le,r);if(Ae)return Ae}return null}return S(O)}function U(N){function O(F,z,W,ee,te){var H=F[z],ne=X(H);if(ne!=="object")return new E("Invalid "+ee+" `"+te+"` of type `"+ne+"` "+("supplied to `"+W+"`, expected `object`."));var le=t({},F[z],N);for(var se in le){var Ae=N[se];if(n(N,se)&&typeof Ae!="function")return k(W,ee,te,se,ue(Ae));if(!Ae)return new E("Invalid "+ee+" `"+te+"` key `"+se+"` supplied to `"+W+"`.\nBad object: "+JSON.stringify(F[z],null," ")+`
|
|
41
|
+
Valid keys: `+JSON.stringify(Object.keys(N),null," "));var C=Ae(H,se,W,ee,te+"."+se,r);if(C)return C}return null}return S(O)}function L(N){switch(typeof N){case"number":case"string":case"undefined":return!0;case"boolean":return!N;case"object":if(Array.isArray(N))return N.every(L);if(N===null||s(N))return!0;var O=d(N);if(O){var F=O.call(N),z;if(O!==N.entries){for(;!(z=F.next()).done;)if(!L(z.value))return!1}else for(;!(z=F.next()).done;){var W=z.value;if(W&&!L(W[1]))return!1}}else return!1;return!0;default:return!1}}function J(N,O){return N==="symbol"?!0:O?O["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&O instanceof Symbol:!1}function X(N){var O=typeof N;return Array.isArray(N)?"array":N instanceof RegExp?"object":J(O,N)?"symbol":O}function ue(N){if(typeof N>"u"||N===null)return""+N;var O=X(N);if(O==="object"){if(N instanceof Date)return"date";if(N instanceof RegExp)return"regexp"}return O}function Z(N){var O=ue(N);switch(O){case"array":case"object":return"an "+O;case"boolean":case"date":case"regexp":return"a "+O;default:return O}}function we(N){return!N.constructor||!N.constructor.name?b:N.constructor.name}return y.checkPropTypes=a,y.resetWarningCache=a.resetWarningCache,y.PropTypes=y,y},On}var _n,mo;function El(){if(mo)return _n;mo=1;var e=va();function t(){}function r(){}return r.resetWarningCache=t,_n=function(){function n(i,s,l,u,m,d){if(d!==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}}n.isRequired=n;function a(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},_n}var go;function Er(){if(go)return Ar.exports;if(go=1,process.env.NODE_ENV!=="production"){var e=Wi(),t=!0;Ar.exports=bl()(e.isElement,t)}else Ar.exports=El()();return Ar.exports}var xl=Er();const oe=nn(xl);function Sl(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function wl(e,t){e.classList?e.classList.add(t):Sl(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function vo(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Rl(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=vo(e.className,t):e.setAttribute("class",vo(e.className&&e.className.baseVal||"",t))}const yo={disabled:!1};var Pl=process.env.NODE_ENV!=="production"?oe.oneOfType([oe.number,oe.shape({enter:oe.number,exit:oe.number,appear:oe.number}).isRequired]):null,Ol=process.env.NODE_ENV!=="production"?oe.oneOfType([oe.string,oe.shape({enter:oe.string,exit:oe.string,active:oe.string}),oe.shape({enter:oe.string,enterDone:oe.string,enterActive:oe.string,exit:oe.string,exitDone:oe.string,exitActive:oe.string})]):null;const Bi=M.createContext(null);var Hi=function(t){return t.scrollTop},fr="unmounted",xt="exited",St="entering",kt="entered",oa="exiting",rt=(function(e){Ui(t,e);function t(n,a){var o;o=e.call(this,n,a)||this;var i=a,s=i&&!i.isMounting?n.enter:n.appear,l;return o.appearStatus=null,n.in?s?(l=xt,o.appearStatus=St):l=kt:n.unmountOnExit||n.mountOnEnter?l=fr:l=xt,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var i=a.in;return i&&o.status===fr?{status:xt}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var o=null;if(a!==this.props){var i=this.state.status;this.props.in?i!==St&&i!==kt&&(o=St):(i===St||i===kt)&&(o=oa)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,o,i,s;return o=i=s=a,a!=null&&typeof a!="number"&&(o=a.exit,i=a.enter,s=a.appear!==void 0?a.appear:i),{exit:o,enter:i,appear:s}},r.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===St){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:Lt.findDOMNode(this);i&&Hi(i)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xt&&this.setState({status:fr})},r.performEnter=function(a){var o=this,i=this.props.enter,s=this.context?this.context.isMounting:a,l=this.props.nodeRef?[s]:[Lt.findDOMNode(this),s],u=l[0],m=l[1],d=this.getTimeouts(),b=s?d.appear:d.enter;if(!a&&!i||yo.disabled){this.safeSetState({status:kt},function(){o.props.onEntered(u)});return}this.props.onEnter(u,m),this.safeSetState({status:St},function(){o.props.onEntering(u,m),o.onTransitionEnd(b,function(){o.safeSetState({status:kt},function(){o.props.onEntered(u,m)})})})},r.performExit=function(){var a=this,o=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:Lt.findDOMNode(this);if(!o||yo.disabled){this.safeSetState({status:xt},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:oa},function(){a.props.onExiting(s),a.onTransitionEnd(i.exit,function(){a.safeSetState({status:xt},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},r.setNextCallback=function(a){var o=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,o.nextCallback=null,a(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},r.onTransitionEnd=function(a,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:Lt.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=l[0],m=l[1];this.props.addEndListener(u,m)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===fr)return null;var o=this.props,i=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=$i(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return M.createElement(Bi.Provider,{value:null},typeof i=="function"?i(a,s):M.cloneElement(M.Children.only(i),s))},t})(M.Component);rt.contextType=Bi;rt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:oe.shape({current:typeof Element>"u"?oe.any:function(e,t,r,n,a,o){var i=e[t];return oe.instanceOf(i&&"ownerDocument"in i?i.ownerDocument.defaultView.Element:Element)(e,t,r,n,a,o)}}),children:oe.oneOfType([oe.func.isRequired,oe.element.isRequired]).isRequired,in:oe.bool,mountOnEnter:oe.bool,unmountOnExit:oe.bool,appear:oe.bool,enter:oe.bool,exit:oe.bool,timeout:function(t){var r=Pl;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];return r.apply(void 0,[t].concat(a))},addEndListener:oe.func,onEnter:oe.func,onEntering:oe.func,onEntered:oe.func,onExit:oe.func,onExiting:oe.func,onExited:oe.func}:{};function At(){}rt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:At,onEntering:At,onEntered:At,onExit:At,onExiting:At,onExited:At};rt.UNMOUNTED=fr;rt.EXITED=xt;rt.ENTERING=St;rt.ENTERED=kt;rt.EXITING=oa;var _l=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return wl(t,n)})},Tn=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return Rl(t,n)})},an=(function(e){Ui(t,e);function t(){for(var n,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];return n=e.call.apply(e,[this].concat(o))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(s,l){var u=n.resolveArguments(s,l),m=u[0],d=u[1];n.removeClasses(m,"exit"),n.addClass(m,d?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,l)},n.onEntering=function(s,l){var u=n.resolveArguments(s,l),m=u[0],d=u[1],b=d?"appear":"enter";n.addClass(m,b,"active"),n.props.onEntering&&n.props.onEntering(s,l)},n.onEntered=function(s,l){var u=n.resolveArguments(s,l),m=u[0],d=u[1],b=d?"appear":"enter";n.removeClasses(m,b),n.addClass(m,b,"done"),n.props.onEntered&&n.props.onEntered(s,l)},n.onExit=function(s){var l=n.resolveArguments(s),u=l[0];n.removeClasses(u,"appear"),n.removeClasses(u,"enter"),n.addClass(u,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var l=n.resolveArguments(s),u=l[0];n.addClass(u,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var l=n.resolveArguments(s),u=l[0];n.removeClasses(u,"exit"),n.addClass(u,"exit","done"),n.props.onExited&&n.props.onExited(s)},n.resolveArguments=function(s,l){return n.props.nodeRef?[n.props.nodeRef.current,s]:[s,l]},n.getClassNames=function(s){var l=n.props.classNames,u=typeof l=="string",m=u&&l?l+"-":"",d=u?""+m+s:l[s],b=u?d+"-active":l[s+"Active"],y=u?d+"-done":l[s+"Done"];return{baseClassName:d,activeClassName:b,doneClassName:y}},n}var r=t.prototype;return r.addClass=function(a,o,i){var s=this.getClassNames(o)[i+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;o==="appear"&&i==="done"&&u&&(s+=" "+u),i==="active"&&a&&Hi(a),s&&(this.appliedClasses[o][i]=s,_l(a,s))},r.removeClasses=function(a,o){var i=this.appliedClasses[o],s=i.base,l=i.active,u=i.done;this.appliedClasses[o]={},s&&Tn(a,s),l&&Tn(a,l),u&&Tn(a,u)},r.render=function(){var a=this.props;a.classNames;var o=$i(a,["classNames"]);return M.createElement(rt,hr({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(M.Component);an.defaultProps={classNames:""};an.propTypes=process.env.NODE_ENV!=="production"?hr({},rt.propTypes,{classNames:Ol,onEnter:oe.func,onEntering:oe.func,onEntered:oe.func,onExit:oe.func,onExiting:oe.func,onExited:oe.func}):{};function Tl(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Cl(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Dl=(function(){function e(r){var n=this;this._insertTag=function(a){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,o),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Cl(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Tl(a);try{o.insertRule(n,o.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e})(),Fe="-ms-",Kr="-moz-",pe="-webkit-",Yi="comm",ya="rule",ba="decl",jl="@import",Vi="@keyframes",Nl="@layer",Al=Math.abs,on=String.fromCharCode,Ml=Object.assign;function Il(e,t){return Ie(e,0)^45?(((t<<2^Ie(e,0))<<2^Ie(e,1))<<2^Ie(e,2))<<2^Ie(e,3):0}function Xi(e){return e.trim()}function kl(e,t){return(e=t.exec(e))?e[0]:e}function he(e,t,r){return e.replace(t,r)}function ia(e,t){return e.indexOf(t)}function Ie(e,t){return e.charCodeAt(t)|0}function mr(e,t,r){return e.slice(t,r)}function Ze(e){return e.length}function Ea(e){return e.length}function Ir(e,t){return t.push(e),e}function Fl(e,t){return e.map(t).join("")}var sn=1,Ut=1,Gi=0,$e=0,De=0,Bt="";function ln(e,t,r,n,a,o,i){return{value:e,root:t,parent:r,type:n,props:a,children:o,line:sn,column:Ut,length:i,return:""}}function Qt(e,t){return Ml(ln("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ll(){return De}function zl(){return De=$e>0?Ie(Bt,--$e):0,Ut--,De===10&&(Ut=1,sn--),De}function qe(){return De=$e<Gi?Ie(Bt,$e++):0,Ut++,De===10&&(Ut=1,sn++),De}function tt(){return Ie(Bt,$e)}function Ur(){return $e}function xr(e,t){return mr(Bt,e,t)}function gr(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ki(e){return sn=Ut=1,Gi=Ze(Bt=e),$e=0,[]}function Ji(e){return Bt="",e}function Wr(e){return Xi(xr($e-1,sa(e===91?e+2:e===40?e+1:e)))}function $l(e){for(;(De=tt())&&De<33;)qe();return gr(e)>2||gr(De)>3?"":" "}function Ul(e,t){for(;--t&&qe()&&!(De<48||De>102||De>57&&De<65||De>70&&De<97););return xr(e,Ur()+(t<6&&tt()==32&&qe()==32))}function sa(e){for(;qe();)switch(De){case e:return $e;case 34:case 39:e!==34&&e!==39&&sa(De);break;case 40:e===41&&sa(e);break;case 92:qe();break}return $e}function Wl(e,t){for(;qe()&&e+De!==57;)if(e+De===84&&tt()===47)break;return"/*"+xr(t,$e-1)+"*"+on(e===47?e:qe())}function ql(e){for(;!gr(tt());)qe();return xr(e,$e)}function Bl(e){return Ji(qr("",null,null,null,[""],e=Ki(e),0,[0],e))}function qr(e,t,r,n,a,o,i,s,l){for(var u=0,m=0,d=i,b=0,y=0,w=0,E=1,S=1,h=1,c=0,g="",v=a,p=o,x=n,f=g;S;)switch(w=c,c=qe()){case 40:if(w!=108&&Ie(f,d-1)==58){ia(f+=he(Wr(c),"&","&\f"),"&\f")!=-1&&(h=-1);break}case 34:case 39:case 91:f+=Wr(c);break;case 9:case 10:case 13:case 32:f+=$l(w);break;case 92:f+=Ul(Ur()-1,7);continue;case 47:switch(tt()){case 42:case 47:Ir(Hl(Wl(qe(),Ur()),t,r),l);break;default:f+="/"}break;case 123*E:s[u++]=Ze(f)*h;case 125*E:case 59:case 0:switch(c){case 0:case 125:S=0;case 59+m:h==-1&&(f=he(f,/\f/g,"")),y>0&&Ze(f)-d&&Ir(y>32?Eo(f+";",n,r,d-1):Eo(he(f," ","")+";",n,r,d-2),l);break;case 59:f+=";";default:if(Ir(x=bo(f,t,r,u,m,a,s,g,v=[],p=[],d),o),c===123)if(m===0)qr(f,t,x,x,v,o,d,s,p);else switch(b===99&&Ie(f,3)===110?100:b){case 100:case 108:case 109:case 115:qr(e,x,x,n&&Ir(bo(e,x,x,0,0,a,s,g,a,v=[],d),p),a,p,d,s,n?v:p);break;default:qr(f,x,x,x,[""],p,0,s,p)}}u=m=y=0,E=h=1,g=f="",d=i;break;case 58:d=1+Ze(f),y=w;default:if(E<1){if(c==123)--E;else if(c==125&&E++==0&&zl()==125)continue}switch(f+=on(c),c*E){case 38:h=m>0?1:(f+="\f",-1);break;case 44:s[u++]=(Ze(f)-1)*h,h=1;break;case 64:tt()===45&&(f+=Wr(qe())),b=tt(),m=d=Ze(g=f+=ql(Ur())),c++;break;case 45:w===45&&Ze(f)==2&&(E=0)}}return o}function bo(e,t,r,n,a,o,i,s,l,u,m){for(var d=a-1,b=a===0?o:[""],y=Ea(b),w=0,E=0,S=0;w<n;++w)for(var h=0,c=mr(e,d+1,d=Al(E=i[w])),g=e;h<y;++h)(g=Xi(E>0?b[h]+" "+c:he(c,/&\f/g,b[h])))&&(l[S++]=g);return ln(e,t,r,a===0?ya:s,l,u,m)}function Hl(e,t,r){return ln(e,t,r,Yi,on(Ll()),mr(e,2,-2),0)}function Eo(e,t,r,n){return ln(e,t,r,ba,mr(e,0,n),mr(e,n+1,-1),n)}function zt(e,t){for(var r="",n=Ea(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Yl(e,t,r,n){switch(e.type){case Nl:if(e.children.length)break;case jl:case ba:return e.return=e.return||e.value;case Yi:return"";case Vi:return e.return=e.value+"{"+zt(e.children,n)+"}";case ya:e.value=e.props.join(",")}return Ze(r=zt(e.children,n))?e.return=e.value+"{"+r+"}":""}function Vl(e){var t=Ea(e);return function(r,n,a,o){for(var i="",s=0;s<t;s++)i+=e[s](r,n,a,o)||"";return i}}function Xl(e){return function(t){t.root||(t=t.return)&&e(t)}}function Zi(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Gl=function(t,r,n){for(var a=0,o=0;a=o,o=tt(),a===38&&o===12&&(r[n]=1),!gr(o);)qe();return xr(t,$e)},Kl=function(t,r){var n=-1,a=44;do switch(gr(a)){case 0:a===38&&tt()===12&&(r[n]=1),t[n]+=Gl($e-1,r,n);break;case 2:t[n]+=Wr(a);break;case 4:if(a===44){t[++n]=tt()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=on(a)}while(a=qe());return t},Jl=function(t,r){return Ji(Kl(Ki(t),r))},xo=new WeakMap,Zl=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!xo.get(n))&&!a){xo.set(t,!0);for(var o=[],i=Jl(r,o),s=n.props,l=0,u=0;l<i.length;l++)for(var m=0;m<s.length;m++,u++)t.props[u]=o[l]?i[l].replace(/&\f/g,s[m]):s[m]+" "+i[l]}}},Ql=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Qi(e,t){switch(Il(e,t)){case 5103:return pe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pe+e+Kr+e+Fe+e+e;case 6828:case 4268:return pe+e+Fe+e+e;case 6165:return pe+e+Fe+"flex-"+e+e;case 5187:return pe+e+he(e,/(\w+).+(:[^]+)/,pe+"box-$1$2"+Fe+"flex-$1$2")+e;case 5443:return pe+e+Fe+"flex-item-"+he(e,/flex-|-self/,"")+e;case 4675:return pe+e+Fe+"flex-line-pack"+he(e,/align-content|flex-|-self/,"")+e;case 5548:return pe+e+Fe+he(e,"shrink","negative")+e;case 5292:return pe+e+Fe+he(e,"basis","preferred-size")+e;case 6060:return pe+"box-"+he(e,"-grow","")+pe+e+Fe+he(e,"grow","positive")+e;case 4554:return pe+he(e,/([^-])(transform)/g,"$1"+pe+"$2")+e;case 6187:return he(he(he(e,/(zoom-|grab)/,pe+"$1"),/(image-set)/,pe+"$1"),e,"")+e;case 5495:case 3959:return he(e,/(image-set\([^]*)/,pe+"$1$`$1");case 4968:return he(he(e,/(.+:)(flex-)?(.*)/,pe+"box-pack:$3"+Fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pe+e+e;case 4095:case 3583:case 4068:case 2532:return he(e,/(.+)-inline(.+)/,pe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ze(e)-1-t>6)switch(Ie(e,t+1)){case 109:if(Ie(e,t+4)!==45)break;case 102:return he(e,/(.+:)(.+)-([^]+)/,"$1"+pe+"$2-$3$1"+Kr+(Ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ia(e,"stretch")?Qi(he(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ie(e,t+1)!==115)break;case 6444:switch(Ie(e,Ze(e)-3-(~ia(e,"!important")&&10))){case 107:return he(e,":",":"+pe)+e;case 101:return he(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pe+(Ie(e,14)===45?"inline-":"")+"box$3$1"+pe+"$2$3$1"+Fe+"$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return pe+e+Fe+he(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pe+e+Fe+he(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pe+e+Fe+he(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pe+e+Fe+e+e}return e}var eu=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case ba:t.return=Qi(t.value,t.length);break;case Vi:return zt([Qt(t,{value:he(t.value,"@","@"+pe)})],a);case ya:if(t.length)return Fl(t.props,function(o){switch(kl(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zt([Qt(t,{props:[he(o,/:(read-\w+)/,":"+Kr+"$1")]})],a);case"::placeholder":return zt([Qt(t,{props:[he(o,/:(plac\w+)/,":"+pe+"input-$1")]}),Qt(t,{props:[he(o,/:(plac\w+)/,":"+Kr+"$1")]}),Qt(t,{props:[he(o,/:(plac\w+)/,Fe+"input-$1")]})],a)}return""})}},tu=[eu],ru=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(E){var S=E.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||tu,o={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(E){for(var S=E.getAttribute("data-emotion").split(" "),h=1;h<S.length;h++)o[S[h]]=!0;s.push(E)});var l,u=[Zl,Ql];{var m,d=[Yl,Xl(function(E){m.insert(E)})],b=Vl(u.concat(a,d)),y=function(S){return zt(Bl(S),b)};l=function(S,h,c,g){m=c,y(S?S+"{"+h.styles+"}":h.styles),g&&(w.inserted[h.name]=!0)}}var w={key:r,sheet:new Dl({key:r,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return w.sheet.hydrate(s),w},kr={exports:{}},ve={};/** @license React v16.13.1
|
|
42
42
|
* react-is.production.min.js
|
|
43
43
|
*
|
|
44
44
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -52,7 +52,7 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var C=Ae(B,le,W,Z,ee+"."
|
|
|
52
52
|
*
|
|
53
53
|
* This source code is licensed under the MIT license found in the
|
|
54
54
|
* LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/var wo;function au(){return wo||(wo=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,c=e?Symbol.for("react.scope"):60119;function g(C){return typeof C=="string"||typeof C=="function"||C===n||C===u||C===o||C===a||C===d||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===w||C.$$typeof===y||C.$$typeof===i||C.$$typeof===s||C.$$typeof===m||C.$$typeof===S||C.$$typeof===h||C.$$typeof===c||C.$$typeof===E)}function v(C){if(typeof C=="object"&&C!==null){var _e=C.$$typeof;switch(_e){case t:var Be=C.type;switch(Be){case l:case u:case n:case o:case a:case d:return Be;default:var vt=Be&&Be.$$typeof;switch(vt){case s:case m:case w:case y:case i:return vt;default:return _e}}case r:return _e}}}var p=l,x=u,f=s,O=i,j=t,M=m,L=n,q=w,N=y,Y=r,X=o,te=a,re=d,ie=!1;function we(C){return ie||(ie=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),A(C)||v(C)===l}function A(C){return v(C)===u}function P(C){return v(C)===s}function k(C){return v(C)===i}function U(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function W(C){return v(C)===m}function Z(C){return v(C)===n}function ee(C){return v(C)===w}function B(C){return v(C)===y}function ne(C){return v(C)===r}function ue(C){return v(C)===o}function le(C){return v(C)===a}function Ae(C){return v(C)===d}ye.AsyncMode=p,ye.ConcurrentMode=x,ye.ContextConsumer=f,ye.ContextProvider=O,ye.Element=j,ye.ForwardRef=M,ye.Fragment=L,ye.Lazy=q,ye.Memo=N,ye.Portal=Y,ye.Profiler=X,ye.StrictMode=te,ye.Suspense=re,ye.isAsyncMode=we,ye.isConcurrentMode=A,ye.isContextConsumer=P,ye.isContextProvider=k,ye.isElement=U,ye.isForwardRef=W,ye.isFragment=Z,ye.isLazy=ee,ye.isMemo=B,ye.isPortal=ne,ye.isProfiler=ue,ye.isStrictMode=le,ye.isSuspense=Ae,ye.isValidElementType=g,ye.typeOf=v})()),ye}var Ro;function ou(){return Ro||(Ro=1,process.env.NODE_ENV==="production"?kr.exports=nu():kr.exports=au()),kr.exports}var Cn,Po;function iu(){if(Po)return Cn;Po=1;var e=ou(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=n,o[e.Memo]=a;function i(w){return e.isMemo(w)?a:o[w.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,b=Object.prototype;function y(w,E,S){if(typeof E!="string"){if(b){var h=d(E);h&&h!==b&&y(w,h,S)}var c=l(E);u&&(c=c.concat(u(E)));for(var g=i(w),v=i(E),p=0;p<c.length;++p){var x=c[p];if(!r[x]&&!(S&&S[x])&&!(v&&v[x])&&!(g&&g[x])){var f=m(E,x);try{s(w,x,f)}catch{}}}}return w}return Cn=y,Cn}iu();var su=!0;function es(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var xa=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||su===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},Sa=function(t,r,n){xa(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function lu(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var uu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},cu=/[A-Z]|^ms/g,fu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ts=function(t){return t.charCodeAt(1)===45},Oo=function(t){return t!=null&&typeof t!="boolean"},Dn=Zi(function(e){return ts(e)?e:e.replace(cu,"-$&").toLowerCase()}),_o=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(fu,function(n,a,o){return Qe={name:a,styles:o,next:Qe},a})}return uu[t]!==1&&!ts(t)&&typeof r=="number"&&r!==0?r+"px":r};function vr(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Qe={name:a.name,styles:a.styles,next:Qe},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Qe={name:i.name,styles:i.styles,next:Qe},i=i.next;var s=o.styles+";";return s}return du(e,t,r)}case"function":{if(e!==void 0){var l=Qe,u=r(e);return Qe=l,vr(e,t,u)}break}}var m=r;if(t==null)return m;var d=t[m];return d!==void 0?d:m}function du(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=vr(e,t,r[a])+";";else for(var o in r){var i=r[o];if(typeof i!="object"){var s=i;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":Oo(s)&&(n+=Dn(o)+":"+_o(o,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)Oo(i[l])&&(n+=Dn(o)+":"+_o(o,i[l])+";");else{var u=vr(e,t,i);switch(o){case"animation":case"animationName":{n+=Dn(o)+":"+u+";";break}default:n+=o+"{"+u+"}"}}}return n}var To=/label:\s*([^\s;{]+)\s*(;|$)/g,Qe;function un(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";Qe=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,a+=vr(r,t,o);else{var i=o;a+=i[0]}for(var s=1;s<e.length;s++)if(a+=vr(r,t,e[s]),n){var l=o;a+=l[s]}To.lastIndex=0;for(var u="",m;(m=To.exec(a))!==null;)u+="-"+m[1];var d=lu(a)+u;return{name:d,styles:a,next:Qe}}var pu=function(t){return t()},rs=D.useInsertionEffect?D.useInsertionEffect:!1,ns=rs||pu,Co=rs||D.useLayoutEffect,as=D.createContext(typeof HTMLElement<"u"?ru({key:"css"}):null);as.Provider;var wa=function(t){return I.forwardRef(function(r,n){var a=I.useContext(as);return t(r,a,n)})},Ra=D.createContext({}),Pa={}.hasOwnProperty,la="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hu=function(t,r){var n={};for(var a in r)Pa.call(r,a)&&(n[a]=r[a]);return n[la]=t,n},mu=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return xa(r,n,a),ns(function(){return Sa(r,n,a)}),null},gu=wa(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[la],o=[n],i="";typeof e.className=="string"?i=es(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var s=un(o,void 0,D.useContext(Ra));i+=t.key+"-"+s.name;var l={};for(var u in e)Pa.call(e,u)&&u!=="css"&&u!==la&&(l[u]=e[u]);return l.className=i,r&&(l.ref=r),D.createElement(D.Fragment,null,D.createElement(mu,{cache:t,serialized:s,isStringTag:typeof a=="string"}),D.createElement(a,l))}),vu=gu,Do=function(t,r){var n=arguments;if(r==null||!Pa.call(r,"css"))return D.createElement.apply(void 0,n);var a=n.length,o=new Array(a);o[0]=vu,o[1]=hu(t,r);for(var i=2;i<a;i++)o[i]=n[i];return D.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Do||(Do={}));var yu=wa(function(e,t){var r=e.styles,n=un([r],void 0,D.useContext(Ra)),a=D.useRef();return Co(function(){var o=t.key+"-global",i=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),i.hydrate([l])),a.current=[i,s],function(){i.flush()}},[t]),Co(function(){var o=a.current,i=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Sa(t,n.next,!0),i.tags.length){var l=i.tags[i.tags.length-1].nextElementSibling;i.before=l,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function bu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return un(t)}function Oa(){var e=bu.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Eu=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xu=Zi(function(e){return Eu.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Su=xu,wu=function(t){return t!=="theme"},jo=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Su:wu},No=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},Ru=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return xa(r,n,a),ns(function(){return Sa(r,n,a)}),null},Pu=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=No(t,r,n),l=s||jo(a),u=!l("as");return function(){var m=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),m[0]==null||m[0].raw===void 0)d.push.apply(d,m);else{var b=m[0];d.push(b[0]);for(var y=m.length,w=1;w<y;w++)d.push(m[w],b[w])}var E=wa(function(S,h,c){var g=u&&S.as||a,v="",p=[],x=S;if(S.theme==null){x={};for(var f in S)x[f]=S[f];x.theme=D.useContext(Ra)}typeof S.className=="string"?v=es(h.registered,p,S.className):S.className!=null&&(v=S.className+" ");var O=un(d.concat(p),h.registered,x);v+=h.key+"-"+O.name,i!==void 0&&(v+=" "+i);var j=u&&s===void 0?jo(g):l,M={};for(var L in S)u&&L==="as"||j(L)&&(M[L]=S[L]);return M.className=v,c&&(M.ref=c),D.createElement(D.Fragment,null,D.createElement(Ru,{cache:h,serialized:O,isStringTag:typeof g=="string"}),D.createElement(g,M))});return E.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=a,E.__emotion_styles=d,E.__emotion_forwardProp=s,Object.defineProperty(E,"toString",{value:function(){return"."+i}}),E.withComponent=function(S,h){var c=e(S,hr({},r,h,{shouldForwardProp:No(E,h,!0)}));return c.apply(void 0,d)},E}},Ou=["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","marquee","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"],Ne=Pu.bind(null);Ou.forEach(function(e){Ne[e]=Ne(e)});exports.setGlobalLoading=e=>{console.warn("GlobalLoading 未被引入,你可以直接使用 App 组件,或直接引用 GlobalLoading 组件到项目中!")};const _u=Oa`
|
|
55
|
+
*/var wo;function au(){return wo||(wo=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,S=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,c=e?Symbol.for("react.scope"):60119;function g(C){return typeof C=="string"||typeof C=="function"||C===n||C===u||C===o||C===a||C===d||C===b||typeof C=="object"&&C!==null&&(C.$$typeof===w||C.$$typeof===y||C.$$typeof===i||C.$$typeof===s||C.$$typeof===m||C.$$typeof===S||C.$$typeof===h||C.$$typeof===c||C.$$typeof===E)}function v(C){if(typeof C=="object"&&C!==null){var _e=C.$$typeof;switch(_e){case t:var Be=C.type;switch(Be){case l:case u:case n:case o:case a:case d:return Be;default:var vt=Be&&Be.$$typeof;switch(vt){case s:case m:case w:case y:case i:return vt;default:return _e}}case r:return _e}}}var p=l,x=u,f=s,P=i,j=t,A=m,k=n,B=w,U=y,L=r,J=o,X=a,ue=d,Z=!1;function we(C){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),N(C)||v(C)===l}function N(C){return v(C)===u}function O(C){return v(C)===s}function F(C){return v(C)===i}function z(C){return typeof C=="object"&&C!==null&&C.$$typeof===t}function W(C){return v(C)===m}function ee(C){return v(C)===n}function te(C){return v(C)===w}function H(C){return v(C)===y}function ne(C){return v(C)===r}function le(C){return v(C)===o}function se(C){return v(C)===a}function Ae(C){return v(C)===d}ye.AsyncMode=p,ye.ConcurrentMode=x,ye.ContextConsumer=f,ye.ContextProvider=P,ye.Element=j,ye.ForwardRef=A,ye.Fragment=k,ye.Lazy=B,ye.Memo=U,ye.Portal=L,ye.Profiler=J,ye.StrictMode=X,ye.Suspense=ue,ye.isAsyncMode=we,ye.isConcurrentMode=N,ye.isContextConsumer=O,ye.isContextProvider=F,ye.isElement=z,ye.isForwardRef=W,ye.isFragment=ee,ye.isLazy=te,ye.isMemo=H,ye.isPortal=ne,ye.isProfiler=le,ye.isStrictMode=se,ye.isSuspense=Ae,ye.isValidElementType=g,ye.typeOf=v})()),ye}var Ro;function ou(){return Ro||(Ro=1,process.env.NODE_ENV==="production"?kr.exports=nu():kr.exports=au()),kr.exports}var Cn,Po;function iu(){if(Po)return Cn;Po=1;var e=ou(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=n,o[e.Memo]=a;function i(w){return e.isMemo(w)?a:o[w.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,b=Object.prototype;function y(w,E,S){if(typeof E!="string"){if(b){var h=d(E);h&&h!==b&&y(w,h,S)}var c=l(E);u&&(c=c.concat(u(E)));for(var g=i(w),v=i(E),p=0;p<c.length;++p){var x=c[p];if(!r[x]&&!(S&&S[x])&&!(v&&v[x])&&!(g&&g[x])){var f=m(E,x);try{s(w,x,f)}catch{}}}}return w}return Cn=y,Cn}iu();var su=!0;function es(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var xa=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||su===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},Sa=function(t,r,n){xa(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+a:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function lu(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var uu={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},cu=/[A-Z]|^ms/g,fu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ts=function(t){return t.charCodeAt(1)===45},Oo=function(t){return t!=null&&typeof t!="boolean"},Dn=Zi(function(e){return ts(e)?e:e.replace(cu,"-$&").toLowerCase()}),_o=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(fu,function(n,a,o){return Qe={name:a,styles:o,next:Qe},a})}return uu[t]!==1&&!ts(t)&&typeof r=="number"&&r!==0?r+"px":r};function vr(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return Qe={name:a.name,styles:a.styles,next:Qe},a.name;var o=r;if(o.styles!==void 0){var i=o.next;if(i!==void 0)for(;i!==void 0;)Qe={name:i.name,styles:i.styles,next:Qe},i=i.next;var s=o.styles+";";return s}return du(e,t,r)}case"function":{if(e!==void 0){var l=Qe,u=r(e);return Qe=l,vr(e,t,u)}break}}var m=r;if(t==null)return m;var d=t[m];return d!==void 0?d:m}function du(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=vr(e,t,r[a])+";";else for(var o in r){var i=r[o];if(typeof i!="object"){var s=i;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":Oo(s)&&(n+=Dn(o)+":"+_o(o,s)+";")}else if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var l=0;l<i.length;l++)Oo(i[l])&&(n+=Dn(o)+":"+_o(o,i[l])+";");else{var u=vr(e,t,i);switch(o){case"animation":case"animationName":{n+=Dn(o)+":"+u+";";break}default:n+=o+"{"+u+"}"}}}return n}var To=/label:\s*([^\s;{]+)\s*(;|$)/g,Qe;function un(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";Qe=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,a+=vr(r,t,o);else{var i=o;a+=i[0]}for(var s=1;s<e.length;s++)if(a+=vr(r,t,e[s]),n){var l=o;a+=l[s]}To.lastIndex=0;for(var u="",m;(m=To.exec(a))!==null;)u+="-"+m[1];var d=lu(a)+u;return{name:d,styles:a,next:Qe}}var pu=function(t){return t()},rs=D.useInsertionEffect?D.useInsertionEffect:!1,ns=rs||pu,Co=rs||D.useLayoutEffect,as=D.createContext(typeof HTMLElement<"u"?ru({key:"css"}):null);as.Provider;var wa=function(t){return M.forwardRef(function(r,n){var a=M.useContext(as);return t(r,a,n)})},Ra=D.createContext({}),Pa={}.hasOwnProperty,la="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hu=function(t,r){var n={};for(var a in r)Pa.call(r,a)&&(n[a]=r[a]);return n[la]=t,n},mu=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return xa(r,n,a),ns(function(){return Sa(r,n,a)}),null},gu=wa(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var a=e[la],o=[n],i="";typeof e.className=="string"?i=es(t.registered,o,e.className):e.className!=null&&(i=e.className+" ");var s=un(o,void 0,D.useContext(Ra));i+=t.key+"-"+s.name;var l={};for(var u in e)Pa.call(e,u)&&u!=="css"&&u!==la&&(l[u]=e[u]);return l.className=i,r&&(l.ref=r),D.createElement(D.Fragment,null,D.createElement(mu,{cache:t,serialized:s,isStringTag:typeof a=="string"}),D.createElement(a,l))}),vu=gu,Do=function(t,r){var n=arguments;if(r==null||!Pa.call(r,"css"))return D.createElement.apply(void 0,n);var a=n.length,o=new Array(a);o[0]=vu,o[1]=hu(t,r);for(var i=2;i<a;i++)o[i]=n[i];return D.createElement.apply(null,o)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(Do||(Do={}));var yu=wa(function(e,t){var r=e.styles,n=un([r],void 0,D.useContext(Ra)),a=D.useRef();return Co(function(){var o=t.key+"-global",i=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),i.hydrate([l])),a.current=[i,s],function(){i.flush()}},[t]),Co(function(){var o=a.current,i=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Sa(t,n.next,!0),i.tags.length){var l=i.tags[i.tags.length-1].nextElementSibling;i.before=l,i.flush()}t.insert("",n,i,!1)},[t,n.name]),null});function bu(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return un(t)}function Oa(){var e=bu.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Eu=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,xu=Zi(function(e){return Eu.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Su=xu,wu=function(t){return t!=="theme"},jo=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Su:wu},No=function(t,r,n){var a;if(r){var o=r.shouldForwardProp;a=t.__emotion_forwardProp&&o?function(i){return t.__emotion_forwardProp(i)&&o(i)}:o}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},Ru=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return xa(r,n,a),ns(function(){return Sa(r,n,a)}),null},Pu=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,o,i;r!==void 0&&(o=r.label,i=r.target);var s=No(t,r,n),l=s||jo(a),u=!l("as");return function(){var m=arguments,d=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),m[0]==null||m[0].raw===void 0)d.push.apply(d,m);else{var b=m[0];d.push(b[0]);for(var y=m.length,w=1;w<y;w++)d.push(m[w],b[w])}var E=wa(function(S,h,c){var g=u&&S.as||a,v="",p=[],x=S;if(S.theme==null){x={};for(var f in S)x[f]=S[f];x.theme=D.useContext(Ra)}typeof S.className=="string"?v=es(h.registered,p,S.className):S.className!=null&&(v=S.className+" ");var P=un(d.concat(p),h.registered,x);v+=h.key+"-"+P.name,i!==void 0&&(v+=" "+i);var j=u&&s===void 0?jo(g):l,A={};for(var k in S)u&&k==="as"||j(k)&&(A[k]=S[k]);return A.className=v,c&&(A.ref=c),D.createElement(D.Fragment,null,D.createElement(Ru,{cache:h,serialized:P,isStringTag:typeof g=="string"}),D.createElement(g,A))});return E.displayName=o!==void 0?o:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=a,E.__emotion_styles=d,E.__emotion_forwardProp=s,Object.defineProperty(E,"toString",{value:function(){return"."+i}}),E.withComponent=function(S,h){var c=e(S,hr({},r,h,{shouldForwardProp:No(E,h,!0)}));return c.apply(void 0,d)},E}},Ou=["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","marquee","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"],Ne=Pu.bind(null);Ou.forEach(function(e){Ne[e]=Ne(e)});exports.setGlobalLoading=e=>{console.warn("GlobalLoading 未被引入,你可以直接使用 App 组件,或直接引用 GlobalLoading 组件到项目中!")};const _u=Oa`
|
|
56
56
|
0% { transform: rotate(0deg) translateX(35px) rotate(0deg); }
|
|
57
57
|
50% { transform: rotate(360deg) translateX(35px) rotate(-360deg); }
|
|
58
58
|
100% { transform: rotate(360deg) translateX(35px) rotate(-360deg); }
|
|
@@ -91,15 +91,15 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var C=Ae(B,le,W,Z,ee+"."
|
|
|
91
91
|
display: flex;
|
|
92
92
|
justify-content: center;
|
|
93
93
|
align-items: center;
|
|
94
|
-
`,er=Ne.div(({size:e,delay:t})=>({position:"absolute",margin:"auto",borderRadius:"50%",backgroundImage:" linear-gradient(var(--color-primary) 10%, var(--color-primary-hover) 100%)",transform:"rotate(0deg) translateX(35px) rotate(0deg)",width:e,height:e,animation:`${_u} 4s ease-in-out infinite`,animationDelay:t||"0s"}));function os(){const e=
|
|
94
|
+
`,er=Ne.div(({size:e,delay:t})=>({position:"absolute",margin:"auto",borderRadius:"50%",backgroundImage:" linear-gradient(var(--color-primary) 10%, var(--color-primary-hover) 100%)",transform:"rotate(0deg) translateX(35px) rotate(0deg)",width:e,height:e,animation:`${_u} 4s ease-in-out infinite`,animationDelay:t||"0s"}));function os(){const e=M.useRef(null),[t,r]=M.useState(!1);return M.useEffect(()=>{exports.setGlobalLoading=n=>{r(n)}},[]),$.jsx(an,{in:t,nodeRef:e,timeout:500,classNames:"global-loading-transition",unmountOnExit:!0,children:()=>$.jsxs(Tu,{ref:e,className:"global-loading",children:[$.jsxs(Cu,{className:"global-loading-container",children:[$.jsx(er,{className:"dot dot-1",size:15,delay:"0.0s"}),$.jsx(er,{className:"dot dot-2",size:13,delay:"0.2s"}),$.jsx(er,{className:"dot dot-3",size:11,delay:"0.4s"}),$.jsx(er,{className:"dot dot-4",size:9,delay:"0.6s"}),$.jsx(er,{className:"dot dot-5",size:7,delay:"0.8s"})]}),$.jsx("svg",{style:{visibility:"hidden",position:"absolute"},children:$.jsx("defs",{children:$.jsxs("filter",{id:"goo",children:[$.jsx("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"3",result:"blur"}),$.jsx("feColorMatrix",{in:"blur",type:"matrix",values:`
|
|
95
95
|
1 0 0 0 0
|
|
96
96
|
0 1 0 0 0
|
|
97
97
|
0 0 1 0 0
|
|
98
|
-
0 0 0 18 -6`})
|
|
98
|
+
0 0 0 18 -6`}),$.jsx("feComposite",{in:"SourceGraphic",in2:"goo",operator:"atop"})]})})})]})})}const Du={"operation.add":"添加","operation.delete":"删除","operation.batchDelete":"批量删除","operation.edit":"编辑","operation.download":"下载","operation.logout":"退出登录","operation.export":"导出","operation.close":"关闭","operation.details":"详情","operation.confirm":"确认","operation.save":"保存","operation.cancel":"取消","component.table.selected":"已选{length}条","component.table.total":"共{total}条","component.table.visibleError":"列表最少保留一个字段","component.searcharea.toggle":"高级搜索","component.searcharea.submit":"筛选","component.searcharea.reset":"重置","component.searcharea.close":"收起","message.delete":"删除操作无法恢复,确认删除?","message.success":"操作成功","table.pagination.total":"共{total}条"},ju={"operation.add":"Add","operation.delete":"Delete","operation.batchDelete":"Batch Delete","operation.edit":"Edit","operation.download":"Download","operation.logout":"Logout","operation.export":"Export","operation.close":"Close","operation.details":"Details","operation.confirm":"Confirm","operation.save":"Save","operation.cancel":"Cancel","component.table.selected":"{length} selected","component.table.total":"Total {total} items","component.table.visibleError":"At least one field must be visible","component.searcharea.toggle":"Advanced Search","component.searcharea.submit":"Submit","component.searcharea.reset":"Reset","component.searcharea.close":"Close","message.delete":"This action cannot be undone, confirm delete?","message.success":"Operation successful","table.pagination.total":"Total {total} items"},_a={zh:Du,en:ju},ua=({messages:e,locale:t})=>({id:r,defaultMessage:n,values:a})=>{var i;let o=((i=e==null?void 0:e[t])==null?void 0:i[r])||n;return typeof a=="object"&&Object.keys(a).forEach(s=>{o=o.replace(`{${s}}`,a[s])}),o};function Nu(){const{messages:e,locale:t}=M.useContext(Ta);return{$t:({id:r,defaultMessage:n},a)=>ua({messages:e,locale:t})({id:r,defaultMessage:n,values:a}),formatMessage:ua({messages:e,locale:t})}}function $t({id:e,defaultMessage:t,values:r}){const{messages:n,locale:a}=M.useContext(Ta);return ua({messages:n,locale:a})({id:e,defaultMessage:t,values:r})}const Au={locale:"zh",messages:_a},Ta=M.createContext(Au);function Mu({children:e,config:t}){return $.jsx(Ta.Provider,{value:{locale:t.locale,messages:_a},children:e})}function is(e,t){const r={...e};for(const n in t)t[n]!==void 0&&(t[n]&&typeof t[n]=="object"&&!Array.isArray(t[n])?r[n]=is(e[n]||{},t[n]):r[n]=t[n]);return r}const ss={iconButton:{size:"small",render:({children:e})=>e},iconFont:{},locale:"zh",useSearchParams:{storage:"state",stateKey:"__searchParams__"}},Sr=M.createContext(ss);function ls({children:e,config:t}){const r=is(ss,t);return $.jsx(Sr.Provider,{value:r,children:$.jsx(Mu,{config:{locale:t.locale,messages:_a},children:e})})}exports.message=Ee.message;exports.notification=Ee.notification;exports.modal=Ee.Modal;function Iu({children:e}){const t=Ee.App.useApp();return exports.message=t.message,exports.modal=t.modal,exports.notification=t.notification,e||""}function ku({children:e,config:t,...r}){return $.jsx(ls,{config:t||{},children:$.jsxs(Ee.App,{...r,children:[$.jsx(os,{}),$.jsx(Iu,{children:e})]})})}var jn={exports:{}};/*!
|
|
99
99
|
Copyright (c) 2018 Jed Watson.
|
|
100
100
|
Licensed under the MIT License (MIT), see
|
|
101
101
|
http://jedwatson.github.io/classnames
|
|
102
|
-
*/var Ao;function Fu(){return Ao||(Ao=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=a(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)t.call(o,s)&&o[s]&&(i=a(i,s));return i}function a(o,i){return i?o?o+" "+i:o+i:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(jn)),jn.exports}var Lu=Fu();const ca=nn(Lu),Ca=
|
|
102
|
+
*/var Ao;function Fu(){return Ao||(Ao=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var o="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(o=a(o,n(s)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return r.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var i="";for(var s in o)t.call(o,s)&&o[s]&&(i=a(i,s));return i}function a(o,i){return i?o?o+" "+i:o+i:o}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(jn)),jn.exports}var Lu=Fu();const ca=nn(Lu),Ca=M.forwardRef(({type:e="",className:t="",symbol:r=!1,style:n,...a},o)=>{const{iconFont:i}=M.useContext(Sr);return r?$.jsx("svg",{className:ca(["iconfont-symbol",i.className||"",e,t]),"aria-hidden":"true",ref:o,style:{...i.style,...n||{}},...a,children:$.jsx("use",{xlinkHref:`#${e}`})}):$.jsx("i",{className:ca(["iconfont",i.className||"",e,t]),ref:o,style:{...i.style,...n||{}},...a})}),zu=({checked:e,onChange:t,trueValue:r=!0,falseValue:n=!1,trueLabel:a="",falseLabel:o="",children:i,...s})=>{const l=e===r,u=m=>{t==null||t(m.target.checked?r:n,m)};return $.jsx(Ee.Checkbox,{checked:l,onChange:u,...s,children:i||(l?a:o)})},$u=({checked:e,onChange:t,trueValue:r=!0,falseValue:n=!1,...a})=>{const o=e===r,i=(s,l)=>{t==null||t(s?r:n,l)};return $.jsx(Ee.Switch,{checked:o,onChange:i,...a})};var Uu=typeof global=="object"&&global&&global.Object===Object&&global,Wu=typeof self=="object"&&self&&self.Object===Object&&self,qu=Uu||Wu||Function("return this")(),Jr=qu.Symbol,us=Object.prototype,Bu=us.hasOwnProperty,Hu=us.toString,tr=Jr?Jr.toStringTag:void 0;function Yu(e){var t=Bu.call(e,tr),r=e[tr];try{e[tr]=void 0;var n=!0}catch{}var a=Hu.call(e);return n&&(t?e[tr]=r:delete e[tr]),a}var Vu=Object.prototype,Xu=Vu.toString;function Gu(e){return Xu.call(e)}var Ku="[object Null]",Ju="[object Undefined]",Mo=Jr?Jr.toStringTag:void 0;function cs(e){return e==null?e===void 0?Ju:Ku:Mo&&Mo in Object(e)?Yu(e):Gu(e)}function fs(e){return e!=null&&typeof e=="object"}var Zu="[object Symbol]";function Qu(e){return typeof e=="symbol"||fs(e)&&cs(e)==Zu}var dr=Array.isArray,ec=/\s/;function tc(e){for(var t=e.length;t--&&ec.test(e.charAt(t)););return t}var rc=/^\s+/;function nc(e){return e&&e.slice(0,tc(e)+1).replace(rc,"")}function Io(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ko=NaN,ac=/^[-+]0x[0-9a-f]+$/i,oc=/^0b[01]+$/i,ic=/^0o[0-7]+$/i,sc=parseInt;function Fo(e){if(typeof e=="number")return e;if(Qu(e))return ko;if(Io(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Io(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=nc(e);var r=oc.test(e);return r||ic.test(e)?sc(e.slice(2),r?2:8):ac.test(e)?ko:+e}function Br(){}var lc="[object String]";function uc(e){return typeof e=="string"||!dr(e)&&fs(e)&&cs(e)==lc}const cc=M.forwardRef((e,t)=>$.jsx(Ee.Button,{ref:t,...e})),fc=Ne(cc)`
|
|
103
103
|
&&.icon-button {
|
|
104
104
|
font-size: 18px;
|
|
105
105
|
color: var(--color-primary);
|
|
@@ -118,7 +118,7 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var C=Ae(B,le,W,Z,ee+"."
|
|
|
118
118
|
background: var(--color-primary-bg);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
`,dc=({children:e,tooltipDisabled:t,disabled:r,disabledReason:n,title:a,...o})=>t?e:z.jsx(Ee.Tooltip,{title:r&&n||a,...o,children:e}),pc=I.forwardRef((e,t)=>{const{iconButton:r}=I.useContext(Sr),{icon:n,tooltipDisabled:a=!1,title:o,hide:i=!1,disabledReason:s,onClick:l=Br,disabled:u,size:m=r.size||"small",style:d={},className:b,loading:y=!1,...w}=e,E=()=>uc(n)?z.jsx(Ca,{type:n}):n,S=r.render;return n||console.warn("Icon props not found"),z.jsx(S,{...e,children:z.jsx(dc,{tooltipDisabled:a,hide:i,disabled:u,disabledReason:s,title:o,...w,children:z.jsx(fc,{ref:t,icon:E(),size:m,className:ca(["icon-button",r.className,b]),disabled:u,style:{...r.style,...d},loading:y,onClick:l})})})});var hc=function(e){return function(t,r){var n=I.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},Xe=function(){return Xe=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Xe.apply(this,arguments)};function ds(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function mc(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(m){try{u(n.next(m))}catch(d){i(d)}}function l(m){try{u(n.throw(m))}catch(d){i(d)}}function u(m){m.done?o(m.value):a(m.value).then(s,l)}u((n=n.apply(e,t||[])).next())})}function gc(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(m){return l([u,m])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(r=0)),r;)try{if(n=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(m){u=[6,m],a=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function ke(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],i;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(s){i={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return o}function Le(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Ot=function(e){return typeof e=="function"},vc=function(e){return typeof e>"u"},cn=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test",et=function(e){cn&&(Ot(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=I.useRef(e);t.current=I.useMemo(function(){return e},[e]);var r=I.useRef(void 0);return r.current||(r.current=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return t.current.apply(this,n)}),r.current};const Zr=hc(I.useEffect);var ps=function(e,t){var r=t.manual,n=t.ready,a=n===void 0?!0:n,o=t.defaultParams,i=o===void 0?[]:o,s=t.refreshDeps,l=s===void 0?[]:s,u=t.refreshDepsAction,m=I.useRef(!1);return m.current=!1,Zr(function(){!r&&a&&(m.current=!0,e.run.apply(e,Le([],ke(i),!1)))},[a]),Zr(function(){m.current||r||(m.current=!0,u?u():e.refresh())},Le([],ke(l),!1)),{onBefore:function(){if(!a)return{stopNow:!0}}}};ps.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function fa(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}var hs=function(e,t){var r=I.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!fa(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj};function Da(e){var t=I.useRef(e);return t.current=e,t}var fn=function(e){cn&&(Ot(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=Da(e);I.useEffect(function(){return function(){t.current()}},[])},Hr=new Map,yc=function(e,t,r){var n=Hr.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var a=void 0;t>-1&&(a=setTimeout(function(){Hr.delete(e)},t)),Hr.set(e,Xe(Xe({},r),{timer:a}))},bc=function(e){return Hr.get(e)},Yr=new Map,Ec=function(e){return Yr.get(e)},xc=function(e,t){Yr.set(e,t),t.then(function(r){return Yr.delete(e),r}).catch(function(){Yr.delete(e)})},wt={},Sc=function(e,t){wt[e]&&wt[e].forEach(function(r){return r(t)})},Nn=function(e,t){return wt[e]||(wt[e]=[]),wt[e].push(t),function(){var n=wt[e].indexOf(t);wt[e].splice(n,1)}},wc=function(e,t){var r=t.cacheKey,n=t.cacheTime,a=n===void 0?300*1e3:n,o=t.staleTime,i=o===void 0?0:o,s=t.setCache,l=t.getCache,u=I.useRef(void 0),m=I.useRef(void 0),d=function(y,w){s?s(w):yc(y,a,w),Sc(y,w.data)},b=function(y,w){return w===void 0&&(w=[]),l?l(w):bc(y)};return hs(function(){if(r){var y=b(r);y&&Object.hasOwnProperty.call(y,"data")&&(e.state.data=y.data,e.state.params=y.params,(i===-1||Date.now()-y.time<=i)&&(e.state.loading=!1)),u.current=Nn(r,function(w){e.setState({data:w})})}},[]),fn(function(){var y;(y=u.current)===null||y===void 0||y.call(u)}),r?{onBefore:function(y){var w=b(r,y);return!w||!Object.hasOwnProperty.call(w,"data")?{}:i===-1||Date.now()-w.time<=i?{loading:!1,data:w==null?void 0:w.data,error:void 0,returnNow:!0}:{data:w==null?void 0:w.data,error:void 0}},onRequest:function(y,w){var E=Ec(r);return E&&E!==m.current?{servicePromise:E}:(E=y.apply(void 0,Le([],ke(w),!1)),m.current=E,xc(r,E),{servicePromise:E})},onSuccess:function(y,w){var E;r&&((E=u.current)===null||E===void 0||E.call(u),d(r,{data:y,params:w,time:Date.now()}),u.current=Nn(r,function(S){e.setState({data:S})}))},onMutate:function(y){var w;r&&((w=u.current)===null||w===void 0||w.call(u),d(r,{data:y,params:e.state.params,time:Date.now()}),u.current=Nn(r,function(E){e.setState({data:E})}))}}:{}},An,Lo;function ja(){if(Lo)return An;Lo=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return An=e,An}var Mn,zo;function Rc(){if(zo)return Mn;zo=1;var e=typeof jr=="object"&&jr&&jr.Object===Object&&jr;return Mn=e,Mn}var In,$o;function ms(){if($o)return In;$o=1;var e=Rc(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return In=r,In}var kn,Uo;function Pc(){if(Uo)return kn;Uo=1;var e=ms(),t=function(){return e.Date.now()};return kn=t,kn}var Fn,Wo;function Oc(){if(Wo)return Fn;Wo=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Fn=t,Fn}var Ln,qo;function _c(){if(qo)return Ln;qo=1;var e=Oc(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Ln=r,Ln}var zn,Bo;function gs(){if(Bo)return zn;Bo=1;var e=ms(),t=e.Symbol;return zn=t,zn}var $n,Ho;function Tc(){if(Ho)return $n;Ho=1;var e=gs(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function o(i){var s=r.call(i,a),l=i[a];try{i[a]=void 0;var u=!0}catch{}var m=n.call(i);return u&&(s?i[a]=l:delete i[a]),m}return $n=o,$n}var Un,Yo;function Cc(){if(Yo)return Un;Yo=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Un=r,Un}var Wn,Vo;function Dc(){if(Vo)return Wn;Vo=1;var e=gs(),t=Tc(),r=Cc(),n="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function i(s){return s==null?s===void 0?a:n:o&&o in Object(s)?t(s):r(s)}return Wn=i,Wn}var qn,Xo;function jc(){if(Xo)return qn;Xo=1;function e(t){return t!=null&&typeof t=="object"}return qn=e,qn}var Bn,Go;function Nc(){if(Go)return Bn;Go=1;var e=Dc(),t=jc(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return Bn=n,Bn}var Hn,Ko;function Ac(){if(Ko)return Hn;Ko=1;var e=_c(),t=ja(),r=Nc(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var m=typeof u.valueOf=="function"?u.valueOf():u;u=t(m)?m+"":m}if(typeof u!="string")return u===0?u:+u;u=e(u);var d=o.test(u);return d||i.test(u)?s(u.slice(2),d?2:8):a.test(u)?n:+u}return Hn=l,Hn}var Yn,Jo;function vs(){if(Jo)return Yn;Jo=1;var e=ja(),t=Pc(),r=Ac(),n="Expected a function",a=Math.max,o=Math.min;function i(s,l,u){var m,d,b,y,w,E,S=0,h=!1,c=!1,g=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(u)&&(h=!!u.leading,c="maxWait"in u,b=c?a(r(u.maxWait)||0,l):b,g="trailing"in u?!!u.trailing:g);function v(N){var Y=m,X=d;return m=d=void 0,S=N,y=s.apply(X,Y),y}function p(N){return S=N,w=setTimeout(O,l),h?v(N):y}function x(N){var Y=N-E,X=N-S,te=l-Y;return c?o(te,b-X):te}function f(N){var Y=N-E,X=N-S;return E===void 0||Y>=l||Y<0||c&&X>=b}function O(){var N=t();if(f(N))return j(N);w=setTimeout(O,x(N))}function j(N){return w=void 0,g&&m?v(N):(m=d=void 0,y)}function M(){w!==void 0&&clearTimeout(w),S=0,m=E=d=w=void 0}function L(){return w===void 0?y:j(t())}function q(){var N=t(),Y=f(N);if(m=arguments,d=this,E=N,Y){if(w===void 0)return p(E);if(c)return clearTimeout(w),w=setTimeout(O,l),v(E)}return w===void 0&&(w=setTimeout(O,l)),y}return q.cancel=M,q.flush=L,q}return Yn=i,Yn}var Mc=vs();const Ic=nn(Mc);var kc=function(e,t){var r=t.debounceWait,n=t.debounceLeading,a=t.debounceTrailing,o=t.debounceMaxWait,i=I.useRef(void 0),s=I.useMemo(function(){var l={};return n!==void 0&&(l.leading=n),a!==void 0&&(l.trailing=a),o!==void 0&&(l.maxWait=o),l},[n,a,o]);return I.useEffect(function(){if(r){var l=e.runAsync.bind(e);return i.current=Ic(function(u){u()},r,s),e.runAsync=function(){for(var u=[],m=0;m<arguments.length;m++)u[m]=arguments[m];return new Promise(function(d,b){var y;(y=i.current)===null||y===void 0||y.call(i,function(){l.apply(void 0,Le([],ke(u),!1)).then(d).catch(b)})})},function(){var u;(u=i.current)===null||u===void 0||u.cancel(),e.runAsync=l}}},[r,s]),r?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel()}}:{}},Fc=function(e,t){var r=t.loadingDelay,n=t.ready,a=I.useRef(void 0);if(!r)return{};var o=function(){a.current&&clearTimeout(a.current)};return{onBefore:function(){return o(),n!==!1&&(a.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},Ht=!!(typeof window<"u"&&window.document&&window.document.createElement);function Na(){return Ht?document.visibilityState!=="hidden":!0}var Vr=new Set;function Lc(e){return Vr.add(e),function(){Vr.has(e)&&Vr.delete(e)}}if(Ht){var zc=function(){Na()&&Vr.forEach(function(e){return e()})};window.addEventListener("visibilitychange",zc,!1)}var $c=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,a=n===void 0?!0:n,o=t.pollingErrorRetryCount,i=o===void 0?-1:o,s=I.useRef(void 0),l=I.useRef(void 0),u=I.useRef(0),m=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l)};return Zr(function(){r||m()},[r]),r?{onBefore:function(){m()},onError:function(){u.current+=1},onSuccess:function(){u.current=0},onFinally:function(){i===-1||i!==-1&&u.current<=i?s.current=setTimeout(function(){!a&&!Na()?l.current=Lc(function(){e.refresh()}):e.refresh()},r):u.current=0},onCancel:function(){m()}}:{}};function Uc(e,t){var r=!1;return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];r||(r=!0,e.apply(void 0,Le([],ke(n),!1)),setTimeout(function(){r=!1},t))}}var Wc=function(){return Ht&&typeof navigator.onLine<"u"?navigator.onLine:!0},Xr=new Set;function qc(e){return Xr.add(e),function(){Xr.has(e)&&Xr.delete(e)}}if(Ht){var Zo=function(){!Na()||!Wc()||Xr.forEach(function(e){return e()})};window.addEventListener("visibilitychange",Zo,!1),window.addEventListener("focus",Zo,!1)}var Bc=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,a=n===void 0?5e3:n,o=I.useRef(void 0),i=function(){var s;(s=o.current)===null||s===void 0||s.call(o)};return I.useEffect(function(){if(r){var s=Uc(e.refresh.bind(e),a);o.current=qc(function(){s()})}return function(){i()}},[r,a]),fn(function(){i()}),{}},Hc=function(e,t){var r=t.retryInterval,n=t.retryCount,a=I.useRef(void 0),o=I.useRef(0),i=I.useRef(!1);return n?{onBefore:function(){i.current||(o.current=0),i.current=!1,a.current&&clearTimeout(a.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,n===-1||o.current<=n){var s=r??Math.min(1e3*Math.pow(2,o.current),3e4);a.current=setTimeout(function(){i.current=!0,e.refresh()},s)}else o.current=0},onCancel:function(){o.current=0,a.current&&clearTimeout(a.current)}}:{}},Vn,Qo;function Yc(){if(Qo)return Vn;Qo=1;var e=vs(),t=ja(),r="Expected a function";function n(a,o,i){var s=!0,l=!0;if(typeof a!="function")throw new TypeError(r);return t(i)&&(s="leading"in i?!!i.leading:s,l="trailing"in i?!!i.trailing:l),e(a,o,{leading:s,maxWait:o,trailing:l})}return Vn=n,Vn}var Vc=Yc();const Xc=nn(Vc);var Gc=function(e,t){var r=t.throttleWait,n=t.throttleLeading,a=t.throttleTrailing,o=I.useRef(void 0),i={};return n!==void 0&&(i.leading=n),a!==void 0&&(i.trailing=a),I.useEffect(function(){if(r){var s=e.runAsync.bind(e);return o.current=Xc(function(l){l()},r,i),e.runAsync=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new Promise(function(m,d){var b;(b=o.current)===null||b===void 0||b.call(o,function(){s.apply(void 0,Le([],ke(l),!1)).then(m).catch(d)})})},function(){var l;e.runAsync=s,(l=o.current)===null||l===void 0||l.cancel()}}},[r,n,a]),r?{onCancel:function(){var s;(s=o.current)===null||s===void 0||s.cancel()}}:{}},Kc=function(e){cn&&(Ot(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),I.useEffect(function(){var t=e==null?void 0:e();if(!(t&&typeof t=="object"&&typeof t.then=="function"))return t},[])},Aa=function(){var e=ke(I.useState({}),2),t=e[1];return I.useCallback(function(){return t({})},[])},Jc=(function(){function e(t,r,n,a){a===void 0&&(a={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=a,this.pluginImpls=[],this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Xe(Xe(Xe({},this.state),{loading:!r.manual}),a)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Xe(Xe({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var a=this.pluginImpls.map(function(o){var i;return(i=o[t])===null||i===void 0?void 0:i.call.apply(i,Le([o],ke(r),!1))}).filter(Boolean);return Object.assign.apply(Object,Le([{}],ke(a),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mc(this,void 0,void 0,function(){var n,a,o,i,s,l,u,m,d,b,y,w,E,S,h,c,g,v,p,x,f;return gc(this,function(O){switch(O.label){case 0:if(this.count+=1,n=this.count,a=this.runPluginHandler("onBefore",t),o=a.stopNow,i=o===void 0?!1:o,s=a.returnNow,l=s===void 0?!1:s,u=ds(a,["stopNow","returnNow"]),i)return[2,new Promise(function(){})];if(this.setState(Xe({loading:!0,params:t},u)),l)return[2,Promise.resolve(u.data)];(E=(w=this.options).onBefore)===null||E===void 0||E.call(w,t),O.label=1;case 1:return O.trys.push([1,3,,4]),m=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,m||(m=(y=this.serviceRef).current.apply(y,Le([],ke(t),!1))),[4,m];case 2:return d=O.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:d,error:void 0,loading:!1}),(h=(S=this.options).onSuccess)===null||h===void 0||h.call(S,d,t),this.runPluginHandler("onSuccess",d,t),(g=(c=this.options).onFinally)===null||g===void 0||g.call(c,t,d,void 0),n===this.count&&this.runPluginHandler("onFinally",t,d,void 0),[2,d]);case 3:if(b=O.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:b,loading:!1}),(p=(v=this.options).onError)===null||p===void 0||p.call(v,b,t),this.runPluginHandler("onError",b,t),(f=(x=this.options).onFinally)===null||f===void 0||f.call(x,t,void 0,b),n===this.count&&this.runPluginHandler("onFinally",t,void 0,b),b;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,Le([],ke(r),!1)).catch(function(a){t.options.onError||console.error(a)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,Le([],ke(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,Le([],ke(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=Ot(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e})();function Zc(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,a=n===void 0?!1:n,o=t.ready,i=o===void 0?!0:o,s=ds(t,["manual","ready"]);cn&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var l=Xe({manual:a,ready:i},s),u=Da(e),m=Aa(),d=hs(function(){var b=r.map(function(y){var w;return(w=y==null?void 0:y.onInit)===null||w===void 0?void 0:w.call(y,l)}).filter(Boolean);return new Jc(u,l,m,Object.assign.apply(Object,Le([{}],ke(b),!1)))},[]);return d.options=l,d.pluginImpls=r.map(function(b){return b(d,l)}),Kc(function(){if(!a&&i){var b=d.state.params||t.defaultParams||[];d.run.apply(d,Le([],ke(b),!1))}}),fn(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:et(d.cancel.bind(d)),refresh:et(d.refresh.bind(d)),refreshAsync:et(d.refreshAsync.bind(d)),run:et(d.run.bind(d)),runAsync:et(d.runAsync.bind(d)),mutate:et(d.mutate.bind(d))}}function Qc(e,t,r){return Zc(e,t,Le(Le([],ke(r||[]),!1),[kc,Fc,$c,Bc,Gc,ps,wc,Hc],!1))}function ys(e,t){if(Ht){if(!e)return t;var r;return Ot(e)?r=e():"current"in e?r=e.current:r=e,r}}var ef=function(e){var t=function(r,n,a){var o=I.useRef(!1),i=I.useRef([]),s=I.useRef([]),l=I.useRef(void 0);e(function(){var u,m=Array.isArray(a)?a:[a],d=m.map(function(b){return ys(b)});if(!o.current){o.current=!0,i.current=d,s.current=n,l.current=r();return}(d.length!==i.current.length||!fa(i.current,d)||!fa(s.current,n))&&((u=l.current)===null||u===void 0||u.call(l),i.current=d,s.current=n,l.current=r())}),fn(function(){var u;(u=l.current)===null||u===void 0||u.call(l),o.current=!1})};return t},tf=ef(I.useEffect);function ei(e,t,r){r===void 0&&(r={});var n=r.enable,a=n===void 0?!0:n,o=Da(t);tf(function(){if(a){var i=ys(r.target,window);if(i!=null&&i.addEventListener){var s=function(u){return o.current(u)},l=Array.isArray(e)?e:[e];return l.forEach(function(u){i.addEventListener(u,s,{capture:r.capture,once:r.once,passive:r.passive})}),function(){l.forEach(function(u){i.removeEventListener(u,s,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,a],r.target)}var ti="AHOOKS_SYNC_STORAGE_EVENT_NAME";function rf(e){function t(r,n){n===void 0&&(n={});var a,o=n.listenStorageChange,i=o===void 0?!1:o,s=n.onError,l=s===void 0?function(c){console.error(c)}:s;try{a=e()}catch(c){l(c)}var u=function(c){return n.serializer?n.serializer(c):JSON.stringify(c)},m=function(c){return n.deserializer?n.deserializer(c):JSON.parse(c)};function d(){try{var c=a==null?void 0:a.getItem(r);if(c)return m(c)}catch(g){l(g)}return Ot(n.defaultValue)?n.defaultValue():n.defaultValue}var b=ke(I.useState(d),2),y=b[0],w=b[1];Zr(function(){w(d())},[r]);var E=function(c){var g=Ot(c)?c(y):c;i||w(g);try{var v=void 0,p=a==null?void 0:a.getItem(r);vc(g)?(v=null,a==null||a.removeItem(r)):(v=u(g),a==null||a.setItem(r,v)),dispatchEvent(new CustomEvent(ti,{detail:{key:r,newValue:v,oldValue:p,storageArea:a}}))}catch(x){l(x)}},S=function(c){c.key!==r||c.storageArea!==a||w(d())},h=function(c){S(c.detail)};return ei("storage",S,{enable:i}),ei(ti,h,{enable:i}),[y,et(E)]}return t}var bs=rf(function(){return Ht?localStorage:void 0});const nf=Oa`
|
|
121
|
+
`,dc=({children:e,tooltipDisabled:t,disabled:r,disabledReason:n,title:a,...o})=>t?e:$.jsx(Ee.Tooltip,{title:r&&n||a,...o,children:e}),pc=M.forwardRef((e,t)=>{const{iconButton:r}=M.useContext(Sr),{icon:n,tooltipDisabled:a=!1,title:o,hide:i=!1,disabledReason:s,onClick:l=Br,disabled:u,size:m=r.size||"small",style:d={},className:b,loading:y=!1,...w}=e,E=()=>uc(n)?$.jsx(Ca,{type:n}):n,S=r.render;return n||console.warn("Icon props not found"),$.jsx(S,{...e,children:$.jsx(dc,{tooltipDisabled:a,hide:i,disabled:u,disabledReason:s,title:o,...w,children:$.jsx(fc,{ref:t,icon:E(),size:m,className:ca(["icon-button",r.className,b]),disabled:u,style:{...r.style,...d},loading:y,onClick:l})})})});var hc=function(e){return function(t,r){var n=M.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},Xe=function(){return Xe=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Xe.apply(this,arguments)};function ds(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function mc(e,t,r,n){function a(o){return o instanceof r?o:new r(function(i){i(o)})}return new(r||(r=Promise))(function(o,i){function s(m){try{u(n.next(m))}catch(d){i(d)}}function l(m){try{u(n.throw(m))}catch(d){i(d)}}function u(m){m.done?o(m.value):a(m.value).then(s,l)}u((n=n.apply(e,t||[])).next())})}function gc(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,i=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return i.next=s(0),i.throw=s(1),i.return=s(2),typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(u){return function(m){return l([u,m])}}function l(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(r=0)),r;)try{if(n=1,a&&(o=u[0]&2?a.return:u[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,u[1])).done)return o;switch(a=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,a=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){r.label=u[1];break}if(u[0]===6&&r.label<o[1]){r.label=o[1],o=u;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(u);break}o[2]&&r.ops.pop(),r.trys.pop();continue}u=t.call(e,r)}catch(m){u=[6,m],a=0}finally{n=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function ke(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,o=[],i;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(s){i={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(i)throw i.error}}return o}function Le(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,o;n<a;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}var Ot=function(e){return typeof e=="function"},vc=function(e){return typeof e>"u"},cn=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test",et=function(e){cn&&(Ot(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=M.useRef(e);t.current=M.useMemo(function(){return e},[e]);var r=M.useRef(void 0);return r.current||(r.current=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];return t.current.apply(this,n)}),r.current};const Zr=hc(M.useEffect);var ps=function(e,t){var r=t.manual,n=t.ready,a=n===void 0?!0:n,o=t.defaultParams,i=o===void 0?[]:o,s=t.refreshDeps,l=s===void 0?[]:s,u=t.refreshDepsAction,m=M.useRef(!1);return m.current=!1,Zr(function(){!r&&a&&(m.current=!0,e.run.apply(e,Le([],ke(i),!1)))},[a]),Zr(function(){m.current||r||(m.current=!0,u?u():e.refresh())},Le([],ke(l),!1)),{onBefore:function(){if(!a)return{stopNow:!0}}}};ps.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function fa(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}var hs=function(e,t){var r=M.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!fa(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj};function Da(e){var t=M.useRef(e);return t.current=e,t}var fn=function(e){cn&&(Ot(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=Da(e);M.useEffect(function(){return function(){t.current()}},[])},Hr=new Map,yc=function(e,t,r){var n=Hr.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var a=void 0;t>-1&&(a=setTimeout(function(){Hr.delete(e)},t)),Hr.set(e,Xe(Xe({},r),{timer:a}))},bc=function(e){return Hr.get(e)},Yr=new Map,Ec=function(e){return Yr.get(e)},xc=function(e,t){Yr.set(e,t),t.then(function(r){return Yr.delete(e),r}).catch(function(){Yr.delete(e)})},wt={},Sc=function(e,t){wt[e]&&wt[e].forEach(function(r){return r(t)})},Nn=function(e,t){return wt[e]||(wt[e]=[]),wt[e].push(t),function(){var n=wt[e].indexOf(t);wt[e].splice(n,1)}},wc=function(e,t){var r=t.cacheKey,n=t.cacheTime,a=n===void 0?300*1e3:n,o=t.staleTime,i=o===void 0?0:o,s=t.setCache,l=t.getCache,u=M.useRef(void 0),m=M.useRef(void 0),d=function(y,w){s?s(w):yc(y,a,w),Sc(y,w.data)},b=function(y,w){return w===void 0&&(w=[]),l?l(w):bc(y)};return hs(function(){if(r){var y=b(r);y&&Object.hasOwnProperty.call(y,"data")&&(e.state.data=y.data,e.state.params=y.params,(i===-1||Date.now()-y.time<=i)&&(e.state.loading=!1)),u.current=Nn(r,function(w){e.setState({data:w})})}},[]),fn(function(){var y;(y=u.current)===null||y===void 0||y.call(u)}),r?{onBefore:function(y){var w=b(r,y);return!w||!Object.hasOwnProperty.call(w,"data")?{}:i===-1||Date.now()-w.time<=i?{loading:!1,data:w==null?void 0:w.data,error:void 0,returnNow:!0}:{data:w==null?void 0:w.data,error:void 0}},onRequest:function(y,w){var E=Ec(r);return E&&E!==m.current?{servicePromise:E}:(E=y.apply(void 0,Le([],ke(w),!1)),m.current=E,xc(r,E),{servicePromise:E})},onSuccess:function(y,w){var E;r&&((E=u.current)===null||E===void 0||E.call(u),d(r,{data:y,params:w,time:Date.now()}),u.current=Nn(r,function(S){e.setState({data:S})}))},onMutate:function(y){var w;r&&((w=u.current)===null||w===void 0||w.call(u),d(r,{data:y,params:e.state.params,time:Date.now()}),u.current=Nn(r,function(E){e.setState({data:E})}))}}:{}},An,Lo;function ja(){if(Lo)return An;Lo=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return An=e,An}var Mn,zo;function Rc(){if(zo)return Mn;zo=1;var e=typeof jr=="object"&&jr&&jr.Object===Object&&jr;return Mn=e,Mn}var In,$o;function ms(){if($o)return In;$o=1;var e=Rc(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return In=r,In}var kn,Uo;function Pc(){if(Uo)return kn;Uo=1;var e=ms(),t=function(){return e.Date.now()};return kn=t,kn}var Fn,Wo;function Oc(){if(Wo)return Fn;Wo=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Fn=t,Fn}var Ln,qo;function _c(){if(qo)return Ln;qo=1;var e=Oc(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Ln=r,Ln}var zn,Bo;function gs(){if(Bo)return zn;Bo=1;var e=ms(),t=e.Symbol;return zn=t,zn}var $n,Ho;function Tc(){if(Ho)return $n;Ho=1;var e=gs(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function o(i){var s=r.call(i,a),l=i[a];try{i[a]=void 0;var u=!0}catch{}var m=n.call(i);return u&&(s?i[a]=l:delete i[a]),m}return $n=o,$n}var Un,Yo;function Cc(){if(Yo)return Un;Yo=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Un=r,Un}var Wn,Vo;function Dc(){if(Vo)return Wn;Vo=1;var e=gs(),t=Tc(),r=Cc(),n="[object Null]",a="[object Undefined]",o=e?e.toStringTag:void 0;function i(s){return s==null?s===void 0?a:n:o&&o in Object(s)?t(s):r(s)}return Wn=i,Wn}var qn,Xo;function jc(){if(Xo)return qn;Xo=1;function e(t){return t!=null&&typeof t=="object"}return qn=e,qn}var Bn,Go;function Nc(){if(Go)return Bn;Go=1;var e=Dc(),t=jc(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return Bn=n,Bn}var Hn,Ko;function Ac(){if(Ko)return Hn;Ko=1;var e=_c(),t=ja(),r=Nc(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var m=typeof u.valueOf=="function"?u.valueOf():u;u=t(m)?m+"":m}if(typeof u!="string")return u===0?u:+u;u=e(u);var d=o.test(u);return d||i.test(u)?s(u.slice(2),d?2:8):a.test(u)?n:+u}return Hn=l,Hn}var Yn,Jo;function vs(){if(Jo)return Yn;Jo=1;var e=ja(),t=Pc(),r=Ac(),n="Expected a function",a=Math.max,o=Math.min;function i(s,l,u){var m,d,b,y,w,E,S=0,h=!1,c=!1,g=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(u)&&(h=!!u.leading,c="maxWait"in u,b=c?a(r(u.maxWait)||0,l):b,g="trailing"in u?!!u.trailing:g);function v(U){var L=m,J=d;return m=d=void 0,S=U,y=s.apply(J,L),y}function p(U){return S=U,w=setTimeout(P,l),h?v(U):y}function x(U){var L=U-E,J=U-S,X=l-L;return c?o(X,b-J):X}function f(U){var L=U-E,J=U-S;return E===void 0||L>=l||L<0||c&&J>=b}function P(){var U=t();if(f(U))return j(U);w=setTimeout(P,x(U))}function j(U){return w=void 0,g&&m?v(U):(m=d=void 0,y)}function A(){w!==void 0&&clearTimeout(w),S=0,m=E=d=w=void 0}function k(){return w===void 0?y:j(t())}function B(){var U=t(),L=f(U);if(m=arguments,d=this,E=U,L){if(w===void 0)return p(E);if(c)return clearTimeout(w),w=setTimeout(P,l),v(E)}return w===void 0&&(w=setTimeout(P,l)),y}return B.cancel=A,B.flush=k,B}return Yn=i,Yn}var Mc=vs();const Ic=nn(Mc);var kc=function(e,t){var r=t.debounceWait,n=t.debounceLeading,a=t.debounceTrailing,o=t.debounceMaxWait,i=M.useRef(void 0),s=M.useMemo(function(){var l={};return n!==void 0&&(l.leading=n),a!==void 0&&(l.trailing=a),o!==void 0&&(l.maxWait=o),l},[n,a,o]);return M.useEffect(function(){if(r){var l=e.runAsync.bind(e);return i.current=Ic(function(u){u()},r,s),e.runAsync=function(){for(var u=[],m=0;m<arguments.length;m++)u[m]=arguments[m];return new Promise(function(d,b){var y;(y=i.current)===null||y===void 0||y.call(i,function(){l.apply(void 0,Le([],ke(u),!1)).then(d).catch(b)})})},function(){var u;(u=i.current)===null||u===void 0||u.cancel(),e.runAsync=l}}},[r,s]),r?{onCancel:function(){var l;(l=i.current)===null||l===void 0||l.cancel()}}:{}},Fc=function(e,t){var r=t.loadingDelay,n=t.ready,a=M.useRef(void 0);if(!r)return{};var o=function(){a.current&&clearTimeout(a.current)};return{onBefore:function(){return o(),n!==!1&&(a.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},Ht=!!(typeof window<"u"&&window.document&&window.document.createElement);function Na(){return Ht?document.visibilityState!=="hidden":!0}var Vr=new Set;function Lc(e){return Vr.add(e),function(){Vr.has(e)&&Vr.delete(e)}}if(Ht){var zc=function(){Na()&&Vr.forEach(function(e){return e()})};window.addEventListener("visibilitychange",zc,!1)}var $c=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,a=n===void 0?!0:n,o=t.pollingErrorRetryCount,i=o===void 0?-1:o,s=M.useRef(void 0),l=M.useRef(void 0),u=M.useRef(0),m=function(){var d;s.current&&clearTimeout(s.current),(d=l.current)===null||d===void 0||d.call(l)};return Zr(function(){r||m()},[r]),r?{onBefore:function(){m()},onError:function(){u.current+=1},onSuccess:function(){u.current=0},onFinally:function(){i===-1||i!==-1&&u.current<=i?s.current=setTimeout(function(){!a&&!Na()?l.current=Lc(function(){e.refresh()}):e.refresh()},r):u.current=0},onCancel:function(){m()}}:{}};function Uc(e,t){var r=!1;return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];r||(r=!0,e.apply(void 0,Le([],ke(n),!1)),setTimeout(function(){r=!1},t))}}var Wc=function(){return Ht&&typeof navigator.onLine<"u"?navigator.onLine:!0},Xr=new Set;function qc(e){return Xr.add(e),function(){Xr.has(e)&&Xr.delete(e)}}if(Ht){var Zo=function(){!Na()||!Wc()||Xr.forEach(function(e){return e()})};window.addEventListener("visibilitychange",Zo,!1),window.addEventListener("focus",Zo,!1)}var Bc=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,a=n===void 0?5e3:n,o=M.useRef(void 0),i=function(){var s;(s=o.current)===null||s===void 0||s.call(o)};return M.useEffect(function(){if(r){var s=Uc(e.refresh.bind(e),a);o.current=qc(function(){s()})}return function(){i()}},[r,a]),fn(function(){i()}),{}},Hc=function(e,t){var r=t.retryInterval,n=t.retryCount,a=M.useRef(void 0),o=M.useRef(0),i=M.useRef(!1);return n?{onBefore:function(){i.current||(o.current=0),i.current=!1,a.current&&clearTimeout(a.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,n===-1||o.current<=n){var s=r??Math.min(1e3*Math.pow(2,o.current),3e4);a.current=setTimeout(function(){i.current=!0,e.refresh()},s)}else o.current=0},onCancel:function(){o.current=0,a.current&&clearTimeout(a.current)}}:{}},Vn,Qo;function Yc(){if(Qo)return Vn;Qo=1;var e=vs(),t=ja(),r="Expected a function";function n(a,o,i){var s=!0,l=!0;if(typeof a!="function")throw new TypeError(r);return t(i)&&(s="leading"in i?!!i.leading:s,l="trailing"in i?!!i.trailing:l),e(a,o,{leading:s,maxWait:o,trailing:l})}return Vn=n,Vn}var Vc=Yc();const Xc=nn(Vc);var Gc=function(e,t){var r=t.throttleWait,n=t.throttleLeading,a=t.throttleTrailing,o=M.useRef(void 0),i={};return n!==void 0&&(i.leading=n),a!==void 0&&(i.trailing=a),M.useEffect(function(){if(r){var s=e.runAsync.bind(e);return o.current=Xc(function(l){l()},r,i),e.runAsync=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new Promise(function(m,d){var b;(b=o.current)===null||b===void 0||b.call(o,function(){s.apply(void 0,Le([],ke(l),!1)).then(m).catch(d)})})},function(){var l;e.runAsync=s,(l=o.current)===null||l===void 0||l.cancel()}}},[r,n,a]),r?{onCancel:function(){var s;(s=o.current)===null||s===void 0||s.cancel()}}:{}},Kc=function(e){cn&&(Ot(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),M.useEffect(function(){var t=e==null?void 0:e();if(!(t&&typeof t=="object"&&typeof t.then=="function"))return t},[])},Aa=function(){var e=ke(M.useState({}),2),t=e[1];return M.useCallback(function(){return t({})},[])},Jc=(function(){function e(t,r,n,a){a===void 0&&(a={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=a,this.pluginImpls=[],this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=Xe(Xe(Xe({},this.state),{loading:!r.manual}),a)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=Xe(Xe({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var a=this.pluginImpls.map(function(o){var i;return(i=o[t])===null||i===void 0?void 0:i.call.apply(i,Le([o],ke(r),!1))}).filter(Boolean);return Object.assign.apply(Object,Le([{}],ke(a),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return mc(this,void 0,void 0,function(){var n,a,o,i,s,l,u,m,d,b,y,w,E,S,h,c,g,v,p,x,f;return gc(this,function(P){switch(P.label){case 0:if(this.count+=1,n=this.count,a=this.runPluginHandler("onBefore",t),o=a.stopNow,i=o===void 0?!1:o,s=a.returnNow,l=s===void 0?!1:s,u=ds(a,["stopNow","returnNow"]),i)return[2,new Promise(function(){})];if(this.setState(Xe({loading:!0,params:t},u)),l)return[2,Promise.resolve(u.data)];(E=(w=this.options).onBefore)===null||E===void 0||E.call(w,t),P.label=1;case 1:return P.trys.push([1,3,,4]),m=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,m||(m=(y=this.serviceRef).current.apply(y,Le([],ke(t),!1))),[4,m];case 2:return d=P.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:d,error:void 0,loading:!1}),(h=(S=this.options).onSuccess)===null||h===void 0||h.call(S,d,t),this.runPluginHandler("onSuccess",d,t),(g=(c=this.options).onFinally)===null||g===void 0||g.call(c,t,d,void 0),n===this.count&&this.runPluginHandler("onFinally",t,d,void 0),[2,d]);case 3:if(b=P.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:b,loading:!1}),(p=(v=this.options).onError)===null||p===void 0||p.call(v,b,t),this.runPluginHandler("onError",b,t),(f=(x=this.options).onFinally)===null||f===void 0||f.call(x,t,void 0,b),n===this.count&&this.runPluginHandler("onFinally",t,void 0,b),b;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.runAsync.apply(this,Le([],ke(r),!1)).catch(function(a){t.options.onError||console.error(a)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,Le([],ke(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,Le([],ke(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=Ot(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e})();function Zc(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,a=n===void 0?!1:n,o=t.ready,i=o===void 0?!0:o,s=ds(t,["manual","ready"]);cn&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var l=Xe({manual:a,ready:i},s),u=Da(e),m=Aa(),d=hs(function(){var b=r.map(function(y){var w;return(w=y==null?void 0:y.onInit)===null||w===void 0?void 0:w.call(y,l)}).filter(Boolean);return new Jc(u,l,m,Object.assign.apply(Object,Le([{}],ke(b),!1)))},[]);return d.options=l,d.pluginImpls=r.map(function(b){return b(d,l)}),Kc(function(){if(!a&&i){var b=d.state.params||t.defaultParams||[];d.run.apply(d,Le([],ke(b),!1))}}),fn(function(){d.cancel()}),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:et(d.cancel.bind(d)),refresh:et(d.refresh.bind(d)),refreshAsync:et(d.refreshAsync.bind(d)),run:et(d.run.bind(d)),runAsync:et(d.runAsync.bind(d)),mutate:et(d.mutate.bind(d))}}function Qc(e,t,r){return Zc(e,t,Le(Le([],ke(r||[]),!1),[kc,Fc,$c,Bc,Gc,ps,wc,Hc],!1))}function ys(e,t){if(Ht){if(!e)return t;var r;return Ot(e)?r=e():"current"in e?r=e.current:r=e,r}}var ef=function(e){var t=function(r,n,a){var o=M.useRef(!1),i=M.useRef([]),s=M.useRef([]),l=M.useRef(void 0);e(function(){var u,m=Array.isArray(a)?a:[a],d=m.map(function(b){return ys(b)});if(!o.current){o.current=!0,i.current=d,s.current=n,l.current=r();return}(d.length!==i.current.length||!fa(i.current,d)||!fa(s.current,n))&&((u=l.current)===null||u===void 0||u.call(l),i.current=d,s.current=n,l.current=r())}),fn(function(){var u;(u=l.current)===null||u===void 0||u.call(l),o.current=!1})};return t},tf=ef(M.useEffect);function ei(e,t,r){r===void 0&&(r={});var n=r.enable,a=n===void 0?!0:n,o=Da(t);tf(function(){if(a){var i=ys(r.target,window);if(i!=null&&i.addEventListener){var s=function(u){return o.current(u)},l=Array.isArray(e)?e:[e];return l.forEach(function(u){i.addEventListener(u,s,{capture:r.capture,once:r.once,passive:r.passive})}),function(){l.forEach(function(u){i.removeEventListener(u,s,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,a],r.target)}var ti="AHOOKS_SYNC_STORAGE_EVENT_NAME";function rf(e){function t(r,n){n===void 0&&(n={});var a,o=n.listenStorageChange,i=o===void 0?!1:o,s=n.onError,l=s===void 0?function(c){console.error(c)}:s;try{a=e()}catch(c){l(c)}var u=function(c){return n.serializer?n.serializer(c):JSON.stringify(c)},m=function(c){return n.deserializer?n.deserializer(c):JSON.parse(c)};function d(){try{var c=a==null?void 0:a.getItem(r);if(c)return m(c)}catch(g){l(g)}return Ot(n.defaultValue)?n.defaultValue():n.defaultValue}var b=ke(M.useState(d),2),y=b[0],w=b[1];Zr(function(){w(d())},[r]);var E=function(c){var g=Ot(c)?c(y):c;i||w(g);try{var v=void 0,p=a==null?void 0:a.getItem(r);vc(g)?(v=null,a==null||a.removeItem(r)):(v=u(g),a==null||a.setItem(r,v)),dispatchEvent(new CustomEvent(ti,{detail:{key:r,newValue:v,oldValue:p,storageArea:a}}))}catch(x){l(x)}},S=function(c){c.key!==r||c.storageArea!==a||w(d())},h=function(c){S(c.detail)};return ei("storage",S,{enable:i}),ei(ti,h,{enable:i}),[y,et(E)]}return t}var bs=rf(function(){return Ht?localStorage:void 0});const nf=Oa`
|
|
122
122
|
from {
|
|
123
123
|
margin-top: 0;
|
|
124
124
|
}
|
|
@@ -182,7 +182,7 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var C=Ae(B,le,W,Z,ee+"."
|
|
|
182
182
|
background-color: #f0f0f0;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
`;function sf({order:e,visibleItems:t,columns:r=[],onChangeOrder:n,columnsVisible:a,columnsSort:o,onChangeVisible:i}){const s=
|
|
185
|
+
`;function sf({order:e,visibleItems:t,columns:r=[],onChangeOrder:n,columnsVisible:a,columnsSort:o,onChangeVisible:i}){const s=M.useRef(null),l=M.useRef(null),u=E=>{s.current=E.currentTarget},m=E=>{if(!l.current||!s.current)return;s.current.style.display="block",E.currentTarget.classList.remove("drag-up"),l.current.classList.remove("drag-up"),E.currentTarget.classList.remove("drag-down"),l.current.classList.remove("drag-down");const S=[...e],h=Number(s.current.dataset.index),c=Number(l.current.dataset.index);S.splice(c,0,S.splice(h,1)[0]),n(S)},d=E=>{if(E.preventDefault(),!s.current)return;s.current.style.display="none";const S=E.target;if(S.tagName!=="LI")return;const h=s.current.dataset.index,c=S.dataset.index,g=S.dataset.id;if(!g||y.includes(g)||!h||!c)return;const v=h>c?"drag-up":"drag-down";l.current&&S.dataset.index!==l.current.dataset.index&&l.current.classList.remove("drag-up","drag-down"),S.classList.contains(v)||(S.classList.add(v),l.current=S)},b=({target:{checked:E}},{dataIndex:S})=>{if(t.length===1&&!E){exports.message.error($.jsx($t,{id:"component.table.visibleError",defaultMessage:"列表最少保留一个字段"}));return}const h=Array.isArray(S)?S.join(","):S,c=[...t];E?c.push(h):c.splice(c.indexOf(h),1),i(c)},y=M.useMemo(()=>{const E=[];for(const S of r)if(S.columnSortDisabled&&"dataIndex"in S){let h;Array.isArray(S.dataIndex)?h=S.dataIndex.join(","):h=S.dataIndex,E.push(h)}return E},[r]),w=M.useMemo(()=>e.map((E,S)=>{let h;for(const p of r)if("dataIndex"in p){let x;if(Array.isArray(p.dataIndex)?x=p.dataIndex.join(","):x=p.dataIndex,E===x){h=p;break}}if(!h||!("dataIndex"in h))return"";const c=o&&h&&!h.columnSortDisabled;let g;h&&Array.isArray(h.dataIndex)?g=h.dataIndex.join(","):h&&(g=h.dataIndex);const v=typeof g=="string"&&t.includes(g);return h?$.jsxs("li",{draggable:c,onDragEnd:m,onDragStart:u,"data-index":S,"data-id":Array.isArray(h.dataIndex)?h.dataIndex.join(","):String(h.dataIndex),children:[o&&$.jsx(qt.HolderOutlined,{className:"icon-drag"}),a&&$.jsx(Ee.Checkbox,{style:{marginRight:"10px"},checked:!!v,disabled:h.columnVisibleDisabled,onChange:p=>{b(p,h)}}),typeof h.title=="function"?h.title({}):h.title]},Array.isArray(h.dataIndex)?h.dataIndex.join(","):String(h.dataIndex)):null}),[e,t,r,o,a]);return $.jsx(Ee.Popover,{overlayClassName:"table-columns-setting-popover",content:$.jsx(of,{onDragOver:d,children:w}),trigger:"click",align:{offset:[-60,-14]},children:$.jsx(Ca,{type:"icon-setting",style:{float:"right",fontSize:"17px",lineHeight:1,marginTop:"2px",fontWeight:500}})})}const lf=Ne.div`
|
|
186
186
|
position: absolute;
|
|
187
187
|
left: 8px;
|
|
188
188
|
`,uf=Ne.span`
|
|
@@ -255,9 +255,9 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var C=Ae(B,le,W,Z,ee+"."
|
|
|
255
255
|
.zoom-leave-active {
|
|
256
256
|
transform: scale(0);
|
|
257
257
|
}
|
|
258
|
-
`;function hf(e){const t=
|
|
259
|
-
`,
|
|
260
|
-
`,f.getElementsByTagName("head")[0].appendChild(O)),f.body&&p(f.body,"react-draggable-transparent-selection")}function g(f){window.requestAnimationFrame?window.requestAnimationFrame(()=>{v(f)}):v(f)}function v(f){if(f)try{if(f.body&&x(f.body,"react-draggable-transparent-selection"),f.selection)f.selection.empty();else{const O=(f.defaultView||window).getSelection();O&&O.type!=="Caret"&&O.removeAllRanges()}}catch{}}function p(f,O){f.classList?f.classList.add(O):f.className.match(new RegExp(`(?:^|\\s)${O}(?!\\S)`))||(f.className+=` ${O}`)}function x(f,O){f.classList?f.classList.remove(O):f.className=f.className.replace(new RegExp(`(?:^|\\s)${O}(?!\\S)`,"g"),"")}return Te}var Je={},ii;function Es(){if(ii)return Je;ii=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.canDragX=a,Je.canDragY=o,Je.createCoreData=s,Je.createDraggableData=l,Je.getBoundPosition=r,Je.getControlPosition=i,Je.snapToGrid=n;var e=dn(),t=Ma();function r(d,b,y){if(!d.props.bounds)return[b,y];let{bounds:w}=d.props;w=typeof w=="string"?w:u(w);const E=m(d);if(typeof w=="string"){const{ownerDocument:S}=E,h=S.defaultView;let c;if(w==="parent"?c=E.parentNode:c=E.getRootNode().querySelector(w),!(c instanceof h.HTMLElement))throw new Error('Bounds selector "'+w+'" could not find an element.');const g=c,v=h.getComputedStyle(E),p=h.getComputedStyle(g);w={left:-E.offsetLeft+(0,e.int)(p.paddingLeft)+(0,e.int)(v.marginLeft),top:-E.offsetTop+(0,e.int)(p.paddingTop)+(0,e.int)(v.marginTop),right:(0,t.innerWidth)(g)-(0,t.outerWidth)(E)-E.offsetLeft+(0,e.int)(p.paddingRight)-(0,e.int)(v.marginRight),bottom:(0,t.innerHeight)(g)-(0,t.outerHeight)(E)-E.offsetTop+(0,e.int)(p.paddingBottom)-(0,e.int)(v.marginBottom)}}return(0,e.isNum)(w.right)&&(b=Math.min(b,w.right)),(0,e.isNum)(w.bottom)&&(y=Math.min(y,w.bottom)),(0,e.isNum)(w.left)&&(b=Math.max(b,w.left)),(0,e.isNum)(w.top)&&(y=Math.max(y,w.top)),[b,y]}function n(d,b,y){const w=Math.round(b/d[0])*d[0],E=Math.round(y/d[1])*d[1];return[w,E]}function a(d){return d.props.axis==="both"||d.props.axis==="x"}function o(d){return d.props.axis==="both"||d.props.axis==="y"}function i(d,b,y){const w=typeof b=="number"?(0,t.getTouch)(d,b):null;if(typeof b=="number"&&!w)return null;const E=m(y),S=y.props.offsetParent||E.offsetParent||E.ownerDocument.body;return(0,t.offsetXYFromParent)(w||d,S,y.props.scale)}function s(d,b,y){const w=!(0,e.isNum)(d.lastX),E=m(d);return w?{node:E,deltaX:0,deltaY:0,lastX:b,lastY:y,x:b,y}:{node:E,deltaX:b-d.lastX,deltaY:y-d.lastY,lastX:d.lastX,lastY:d.lastY,x:b,y}}function l(d,b){const y=d.props.scale;return{node:b.node,x:d.state.x+b.deltaX/y,y:d.state.y+b.deltaY/y,deltaX:b.deltaX/y,deltaY:b.deltaY/y,lastX:d.state.x,lastY:d.state.y}}function u(d){return{left:d.left,top:d.top,right:d.right,bottom:d.bottom}}function m(d){const b=d.findDOMNode();if(!b)throw new Error("<DraggableCore>: Unmounted during event!");return b}return Je}var or={},Lr={},si;function xs(){if(si)return Lr;si=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.default=e;function e(){}return Lr}var li;function vf(){if(li)return or;li=1,Object.defineProperty(or,"__esModule",{value:!0}),or.default=void 0;var e=l(I),t=s(Er()),r=s(Lt),n=Ma(),a=Es(),o=dn(),i=s(xs());function s(E){return E&&E.__esModule?E:{default:E}}function l(E,S){if(typeof WeakMap=="function")var h=new WeakMap,c=new WeakMap;return(l=function(g,v){if(!v&&g&&g.__esModule)return g;var p,x,f={__proto__:null,default:g};if(g===null||typeof g!="object"&&typeof g!="function")return f;if(p=v?c:h){if(p.has(g))return p.get(g);p.set(g,f)}for(const O in g)O!=="default"&&{}.hasOwnProperty.call(g,O)&&((x=(p=Object.defineProperty)&&Object.getOwnPropertyDescriptor(g,O))&&(x.get||x.set)?p(f,O,x):f[O]=g[O]);return f})(E,S)}function u(E,S,h){return(S=m(S))in E?Object.defineProperty(E,S,{value:h,enumerable:!0,configurable:!0,writable:!0}):E[S]=h,E}function m(E){var S=d(E,"string");return typeof S=="symbol"?S:S+""}function d(E,S){if(typeof E!="object"||!E)return E;var h=E[Symbol.toPrimitive];if(h!==void 0){var c=h.call(E,S);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(E)}const b={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let y=b.mouse,w=class extends e.Component{constructor(){super(...arguments),u(this,"dragging",!1),u(this,"lastX",NaN),u(this,"lastY",NaN),u(this,"touchIdentifier",null),u(this,"mounted",!1),u(this,"handleDragStart",S=>{if(this.props.onMouseDown(S),!this.props.allowAnyClick&&typeof S.button=="number"&&S.button!==0)return!1;const h=this.findDOMNode();if(!h||!h.ownerDocument||!h.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:c}=h;if(this.props.disabled||!(S.target instanceof c.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(S.target,this.props.handle,h)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(S.target,this.props.cancel,h))return;S.type==="touchstart"&&!this.props.allowMobileScroll&&S.preventDefault();const g=(0,n.getTouchIdentifier)(S);this.touchIdentifier=g;const v=(0,a.getControlPosition)(S,g,this);if(v==null)return;const{x:p,y:x}=v,f=(0,a.createCoreData)(this,p,x);(0,i.default)("DraggableCore: handleDragStart: %j",f),(0,i.default)("calling",this.props.onStart),!(this.props.onStart(S,f)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(c),this.dragging=!0,this.lastX=p,this.lastY=x,(0,n.addEvent)(c,y.move,this.handleDrag),(0,n.addEvent)(c,y.stop,this.handleDragStop))}),u(this,"handleDrag",S=>{const h=(0,a.getControlPosition)(S,this.touchIdentifier,this);if(h==null)return;let{x:c,y:g}=h;if(Array.isArray(this.props.grid)){let x=c-this.lastX,f=g-this.lastY;if([x,f]=(0,a.snapToGrid)(this.props.grid,x,f),!x&&!f)return;c=this.lastX+x,g=this.lastY+f}const v=(0,a.createCoreData)(this,c,g);if((0,i.default)("DraggableCore: handleDrag: %j",v),this.props.onDrag(S,v)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(f)}return}this.lastX=c,this.lastY=g}),u(this,"handleDragStop",S=>{if(!this.dragging)return;const h=(0,a.getControlPosition)(S,this.touchIdentifier,this);if(h==null)return;let{x:c,y:g}=h;if(Array.isArray(this.props.grid)){let f=c-this.lastX||0,O=g-this.lastY||0;[f,O]=(0,a.snapToGrid)(this.props.grid,f,O),c=this.lastX+f,g=this.lastY+O}const v=(0,a.createCoreData)(this,c,g);if(this.props.onStop(S,v)===!1||this.mounted===!1)return!1;const x=this.findDOMNode();x&&this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(x.ownerDocument),(0,i.default)("DraggableCore: handleDragStop: %j",v),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,x&&((0,i.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(x.ownerDocument,y.move,this.handleDrag),(0,n.removeEvent)(x.ownerDocument,y.stop,this.handleDragStop))}),u(this,"onMouseDown",S=>(y=b.mouse,this.handleDragStart(S))),u(this,"onMouseUp",S=>(y=b.mouse,this.handleDragStop(S))),u(this,"onTouchStart",S=>(y=b.touch,this.handleDragStart(S))),u(this,"onTouchEnd",S=>(y=b.touch,this.handleDragStop(S)))}componentDidMount(){this.mounted=!0;const S=this.findDOMNode();S&&(0,n.addEvent)(S,b.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const S=this.findDOMNode();if(S){const{ownerDocument:h}=S;(0,n.removeEvent)(h,b.mouse.move,this.handleDrag),(0,n.removeEvent)(h,b.touch.move,this.handleDrag),(0,n.removeEvent)(h,b.mouse.stop,this.handleDragStop),(0,n.removeEvent)(h,b.touch.stop,this.handleDragStop),(0,n.removeEvent)(S,b.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(h)}}findDOMNode(){var S,h,c;return(S=this.props)!=null&&S.nodeRef?(c=(h=this.props)==null?void 0:h.nodeRef)==null?void 0:c.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return or.default=w,u(w,"displayName","DraggableCore"),u(w,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(E,S){if(E[S]&&E[S].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),u(w,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),or}var ui;function yf(){return ui||(ui=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=d(I),r=m(Er()),n=m(Lt),a=mf(),o=Ma(),i=Es(),s=dn(),l=m(vf()),u=m(xs());function m(h){return h&&h.__esModule?h:{default:h}}function d(h,c){if(typeof WeakMap=="function")var g=new WeakMap,v=new WeakMap;return(d=function(p,x){if(!x&&p&&p.__esModule)return p;var f,O,j={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return j;if(f=x?v:g){if(f.has(p))return f.get(p);f.set(p,j)}for(const M in p)M!=="default"&&{}.hasOwnProperty.call(p,M)&&((O=(f=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,M))&&(O.get||O.set)?f(j,M,O):j[M]=p[M]);return j})(h,c)}function b(){return b=Object.assign?Object.assign.bind():function(h){for(var c=1;c<arguments.length;c++){var g=arguments[c];for(var v in g)({}).hasOwnProperty.call(g,v)&&(h[v]=g[v])}return h},b.apply(null,arguments)}function y(h,c,g){return(c=w(c))in h?Object.defineProperty(h,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[c]=g,h}function w(h){var c=E(h,"string");return typeof c=="symbol"?c:c+""}function E(h,c){if(typeof h!="object"||!h)return h;var g=h[Symbol.toPrimitive];if(g!==void 0){var v=g.call(h,c);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(h)}class S extends t.Component{static getDerivedStateFromProps(c,g){let{position:v}=c,{prevPropsPosition:p}=g;return v&&(!p||v.x!==p.x||v.y!==p.y)?((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:p}),{x:v.x,y:v.y,prevPropsPosition:{...v}}):null}constructor(c){super(c),y(this,"onDragStart",(g,v)=>{if((0,u.default)("Draggable: onDragStart: %j",v),this.props.onStart(g,(0,i.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),y(this,"onDrag",(g,v)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",v);const p=(0,i.createDraggableData)(this,v),x={x:p.x,y:p.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:j}=x;x.x+=this.state.slackX,x.y+=this.state.slackY;const[M,L]=(0,i.getBoundPosition)(this,x.x,x.y);x.x=M,x.y=L,x.slackX=this.state.slackX+(O-x.x),x.slackY=this.state.slackY+(j-x.y),p.x=x.x,p.y=x.y,p.deltaX=x.x-this.state.x,p.deltaY=x.y-this.state.y}if(this.props.onDrag(g,p)===!1)return!1;this.setState(x)}),y(this,"onDragStop",(g,v)=>{if(!this.state.dragging||this.props.onStop(g,(0,i.createDraggableData)(this,v))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",v);const x={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:j}=this.props.position;x.x=O,x.y=j}this.setState(x)}),this.state={dragging:!1,dragged:!1,x:c.position?c.position.x:c.defaultPosition.x,y:c.position?c.position.y:c.defaultPosition.y,prevPropsPosition:{...c.position},slackX:0,slackY:0,isElementSVG:!1},c.position&&!(c.onDrag||c.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var c,g;return((g=(c=this.props)==null?void 0:c.nodeRef)==null?void 0:g.current)??n.default.findDOMNode(this)}render(){const{axis:c,bounds:g,children:v,defaultPosition:p,defaultClassName:x,defaultClassNameDragging:f,defaultClassNameDragged:O,position:j,positionOffset:M,scale:L,...q}=this.props;let N={},Y=null;const te=!!!j||this.state.dragging,re=j||p,ie={x:(0,i.canDragX)(this)&&te?this.state.x:re.x,y:(0,i.canDragY)(this)&&te?this.state.y:re.y};this.state.isElementSVG?Y=(0,o.createSVGTransform)(ie,M):N=(0,o.createCSSTransform)(ie,M);const we=(0,a.clsx)(v.props.className||"",x,{[f]:this.state.dragging,[O]:this.state.dragged});return t.createElement(l.default,b({},q,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(v),{className:we,style:{...v.props.style,...N},transform:Y}))}}e.default=S,y(S,"displayName","Draggable"),y(S,"propTypes",{...l.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),y(S,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(Xn)),Xn}var ci;function Ss(){if(ci)return ar.exports;ci=1;const{default:e,DraggableCore:t}=yf();return ar.exports=e,ar.exports.default=e,ar.exports.DraggableCore=t,ar.exports}var zr={},fi;function bf(){if(fi)return zr;fi=1,zr.__esModule=!0,zr.cloneElement=s;var e=t(I);function t(l){return l&&l.__esModule?l:{default:l}}function r(l,u){var m=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);u&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(l,b).enumerable})),m.push.apply(m,d)}return m}function n(l){for(var u=1;u<arguments.length;u++){var m=arguments[u]!=null?arguments[u]:{};u%2?r(Object(m),!0).forEach(function(d){a(l,d,m[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(m)):r(Object(m)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(m,d))})}return l}function a(l,u,m){return u=o(u),u in l?Object.defineProperty(l,u,{value:m,enumerable:!0,configurable:!0,writable:!0}):l[u]=m,l}function o(l){var u=i(l,"string");return typeof u=="symbol"?u:String(u)}function i(l,u){if(typeof l!="object"||l===null)return l;var m=l[Symbol.toPrimitive];if(m!==void 0){var d=m.call(l,u);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(l)}function s(l,u){return u.style&&l.props.style&&(u.style=n(n({},l.props.style),u.style)),u.className&&l.props.className&&(u.className=l.props.className+" "+u.className),e.default.cloneElement(l,u)}return zr}var ir={},di;function ws(){if(di)return ir;di=1,ir.__esModule=!0,ir.resizableProps=void 0;var e=t(Er());Ss();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];var s=o[0];if(s.axis==="both"||s.axis==="y"){var l;return(l=e.default.number).isRequired.apply(l,o)}return e.default.number.apply(e.default,o)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];var s=o[0];if(s.axis==="both"||s.axis==="x"){var l;return(l=e.default.number).isRequired.apply(l,o)}return e.default.number.apply(e.default,o)}};return ir.resizableProps=r,ir}var pi;function Rs(){if(pi)return nr;pi=1,nr.__esModule=!0,nr.default=void 0;var e=i(I),t=Ss(),r=bf(),n=ws(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function o(h){if(typeof WeakMap!="function")return null;var c=new WeakMap,g=new WeakMap;return(o=function(p){return p?g:c})(h)}function i(h,c){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var g=o(c);if(g&&g.has(h))return g.get(h);var v={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in h)if(x!=="default"&&Object.prototype.hasOwnProperty.call(h,x)){var f=p?Object.getOwnPropertyDescriptor(h,x):null;f&&(f.get||f.set)?Object.defineProperty(v,x,f):v[x]=h[x]}return v.default=h,g&&g.set(h,v),v}function s(){return s=Object.assign?Object.assign.bind():function(h){for(var c=1;c<arguments.length;c++){var g=arguments[c];for(var v in g)Object.prototype.hasOwnProperty.call(g,v)&&(h[v]=g[v])}return h},s.apply(this,arguments)}function l(h,c){if(h==null)return{};var g={},v=Object.keys(h),p,x;for(x=0;x<v.length;x++)p=v[x],!(c.indexOf(p)>=0)&&(g[p]=h[p]);return g}function u(h,c){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(h);c&&(v=v.filter(function(p){return Object.getOwnPropertyDescriptor(h,p).enumerable})),g.push.apply(g,v)}return g}function m(h){for(var c=1;c<arguments.length;c++){var g=arguments[c]!=null?arguments[c]:{};c%2?u(Object(g),!0).forEach(function(v){d(h,v,g[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(g)):u(Object(g)).forEach(function(v){Object.defineProperty(h,v,Object.getOwnPropertyDescriptor(g,v))})}return h}function d(h,c,g){return c=b(c),c in h?Object.defineProperty(h,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[c]=g,h}function b(h){var c=y(h,"string");return typeof c=="symbol"?c:String(c)}function y(h,c){if(typeof h!="object"||h===null)return h;var g=h[Symbol.toPrimitive];if(g!==void 0){var v=g.call(h,c);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(h)}function w(h,c){h.prototype=Object.create(c.prototype),h.prototype.constructor=h,E(h,c)}function E(h,c){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,p){return v.__proto__=p,v},E(h,c)}var S=(function(h){w(c,h);function c(){for(var v,p=arguments.length,x=new Array(p),f=0;f<p;f++)x[f]=arguments[f];return v=h.call.apply(h,[this].concat(x))||this,v.handleRefs={},v.lastHandleRect=null,v.slack=null,v}var g=c.prototype;return g.componentWillUnmount=function(){this.resetData()},g.resetData=function(){this.lastHandleRect=this.slack=null},g.runConstraints=function(p,x){var f=this.props,O=f.minConstraints,j=f.maxConstraints,M=f.lockAspectRatio;if(!O&&!j&&!M)return[p,x];if(M){var L=this.props.width/this.props.height,q=p-this.props.width,N=x-this.props.height;Math.abs(q)>Math.abs(N*L)?x=p/L:p=x*L}var Y=p,X=x,te=this.slack||[0,0],re=te[0],ie=te[1];return p+=re,x+=ie,O&&(p=Math.max(O[0],p),x=Math.max(O[1],x)),j&&(p=Math.min(j[0],p),x=Math.min(j[1],x)),this.slack=[re+(Y-p),ie+(X-x)],[p,x]},g.resizeHandler=function(p,x){var f=this;return function(O,j){var M=j.node,L=j.deltaX,q=j.deltaY;p==="onResizeStart"&&f.resetData();var N=(f.props.axis==="both"||f.props.axis==="x")&&x!=="n"&&x!=="s",Y=(f.props.axis==="both"||f.props.axis==="y")&&x!=="e"&&x!=="w";if(!(!N&&!Y)){var X=x[0],te=x[x.length-1],re=M.getBoundingClientRect();if(f.lastHandleRect!=null){if(te==="w"){var ie=re.left-f.lastHandleRect.left;L+=ie}if(X==="n"){var we=re.top-f.lastHandleRect.top;q+=we}}f.lastHandleRect=re,te==="w"&&(L=-L),X==="n"&&(q=-q);var A=f.props.width+(N?L/f.props.transformScale:0),P=f.props.height+(Y?q/f.props.transformScale:0),k=f.runConstraints(A,P);A=k[0],P=k[1];var U=A!==f.props.width||P!==f.props.height,W=typeof f.props[p]=="function"?f.props[p]:null,Z=p==="onResize"&&!U;W&&!Z&&(O.persist==null||O.persist(),W(O,{node:M,size:{width:A,height:P},handle:x})),p==="onResizeStop"&&f.resetData()}}},g.renderResizeHandle=function(p,x){var f=this.props.handle;if(!f)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+p,ref:x});if(typeof f=="function")return f(p,x);var O=typeof f.type=="string",j=m({ref:x},O?{}:{handleAxis:p});return e.cloneElement(f,j)},g.render=function(){var p=this,x=this.props,f=x.children,O=x.className,j=x.draggableOpts;x.width,x.height,x.handle,x.handleSize,x.lockAspectRatio,x.axis,x.minConstraints,x.maxConstraints,x.onResize,x.onResizeStop,x.onResizeStart;var M=x.resizeHandles;x.transformScale;var L=l(x,a);return(0,r.cloneElement)(f,m(m({},L),{},{className:(O?O+" ":"")+"react-resizable",children:[].concat(f.props.children,M.map(function(q){var N,Y=(N=p.handleRefs[q])!=null?N:p.handleRefs[q]=e.createRef();return e.createElement(t.DraggableCore,s({},j,{nodeRef:Y,key:"resizableHandle-"+q,onStop:p.resizeHandler("onResizeStop",q),onStart:p.resizeHandler("onResizeStart",q),onDrag:p.resizeHandler("onResize",q)}),p.renderResizeHandle(q,Y))}))}))},c})(e.Component);return nr.default=S,S.propTypes=n.resizableProps,S.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},nr}var sr={},hi;function Ef(){if(hi)return sr;hi=1,sr.__esModule=!0,sr.default=void 0;var e=s(I),t=o(Er()),r=o(Rs()),n=ws(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function o(c){return c&&c.__esModule?c:{default:c}}function i(c){if(typeof WeakMap!="function")return null;var g=new WeakMap,v=new WeakMap;return(i=function(x){return x?v:g})(c)}function s(c,g){if(c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var v=i(g);if(v&&v.has(c))return v.get(c);var p={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in c)if(f!=="default"&&Object.prototype.hasOwnProperty.call(c,f)){var O=x?Object.getOwnPropertyDescriptor(c,f):null;O&&(O.get||O.set)?Object.defineProperty(p,f,O):p[f]=c[f]}return p.default=c,v&&v.set(c,p),p}function l(){return l=Object.assign?Object.assign.bind():function(c){for(var g=1;g<arguments.length;g++){var v=arguments[g];for(var p in v)Object.prototype.hasOwnProperty.call(v,p)&&(c[p]=v[p])}return c},l.apply(this,arguments)}function u(c,g){var v=Object.keys(c);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(c);g&&(p=p.filter(function(x){return Object.getOwnPropertyDescriptor(c,x).enumerable})),v.push.apply(v,p)}return v}function m(c){for(var g=1;g<arguments.length;g++){var v=arguments[g]!=null?arguments[g]:{};g%2?u(Object(v),!0).forEach(function(p){d(c,p,v[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(v)):u(Object(v)).forEach(function(p){Object.defineProperty(c,p,Object.getOwnPropertyDescriptor(v,p))})}return c}function d(c,g,v){return g=b(g),g in c?Object.defineProperty(c,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):c[g]=v,c}function b(c){var g=y(c,"string");return typeof g=="symbol"?g:String(g)}function y(c,g){if(typeof c!="object"||c===null)return c;var v=c[Symbol.toPrimitive];if(v!==void 0){var p=v.call(c,g);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(c)}function w(c,g){if(c==null)return{};var v={},p=Object.keys(c),x,f;for(f=0;f<p.length;f++)x=p[f],!(g.indexOf(x)>=0)&&(v[x]=c[x]);return v}function E(c,g){c.prototype=Object.create(g.prototype),c.prototype.constructor=c,S(c,g)}function S(c,g){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,x){return p.__proto__=x,p},S(c,g)}var h=(function(c){E(g,c);function g(){for(var p,x=arguments.length,f=new Array(x),O=0;O<x;O++)f[O]=arguments[O];return p=c.call.apply(c,[this].concat(f))||this,p.state={width:p.props.width,height:p.props.height,propsWidth:p.props.width,propsHeight:p.props.height},p.onResize=function(j,M){var L=M.size;p.props.onResize?(j.persist==null||j.persist(),p.setState(L,function(){return p.props.onResize&&p.props.onResize(j,M)})):p.setState(L)},p}g.getDerivedStateFromProps=function(x,f){return f.propsWidth!==x.width||f.propsHeight!==x.height?{width:x.width,height:x.height,propsWidth:x.width,propsHeight:x.height}:null};var v=g.prototype;return v.render=function(){var x=this.props,f=x.handle,O=x.handleSize;x.onResize;var j=x.onResizeStart,M=x.onResizeStop,L=x.draggableOpts,q=x.minConstraints,N=x.maxConstraints,Y=x.lockAspectRatio,X=x.axis;x.width,x.height;var te=x.resizeHandles,re=x.style,ie=x.transformScale,we=w(x,a);return e.createElement(r.default,{axis:X,draggableOpts:L,handle:f,handleSize:O,height:this.state.height,lockAspectRatio:Y,maxConstraints:N,minConstraints:q,onResizeStart:j,onResize:this.onResize,onResizeStop:M,resizeHandles:te,transformScale:ie,width:this.state.width},e.createElement("div",l({},we,{style:m(m({},re),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},g})(e.Component);return sr.default=h,h.propTypes=m(m({},n.resizableProps),{},{children:t.default.element}),sr}var mi;function xf(){return mi||(mi=1,rr.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},rr.exports.Resizable=Rs().default,rr.exports.ResizableBox=Ef().default),rr.exports}var Sf=xf();const wf=e=>e?Array.isArray(e)?e.join("."):e:"",Rf=Ne.span`
|
|
258
|
+
`;function hf(e){const t=M.useRef(null),{pagination:r,rowSelection:n={selectedRowKeys:[],onChange:()=>{}},dataSource:a=[],selectionPopover:o=!1}=e,i=({target:{checked:m}})=>{const{rowKey:d="id"}=e;if(!(!n||!n.onChange))if(m){const{getCheckboxProps:b}=n;let y=a;b&&(y=a.filter(E=>!b(E).disabled));const w=typeof d=="function"?d:E=>E[d];n.onChange(Array.from(y.map(w)),Array.from(y),{type:"none"})}else n.onChange([],[],{type:"none"})},s=M.useMemo(()=>{const{getCheckboxProps:m}=n;let d=a;return m&&(d=a.filter(b=>!m(b).disabled)),d.length},[a,n]),l=M.useMemo(()=>{const m=n.selectedRowKeys??[];return m.length>0&&m.length<s},[n.selectedRowKeys,s]),u=M.useMemo(()=>{const m=n.selectedRowKeys??[];return m.length>0&&m.length===s},[n.selectedRowKeys,s]);return $.jsxs($.Fragment,{children:[$.jsx(yu,{styles:pf}),$.jsxs(lf,{children:[$.jsx(an,{in:!!(e.rowSelection&&e.selectionPopover&&(u||l)),nodeRef:t,classNames:df,unmountOnExit:!0,timeout:300,children:()=>{var m;return $.jsxs(cf,{ref:t,justify:"space-between",children:[$.jsx(Ee.Col,{style:{display:"flex",alignItems:"center"},children:$.jsx(Ee.Checkbox,{checked:u,indeterminate:l,onChange:i,children:$.jsx($t,{id:"component.table.selected",defaultMessage:"已选{length}条",values:{length:((m=n.selectedRowKeys)==null?void 0:m.length)??0}})})}),$.jsxs(Ee.Col,{style:{display:"flex",alignItems:"center"},children:[o,$.jsx(ff,{onClick:()=>{i({target:{checked:!1}})},children:$.jsx(qt.CloseOutlined,{})})]})]})}}),r&&$.jsx(uf,{children:r.showTotal?r.showTotal(r.total??0,[0,0]):null})]})]})}var rr={exports:{}},nr={},ar={exports:{}},Xn={},Fr={exports:{}},ri;function mf(){if(ri)return Fr.exports;ri=1;function e(r){var n,a,o="";if(typeof r=="string"||typeof r=="number")o+=r;else if(typeof r=="object")if(Array.isArray(r)){var i=r.length;for(n=0;n<i;n++)r[n]&&(a=e(r[n]))&&(o&&(o+=" "),o+=a)}else for(a in r)r[a]&&(o&&(o+=" "),o+=a);return o}function t(){for(var r,n,a=0,o="",i=arguments.length;a<i;a++)(r=arguments[a])&&(n=e(r))&&(o&&(o+=" "),o+=n);return o}return Fr.exports=t,Fr.exports.clsx=t,Fr.exports}var Te={},ut={},ni;function dn(){if(ni)return ut;ni=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.dontSetMe=a,ut.findInArray=e,ut.int=n,ut.isFunction=t,ut.isNum=r;function e(o,i){for(let s=0,l=o.length;s<l;s++)if(i.apply(i,[o[s],s,o]))return o[s]}function t(o){return typeof o=="function"||Object.prototype.toString.call(o)==="[object Function]"}function r(o){return typeof o=="number"&&!isNaN(o)}function n(o){return parseInt(o,10)}function a(o,i,s){if(o[i])return new Error(`Invalid prop ${i} passed to ${s} - do not set this, set it on the child.`)}return ut}var ct={},ai;function gf(){if(ai)return ct;ai=1,Object.defineProperty(ct,"__esModule",{value:!0}),ct.browserPrefixToKey=r,ct.browserPrefixToStyle=n,ct.default=void 0,ct.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var s,l;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const i=(l=(s=window.document)==null?void 0:s.documentElement)==null?void 0:l.style;if(!i||o in i)return"";for(let u=0;u<e.length;u++)if(r(o,e[u])in i)return e[u];return""}function r(o,i){return i?`${i}${a(o)}`:o}function n(o,i){return i?`-${i.toLowerCase()}-${o}`:o}function a(o){let i="",s=!0;for(let l=0;l<o.length;l++)s?(i+=o[l].toUpperCase(),s=!1):o[l]==="-"?s=!0:i+=o[l];return i}return ct.default=t(),ct}var oi;function Ma(){if(oi)return Te;oi=1,Object.defineProperty(Te,"__esModule",{value:!0}),Te.addClassName=p,Te.addEvent=i,Te.addUserSelectStyles=c,Te.createCSSTransform=y,Te.createSVGTransform=w,Te.getTouch=S,Te.getTouchIdentifier=h,Te.getTranslation=E,Te.innerHeight=m,Te.innerWidth=d,Te.matchesSelector=a,Te.matchesSelectorAndParentsTo=o,Te.offsetXYFromParent=b,Te.outerHeight=l,Te.outerWidth=u,Te.removeClassName=x,Te.removeEvent=s,Te.scheduleRemoveUserSelectStyles=g;var e=dn(),t=r(gf());function r(f,P){if(typeof WeakMap=="function")var j=new WeakMap,A=new WeakMap;return(r=function(k,B){if(!B&&k&&k.__esModule)return k;var U,L,J={__proto__:null,default:k};if(k===null||typeof k!="object"&&typeof k!="function")return J;if(U=B?A:j){if(U.has(k))return U.get(k);U.set(k,J)}for(const X in k)X!=="default"&&{}.hasOwnProperty.call(k,X)&&((L=(U=Object.defineProperty)&&Object.getOwnPropertyDescriptor(k,X))&&(L.get||L.set)?U(J,X,L):J[X]=k[X]);return J})(f,P)}let n="";function a(f,P){return n||(n=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(j){return(0,e.isFunction)(f[j])})),(0,e.isFunction)(f[n])?f[n](P):!1}function o(f,P,j){let A=f;do{if(a(A,P))return!0;if(A===j)return!1;A=A.parentNode}while(A);return!1}function i(f,P,j,A){if(!f)return;const k={capture:!0,...A};f.addEventListener?f.addEventListener(P,j,k):f.attachEvent?f.attachEvent("on"+P,j):f["on"+P]=j}function s(f,P,j,A){if(!f)return;const k={capture:!0,...A};f.removeEventListener?f.removeEventListener(P,j,k):f.detachEvent?f.detachEvent("on"+P,j):f["on"+P]=null}function l(f){let P=f.clientHeight;const j=f.ownerDocument.defaultView.getComputedStyle(f);return P+=(0,e.int)(j.borderTopWidth),P+=(0,e.int)(j.borderBottomWidth),P}function u(f){let P=f.clientWidth;const j=f.ownerDocument.defaultView.getComputedStyle(f);return P+=(0,e.int)(j.borderLeftWidth),P+=(0,e.int)(j.borderRightWidth),P}function m(f){let P=f.clientHeight;const j=f.ownerDocument.defaultView.getComputedStyle(f);return P-=(0,e.int)(j.paddingTop),P-=(0,e.int)(j.paddingBottom),P}function d(f){let P=f.clientWidth;const j=f.ownerDocument.defaultView.getComputedStyle(f);return P-=(0,e.int)(j.paddingLeft),P-=(0,e.int)(j.paddingRight),P}function b(f,P,j){const k=P===P.ownerDocument.body?{left:0,top:0}:P.getBoundingClientRect(),B=(f.clientX+P.scrollLeft-k.left)/j,U=(f.clientY+P.scrollTop-k.top)/j;return{x:B,y:U}}function y(f,P){const j=E(f,P,"px");return{[(0,t.browserPrefixToKey)("transform",t.default)]:j}}function w(f,P){return E(f,P,"")}function E(f,P,j){let{x:A,y:k}=f,B=`translate(${A}${j},${k}${j})`;if(P){const U=`${typeof P.x=="string"?P.x:P.x+j}`,L=`${typeof P.y=="string"?P.y:P.y+j}`;B=`translate(${U}, ${L})`+B}return B}function S(f,P){return f.targetTouches&&(0,e.findInArray)(f.targetTouches,j=>P===j.identifier)||f.changedTouches&&(0,e.findInArray)(f.changedTouches,j=>P===j.identifier)}function h(f){if(f.targetTouches&&f.targetTouches[0])return f.targetTouches[0].identifier;if(f.changedTouches&&f.changedTouches[0])return f.changedTouches[0].identifier}function c(f){if(!f)return;let P=f.getElementById("react-draggable-style-el");P||(P=f.createElement("style"),P.type="text/css",P.id="react-draggable-style-el",P.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
259
|
+
`,P.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
260
|
+
`,f.getElementsByTagName("head")[0].appendChild(P)),f.body&&p(f.body,"react-draggable-transparent-selection")}function g(f){window.requestAnimationFrame?window.requestAnimationFrame(()=>{v(f)}):v(f)}function v(f){if(f)try{if(f.body&&x(f.body,"react-draggable-transparent-selection"),f.selection)f.selection.empty();else{const P=(f.defaultView||window).getSelection();P&&P.type!=="Caret"&&P.removeAllRanges()}}catch{}}function p(f,P){f.classList?f.classList.add(P):f.className.match(new RegExp(`(?:^|\\s)${P}(?!\\S)`))||(f.className+=` ${P}`)}function x(f,P){f.classList?f.classList.remove(P):f.className=f.className.replace(new RegExp(`(?:^|\\s)${P}(?!\\S)`,"g"),"")}return Te}var Je={},ii;function Es(){if(ii)return Je;ii=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.canDragX=a,Je.canDragY=o,Je.createCoreData=s,Je.createDraggableData=l,Je.getBoundPosition=r,Je.getControlPosition=i,Je.snapToGrid=n;var e=dn(),t=Ma();function r(d,b,y){if(!d.props.bounds)return[b,y];let{bounds:w}=d.props;w=typeof w=="string"?w:u(w);const E=m(d);if(typeof w=="string"){const{ownerDocument:S}=E,h=S.defaultView;let c;if(w==="parent"?c=E.parentNode:c=E.getRootNode().querySelector(w),!(c instanceof h.HTMLElement))throw new Error('Bounds selector "'+w+'" could not find an element.');const g=c,v=h.getComputedStyle(E),p=h.getComputedStyle(g);w={left:-E.offsetLeft+(0,e.int)(p.paddingLeft)+(0,e.int)(v.marginLeft),top:-E.offsetTop+(0,e.int)(p.paddingTop)+(0,e.int)(v.marginTop),right:(0,t.innerWidth)(g)-(0,t.outerWidth)(E)-E.offsetLeft+(0,e.int)(p.paddingRight)-(0,e.int)(v.marginRight),bottom:(0,t.innerHeight)(g)-(0,t.outerHeight)(E)-E.offsetTop+(0,e.int)(p.paddingBottom)-(0,e.int)(v.marginBottom)}}return(0,e.isNum)(w.right)&&(b=Math.min(b,w.right)),(0,e.isNum)(w.bottom)&&(y=Math.min(y,w.bottom)),(0,e.isNum)(w.left)&&(b=Math.max(b,w.left)),(0,e.isNum)(w.top)&&(y=Math.max(y,w.top)),[b,y]}function n(d,b,y){const w=Math.round(b/d[0])*d[0],E=Math.round(y/d[1])*d[1];return[w,E]}function a(d){return d.props.axis==="both"||d.props.axis==="x"}function o(d){return d.props.axis==="both"||d.props.axis==="y"}function i(d,b,y){const w=typeof b=="number"?(0,t.getTouch)(d,b):null;if(typeof b=="number"&&!w)return null;const E=m(y),S=y.props.offsetParent||E.offsetParent||E.ownerDocument.body;return(0,t.offsetXYFromParent)(w||d,S,y.props.scale)}function s(d,b,y){const w=!(0,e.isNum)(d.lastX),E=m(d);return w?{node:E,deltaX:0,deltaY:0,lastX:b,lastY:y,x:b,y}:{node:E,deltaX:b-d.lastX,deltaY:y-d.lastY,lastX:d.lastX,lastY:d.lastY,x:b,y}}function l(d,b){const y=d.props.scale;return{node:b.node,x:d.state.x+b.deltaX/y,y:d.state.y+b.deltaY/y,deltaX:b.deltaX/y,deltaY:b.deltaY/y,lastX:d.state.x,lastY:d.state.y}}function u(d){return{left:d.left,top:d.top,right:d.right,bottom:d.bottom}}function m(d){const b=d.findDOMNode();if(!b)throw new Error("<DraggableCore>: Unmounted during event!");return b}return Je}var or={},Lr={},si;function xs(){if(si)return Lr;si=1,Object.defineProperty(Lr,"__esModule",{value:!0}),Lr.default=e;function e(){}return Lr}var li;function vf(){if(li)return or;li=1,Object.defineProperty(or,"__esModule",{value:!0}),or.default=void 0;var e=l(M),t=s(Er()),r=s(Lt),n=Ma(),a=Es(),o=dn(),i=s(xs());function s(E){return E&&E.__esModule?E:{default:E}}function l(E,S){if(typeof WeakMap=="function")var h=new WeakMap,c=new WeakMap;return(l=function(g,v){if(!v&&g&&g.__esModule)return g;var p,x,f={__proto__:null,default:g};if(g===null||typeof g!="object"&&typeof g!="function")return f;if(p=v?c:h){if(p.has(g))return p.get(g);p.set(g,f)}for(const P in g)P!=="default"&&{}.hasOwnProperty.call(g,P)&&((x=(p=Object.defineProperty)&&Object.getOwnPropertyDescriptor(g,P))&&(x.get||x.set)?p(f,P,x):f[P]=g[P]);return f})(E,S)}function u(E,S,h){return(S=m(S))in E?Object.defineProperty(E,S,{value:h,enumerable:!0,configurable:!0,writable:!0}):E[S]=h,E}function m(E){var S=d(E,"string");return typeof S=="symbol"?S:S+""}function d(E,S){if(typeof E!="object"||!E)return E;var h=E[Symbol.toPrimitive];if(h!==void 0){var c=h.call(E,S);if(typeof c!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(E)}const b={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let y=b.mouse,w=class extends e.Component{constructor(){super(...arguments),u(this,"dragging",!1),u(this,"lastX",NaN),u(this,"lastY",NaN),u(this,"touchIdentifier",null),u(this,"mounted",!1),u(this,"handleDragStart",S=>{if(this.props.onMouseDown(S),!this.props.allowAnyClick&&typeof S.button=="number"&&S.button!==0)return!1;const h=this.findDOMNode();if(!h||!h.ownerDocument||!h.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:c}=h;if(this.props.disabled||!(S.target instanceof c.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(S.target,this.props.handle,h)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(S.target,this.props.cancel,h))return;S.type==="touchstart"&&!this.props.allowMobileScroll&&S.preventDefault();const g=(0,n.getTouchIdentifier)(S);this.touchIdentifier=g;const v=(0,a.getControlPosition)(S,g,this);if(v==null)return;const{x:p,y:x}=v,f=(0,a.createCoreData)(this,p,x);(0,i.default)("DraggableCore: handleDragStart: %j",f),(0,i.default)("calling",this.props.onStart),!(this.props.onStart(S,f)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(c),this.dragging=!0,this.lastX=p,this.lastY=x,(0,n.addEvent)(c,y.move,this.handleDrag),(0,n.addEvent)(c,y.stop,this.handleDragStop))}),u(this,"handleDrag",S=>{const h=(0,a.getControlPosition)(S,this.touchIdentifier,this);if(h==null)return;let{x:c,y:g}=h;if(Array.isArray(this.props.grid)){let x=c-this.lastX,f=g-this.lastY;if([x,f]=(0,a.snapToGrid)(this.props.grid,x,f),!x&&!f)return;c=this.lastX+x,g=this.lastY+f}const v=(0,a.createCoreData)(this,c,g);if((0,i.default)("DraggableCore: handleDrag: %j",v),this.props.onDrag(S,v)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const f=document.createEvent("MouseEvents");f.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(f)}return}this.lastX=c,this.lastY=g}),u(this,"handleDragStop",S=>{if(!this.dragging)return;const h=(0,a.getControlPosition)(S,this.touchIdentifier,this);if(h==null)return;let{x:c,y:g}=h;if(Array.isArray(this.props.grid)){let f=c-this.lastX||0,P=g-this.lastY||0;[f,P]=(0,a.snapToGrid)(this.props.grid,f,P),c=this.lastX+f,g=this.lastY+P}const v=(0,a.createCoreData)(this,c,g);if(this.props.onStop(S,v)===!1||this.mounted===!1)return!1;const x=this.findDOMNode();x&&this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(x.ownerDocument),(0,i.default)("DraggableCore: handleDragStop: %j",v),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,x&&((0,i.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(x.ownerDocument,y.move,this.handleDrag),(0,n.removeEvent)(x.ownerDocument,y.stop,this.handleDragStop))}),u(this,"onMouseDown",S=>(y=b.mouse,this.handleDragStart(S))),u(this,"onMouseUp",S=>(y=b.mouse,this.handleDragStop(S))),u(this,"onTouchStart",S=>(y=b.touch,this.handleDragStart(S))),u(this,"onTouchEnd",S=>(y=b.touch,this.handleDragStop(S)))}componentDidMount(){this.mounted=!0;const S=this.findDOMNode();S&&(0,n.addEvent)(S,b.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const S=this.findDOMNode();if(S){const{ownerDocument:h}=S;(0,n.removeEvent)(h,b.mouse.move,this.handleDrag),(0,n.removeEvent)(h,b.touch.move,this.handleDrag),(0,n.removeEvent)(h,b.mouse.stop,this.handleDragStop),(0,n.removeEvent)(h,b.touch.stop,this.handleDragStop),(0,n.removeEvent)(S,b.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(h)}}findDOMNode(){var S,h,c;return(S=this.props)!=null&&S.nodeRef?(c=(h=this.props)==null?void 0:h.nodeRef)==null?void 0:c.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return or.default=w,u(w,"displayName","DraggableCore"),u(w,"propTypes",{allowAnyClick:t.default.bool,allowMobileScroll:t.default.bool,children:t.default.node.isRequired,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:function(E,S){if(E[S]&&E[S].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:t.default.arrayOf(t.default.number),handle:t.default.string,cancel:t.default.string,nodeRef:t.default.object,onStart:t.default.func,onDrag:t.default.func,onStop:t.default.func,onMouseDown:t.default.func,scale:t.default.number,className:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),u(w,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),or}var ui;function yf(){return ui||(ui=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return l.default}}),e.default=void 0;var t=d(M),r=m(Er()),n=m(Lt),a=mf(),o=Ma(),i=Es(),s=dn(),l=m(vf()),u=m(xs());function m(h){return h&&h.__esModule?h:{default:h}}function d(h,c){if(typeof WeakMap=="function")var g=new WeakMap,v=new WeakMap;return(d=function(p,x){if(!x&&p&&p.__esModule)return p;var f,P,j={__proto__:null,default:p};if(p===null||typeof p!="object"&&typeof p!="function")return j;if(f=x?v:g){if(f.has(p))return f.get(p);f.set(p,j)}for(const A in p)A!=="default"&&{}.hasOwnProperty.call(p,A)&&((P=(f=Object.defineProperty)&&Object.getOwnPropertyDescriptor(p,A))&&(P.get||P.set)?f(j,A,P):j[A]=p[A]);return j})(h,c)}function b(){return b=Object.assign?Object.assign.bind():function(h){for(var c=1;c<arguments.length;c++){var g=arguments[c];for(var v in g)({}).hasOwnProperty.call(g,v)&&(h[v]=g[v])}return h},b.apply(null,arguments)}function y(h,c,g){return(c=w(c))in h?Object.defineProperty(h,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[c]=g,h}function w(h){var c=E(h,"string");return typeof c=="symbol"?c:c+""}function E(h,c){if(typeof h!="object"||!h)return h;var g=h[Symbol.toPrimitive];if(g!==void 0){var v=g.call(h,c);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(h)}class S extends t.Component{static getDerivedStateFromProps(c,g){let{position:v}=c,{prevPropsPosition:p}=g;return v&&(!p||v.x!==p.x||v.y!==p.y)?((0,u.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:p}),{x:v.x,y:v.y,prevPropsPosition:{...v}}):null}constructor(c){super(c),y(this,"onDragStart",(g,v)=>{if((0,u.default)("Draggable: onDragStart: %j",v),this.props.onStart(g,(0,i.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),y(this,"onDrag",(g,v)=>{if(!this.state.dragging)return!1;(0,u.default)("Draggable: onDrag: %j",v);const p=(0,i.createDraggableData)(this,v),x={x:p.x,y:p.y,slackX:0,slackY:0};if(this.props.bounds){const{x:P,y:j}=x;x.x+=this.state.slackX,x.y+=this.state.slackY;const[A,k]=(0,i.getBoundPosition)(this,x.x,x.y);x.x=A,x.y=k,x.slackX=this.state.slackX+(P-x.x),x.slackY=this.state.slackY+(j-x.y),p.x=x.x,p.y=x.y,p.deltaX=x.x-this.state.x,p.deltaY=x.y-this.state.y}if(this.props.onDrag(g,p)===!1)return!1;this.setState(x)}),y(this,"onDragStop",(g,v)=>{if(!this.state.dragging||this.props.onStop(g,(0,i.createDraggableData)(this,v))===!1)return!1;(0,u.default)("Draggable: onDragStop: %j",v);const x={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:P,y:j}=this.props.position;x.x=P,x.y=j}this.setState(x)}),this.state={dragging:!1,dragged:!1,x:c.position?c.position.x:c.defaultPosition.x,y:c.position?c.position.y:c.defaultPosition.y,prevPropsPosition:{...c.position},slackX:0,slackY:0,isElementSVG:!1},c.position&&!(c.onDrag||c.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var c,g;return((g=(c=this.props)==null?void 0:c.nodeRef)==null?void 0:g.current)??n.default.findDOMNode(this)}render(){const{axis:c,bounds:g,children:v,defaultPosition:p,defaultClassName:x,defaultClassNameDragging:f,defaultClassNameDragged:P,position:j,positionOffset:A,scale:k,...B}=this.props;let U={},L=null;const X=!!!j||this.state.dragging,ue=j||p,Z={x:(0,i.canDragX)(this)&&X?this.state.x:ue.x,y:(0,i.canDragY)(this)&&X?this.state.y:ue.y};this.state.isElementSVG?L=(0,o.createSVGTransform)(Z,A):U=(0,o.createCSSTransform)(Z,A);const we=(0,a.clsx)(v.props.className||"",x,{[f]:this.state.dragging,[P]:this.state.dragged});return t.createElement(l.default,b({},B,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(v),{className:we,style:{...v.props.style,...U},transform:L}))}}e.default=S,y(S,"displayName","Draggable"),y(S,"propTypes",{...l.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),y(S,"defaultProps",{...l.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})})(Xn)),Xn}var ci;function Ss(){if(ci)return ar.exports;ci=1;const{default:e,DraggableCore:t}=yf();return ar.exports=e,ar.exports.default=e,ar.exports.DraggableCore=t,ar.exports}var zr={},fi;function bf(){if(fi)return zr;fi=1,zr.__esModule=!0,zr.cloneElement=s;var e=t(M);function t(l){return l&&l.__esModule?l:{default:l}}function r(l,u){var m=Object.keys(l);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(l);u&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(l,b).enumerable})),m.push.apply(m,d)}return m}function n(l){for(var u=1;u<arguments.length;u++){var m=arguments[u]!=null?arguments[u]:{};u%2?r(Object(m),!0).forEach(function(d){a(l,d,m[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(m)):r(Object(m)).forEach(function(d){Object.defineProperty(l,d,Object.getOwnPropertyDescriptor(m,d))})}return l}function a(l,u,m){return u=o(u),u in l?Object.defineProperty(l,u,{value:m,enumerable:!0,configurable:!0,writable:!0}):l[u]=m,l}function o(l){var u=i(l,"string");return typeof u=="symbol"?u:String(u)}function i(l,u){if(typeof l!="object"||l===null)return l;var m=l[Symbol.toPrimitive];if(m!==void 0){var d=m.call(l,u);if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(l)}function s(l,u){return u.style&&l.props.style&&(u.style=n(n({},l.props.style),u.style)),u.className&&l.props.className&&(u.className=l.props.className+" "+u.className),e.default.cloneElement(l,u)}return zr}var ir={},di;function ws(){if(di)return ir;di=1,ir.__esModule=!0,ir.resizableProps=void 0;var e=t(Er());Ss();function t(n){return n&&n.__esModule?n:{default:n}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];var s=o[0];if(s.axis==="both"||s.axis==="y"){var l;return(l=e.default.number).isRequired.apply(l,o)}return e.default.number.apply(e.default,o)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];var s=o[0];if(s.axis==="both"||s.axis==="x"){var l;return(l=e.default.number).isRequired.apply(l,o)}return e.default.number.apply(e.default,o)}};return ir.resizableProps=r,ir}var pi;function Rs(){if(pi)return nr;pi=1,nr.__esModule=!0,nr.default=void 0;var e=i(M),t=Ss(),r=bf(),n=ws(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function o(h){if(typeof WeakMap!="function")return null;var c=new WeakMap,g=new WeakMap;return(o=function(p){return p?g:c})(h)}function i(h,c){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var g=o(c);if(g&&g.has(h))return g.get(h);var v={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in h)if(x!=="default"&&Object.prototype.hasOwnProperty.call(h,x)){var f=p?Object.getOwnPropertyDescriptor(h,x):null;f&&(f.get||f.set)?Object.defineProperty(v,x,f):v[x]=h[x]}return v.default=h,g&&g.set(h,v),v}function s(){return s=Object.assign?Object.assign.bind():function(h){for(var c=1;c<arguments.length;c++){var g=arguments[c];for(var v in g)Object.prototype.hasOwnProperty.call(g,v)&&(h[v]=g[v])}return h},s.apply(this,arguments)}function l(h,c){if(h==null)return{};var g={},v=Object.keys(h),p,x;for(x=0;x<v.length;x++)p=v[x],!(c.indexOf(p)>=0)&&(g[p]=h[p]);return g}function u(h,c){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(h);c&&(v=v.filter(function(p){return Object.getOwnPropertyDescriptor(h,p).enumerable})),g.push.apply(g,v)}return g}function m(h){for(var c=1;c<arguments.length;c++){var g=arguments[c]!=null?arguments[c]:{};c%2?u(Object(g),!0).forEach(function(v){d(h,v,g[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(g)):u(Object(g)).forEach(function(v){Object.defineProperty(h,v,Object.getOwnPropertyDescriptor(g,v))})}return h}function d(h,c,g){return c=b(c),c in h?Object.defineProperty(h,c,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[c]=g,h}function b(h){var c=y(h,"string");return typeof c=="symbol"?c:String(c)}function y(h,c){if(typeof h!="object"||h===null)return h;var g=h[Symbol.toPrimitive];if(g!==void 0){var v=g.call(h,c);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(h)}function w(h,c){h.prototype=Object.create(c.prototype),h.prototype.constructor=h,E(h,c)}function E(h,c){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(v,p){return v.__proto__=p,v},E(h,c)}var S=(function(h){w(c,h);function c(){for(var v,p=arguments.length,x=new Array(p),f=0;f<p;f++)x[f]=arguments[f];return v=h.call.apply(h,[this].concat(x))||this,v.handleRefs={},v.lastHandleRect=null,v.slack=null,v}var g=c.prototype;return g.componentWillUnmount=function(){this.resetData()},g.resetData=function(){this.lastHandleRect=this.slack=null},g.runConstraints=function(p,x){var f=this.props,P=f.minConstraints,j=f.maxConstraints,A=f.lockAspectRatio;if(!P&&!j&&!A)return[p,x];if(A){var k=this.props.width/this.props.height,B=p-this.props.width,U=x-this.props.height;Math.abs(B)>Math.abs(U*k)?x=p/k:p=x*k}var L=p,J=x,X=this.slack||[0,0],ue=X[0],Z=X[1];return p+=ue,x+=Z,P&&(p=Math.max(P[0],p),x=Math.max(P[1],x)),j&&(p=Math.min(j[0],p),x=Math.min(j[1],x)),this.slack=[ue+(L-p),Z+(J-x)],[p,x]},g.resizeHandler=function(p,x){var f=this;return function(P,j){var A=j.node,k=j.deltaX,B=j.deltaY;p==="onResizeStart"&&f.resetData();var U=(f.props.axis==="both"||f.props.axis==="x")&&x!=="n"&&x!=="s",L=(f.props.axis==="both"||f.props.axis==="y")&&x!=="e"&&x!=="w";if(!(!U&&!L)){var J=x[0],X=x[x.length-1],ue=A.getBoundingClientRect();if(f.lastHandleRect!=null){if(X==="w"){var Z=ue.left-f.lastHandleRect.left;k+=Z}if(J==="n"){var we=ue.top-f.lastHandleRect.top;B+=we}}f.lastHandleRect=ue,X==="w"&&(k=-k),J==="n"&&(B=-B);var N=f.props.width+(U?k/f.props.transformScale:0),O=f.props.height+(L?B/f.props.transformScale:0),F=f.runConstraints(N,O);N=F[0],O=F[1];var z=N!==f.props.width||O!==f.props.height,W=typeof f.props[p]=="function"?f.props[p]:null,ee=p==="onResize"&&!z;W&&!ee&&(P.persist==null||P.persist(),W(P,{node:A,size:{width:N,height:O},handle:x})),p==="onResizeStop"&&f.resetData()}}},g.renderResizeHandle=function(p,x){var f=this.props.handle;if(!f)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+p,ref:x});if(typeof f=="function")return f(p,x);var P=typeof f.type=="string",j=m({ref:x},P?{}:{handleAxis:p});return e.cloneElement(f,j)},g.render=function(){var p=this,x=this.props,f=x.children,P=x.className,j=x.draggableOpts;x.width,x.height,x.handle,x.handleSize,x.lockAspectRatio,x.axis,x.minConstraints,x.maxConstraints,x.onResize,x.onResizeStop,x.onResizeStart;var A=x.resizeHandles;x.transformScale;var k=l(x,a);return(0,r.cloneElement)(f,m(m({},k),{},{className:(P?P+" ":"")+"react-resizable",children:[].concat(f.props.children,A.map(function(B){var U,L=(U=p.handleRefs[B])!=null?U:p.handleRefs[B]=e.createRef();return e.createElement(t.DraggableCore,s({},j,{nodeRef:L,key:"resizableHandle-"+B,onStop:p.resizeHandler("onResizeStop",B),onStart:p.resizeHandler("onResizeStart",B),onDrag:p.resizeHandler("onResize",B)}),p.renderResizeHandle(B,L))}))}))},c})(e.Component);return nr.default=S,S.propTypes=n.resizableProps,S.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},nr}var sr={},hi;function Ef(){if(hi)return sr;hi=1,sr.__esModule=!0,sr.default=void 0;var e=s(M),t=o(Er()),r=o(Rs()),n=ws(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function o(c){return c&&c.__esModule?c:{default:c}}function i(c){if(typeof WeakMap!="function")return null;var g=new WeakMap,v=new WeakMap;return(i=function(x){return x?v:g})(c)}function s(c,g){if(c&&c.__esModule)return c;if(c===null||typeof c!="object"&&typeof c!="function")return{default:c};var v=i(g);if(v&&v.has(c))return v.get(c);var p={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in c)if(f!=="default"&&Object.prototype.hasOwnProperty.call(c,f)){var P=x?Object.getOwnPropertyDescriptor(c,f):null;P&&(P.get||P.set)?Object.defineProperty(p,f,P):p[f]=c[f]}return p.default=c,v&&v.set(c,p),p}function l(){return l=Object.assign?Object.assign.bind():function(c){for(var g=1;g<arguments.length;g++){var v=arguments[g];for(var p in v)Object.prototype.hasOwnProperty.call(v,p)&&(c[p]=v[p])}return c},l.apply(this,arguments)}function u(c,g){var v=Object.keys(c);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(c);g&&(p=p.filter(function(x){return Object.getOwnPropertyDescriptor(c,x).enumerable})),v.push.apply(v,p)}return v}function m(c){for(var g=1;g<arguments.length;g++){var v=arguments[g]!=null?arguments[g]:{};g%2?u(Object(v),!0).forEach(function(p){d(c,p,v[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(v)):u(Object(v)).forEach(function(p){Object.defineProperty(c,p,Object.getOwnPropertyDescriptor(v,p))})}return c}function d(c,g,v){return g=b(g),g in c?Object.defineProperty(c,g,{value:v,enumerable:!0,configurable:!0,writable:!0}):c[g]=v,c}function b(c){var g=y(c,"string");return typeof g=="symbol"?g:String(g)}function y(c,g){if(typeof c!="object"||c===null)return c;var v=c[Symbol.toPrimitive];if(v!==void 0){var p=v.call(c,g);if(typeof p!="object")return p;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(c)}function w(c,g){if(c==null)return{};var v={},p=Object.keys(c),x,f;for(f=0;f<p.length;f++)x=p[f],!(g.indexOf(x)>=0)&&(v[x]=c[x]);return v}function E(c,g){c.prototype=Object.create(g.prototype),c.prototype.constructor=c,S(c,g)}function S(c,g){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(p,x){return p.__proto__=x,p},S(c,g)}var h=(function(c){E(g,c);function g(){for(var p,x=arguments.length,f=new Array(x),P=0;P<x;P++)f[P]=arguments[P];return p=c.call.apply(c,[this].concat(f))||this,p.state={width:p.props.width,height:p.props.height,propsWidth:p.props.width,propsHeight:p.props.height},p.onResize=function(j,A){var k=A.size;p.props.onResize?(j.persist==null||j.persist(),p.setState(k,function(){return p.props.onResize&&p.props.onResize(j,A)})):p.setState(k)},p}g.getDerivedStateFromProps=function(x,f){return f.propsWidth!==x.width||f.propsHeight!==x.height?{width:x.width,height:x.height,propsWidth:x.width,propsHeight:x.height}:null};var v=g.prototype;return v.render=function(){var x=this.props,f=x.handle,P=x.handleSize;x.onResize;var j=x.onResizeStart,A=x.onResizeStop,k=x.draggableOpts,B=x.minConstraints,U=x.maxConstraints,L=x.lockAspectRatio,J=x.axis;x.width,x.height;var X=x.resizeHandles,ue=x.style,Z=x.transformScale,we=w(x,a);return e.createElement(r.default,{axis:J,draggableOpts:k,handle:f,handleSize:P,height:this.state.height,lockAspectRatio:L,maxConstraints:U,minConstraints:B,onResizeStart:j,onResize:this.onResize,onResizeStop:A,resizeHandles:X,transformScale:Z,width:this.state.width},e.createElement("div",l({},we,{style:m(m({},ue),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},g})(e.Component);return sr.default=h,h.propTypes=m(m({},n.resizableProps),{},{children:t.default.element}),sr}var mi;function xf(){return mi||(mi=1,rr.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},rr.exports.Resizable=Rs().default,rr.exports.ResizableBox=Ef().default),rr.exports}var Sf=xf();const wf=e=>e?Array.isArray(e)?e.join("."):e:"",Rf=Ne.span`
|
|
261
261
|
position: absolute;
|
|
262
262
|
top: 0;
|
|
263
263
|
right: 0;
|
|
@@ -286,7 +286,7 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var C=Ae(B,le,W,Z,ee+"."
|
|
|
286
286
|
display: inline-block;
|
|
287
287
|
transform: rotateZ(90deg) scale(0.3);
|
|
288
288
|
}
|
|
289
|
-
`,Pf=e=>{const{onResize:t,width:r,...n}=e,[a,o]=
|
|
289
|
+
`,Pf=e=>{const{onResize:t,width:r,...n}=e,[a,o]=M.useState(!1);if(!r)return $.jsx("th",{...n});const i=l=>{o(!0)},s=l=>{o(!1)};return $.jsx(Sf.Resizable,{width:r,height:0,handle:$.jsx(Rf,{className:a?"resizing":"",onClick:l=>l.stopPropagation(),children:$.jsx(qt.MenuOutlined,{className:"react-resizable-handle-icon"})}),onResize:t,onResizeStart:i,onResizeStop:s,draggableOpts:{enableUserSelectHack:!1},children:$.jsx("th",{...n})})},Of=(e,t)=>{const[r,n]=bs("table-resizable_"+t,{}),a=o=>(i,{size:s})=>{const l=wf(o==null?void 0:o.dataIndex);n(u=>({...u,[l]:s.width}))};return M.useMemo(()=>e.map(o=>{let i=o.dataIndex;Array.isArray(o.dataIndex)?i=o.dataIndex.join("."):i=o.dataIndex;const s=(r==null?void 0:r[i])||o.width;return{...o,width:s,onHeaderCell:l=>({width:l.width,onResize:a(l)})}}),[e,r])},_f=Ne.div`
|
|
290
290
|
position: relative;
|
|
291
291
|
|
|
292
292
|
.ant-pagination-options {
|
|
@@ -294,7 +294,7 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var C=Ae(B,le,W,Z,ee+"."
|
|
|
294
294
|
width: auto !important;
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
`;function Tf(e,t){const{columns:r=[],columnsSort:n,columnsVisible:a,tableId:o="",pagination:i,dataSource:s,columnsResizable:l}=e,m=location.pathname+o,[d,b]=bs("TABLE_"+m,{defaultValue:null}),[y,w]=
|
|
297
|
+
`;function Tf(e,t){const{columns:r=[],columnsSort:n,columnsVisible:a,tableId:o="",pagination:i,dataSource:s,columnsResizable:l}=e,m=location.pathname+o,[d,b]=bs("TABLE_"+m,{defaultValue:null}),[y,w]=M.useState([]),[E,S]=M.useState([]),h=M.useRef(null),c=A=>{w(A),v(A,E)},g=A=>{S(A),v(y,A)},v=(A,k)=>{b({order:A,visibleItems:k})},p=()=>{if(d)w(d.order),S(d.visibleItems);else{const A=[],k=[];for(const B of r){let U;"dataIndex"in B&&(Array.isArray(B.dataIndex)?U=B.dataIndex.join(","):U=B.dataIndex,A.push(U),"columnVisible"in B&&!B.columnVisible||k.push(U))}w(A),S(k)}},x=A=>{const k={...A},B=U=>$.jsxs("span",{children:[U,$.jsx(sf,{onChangeOrder:c,onChangeVisible:g,order:y,columnsSort:n,visibleItems:E,columns:r,columnsVisible:a})]});return typeof A.title=="function"?k.title=U=>B(A.title(U)):k.title=B(A.title),k},f=A=>A!=null&&A!==""?$.jsx(Ee.Tooltip,{title:A,placement:"topLeft",children:$.jsx("span",{className:"column-ellipsis",children:A})}):"-",P=M.useMemo(()=>{let A=r;if(!n&&!a)A=r;else{const k=[];y.filter(B=>E.includes(B)).forEach((B,U,L)=>{for(const J of r)if("dataIndex"in J){let X;if(Array.isArray(J.dataIndex)?X=J.dataIndex.join(","):X=J.dataIndex,B===X){(n||a)&&U===L.length-1?k.push(x(J)):k.push(J);break}}}),A=k}return A.map(k=>{if(k.filters&&!k.filterIcon&&(k.filterIcon=$.jsx(qt.DownOutlined,{type:"icon-xiajiantou",style:{fontWeight:500}})),k.ellipsis===!1)k.ellipsis=!1;else{const B=k.ellipsis||{};k.ellipsis={showTitle:!1,...B},k.render||(k.render=f)}return k})},[y,E,r]),j=M.useMemo(()=>e.pagination?{...i||{},showTotal:()=>s&&s.length>0&&$.jsx(hf,{...e})}:!1,[i]);return M.useEffect(()=>{p()},[]),$.jsx(_f,{ref:t,children:$.jsx(Ee.Table,{ref:h,scroll:{x:900},components:{header:{cell:l?Pf:void 0}},...e,pagination:j,columns:l?Of(P,o):P})})}const Cf=M.forwardRef(Tf),Df=Ne(Ee.Form.Item)`
|
|
298
298
|
margin-bottom: 0 !important;
|
|
299
299
|
|
|
300
300
|
.search-item__label {
|
|
@@ -317,10 +317,10 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var C=Ae(B,le,W,Z,ee+"."
|
|
|
317
317
|
.search-item__content {
|
|
318
318
|
flex: 1;
|
|
319
319
|
}
|
|
320
|
-
`;function jf({children:e,...t}){return
|
|
320
|
+
`;function jf({children:e,...t}){return $.jsx(Df,{...t,children:e})}const Nf=Ne(qt.CaretUpOutlined,{shouldForwardProp:e=>e!=="show"})`
|
|
321
321
|
transition: transform 0.3s ease-in-out;
|
|
322
322
|
transform: rotate(${e=>e.show?"0deg":"180deg"});
|
|
323
|
-
`;function Af({panel:e,onChange:t}){const r=
|
|
323
|
+
`;function Af({panel:e,onChange:t}){const r=M.useMemo(()=>e==null?void 0:e.show,[e]),n=M.useCallback(()=>{e==null||e.toggle(),t==null||t(!(e!=null&&e.show))},[e]);return $.jsxs(Ee.Button,{type:"link",style:{paddingLeft:0,paddingRight:0},onClick:n,children:[$.jsx($t,{id:"comgponent.searcharea.togle",defaultMessage:"高级搜索"}),$.jsx(Nf,{show:r})]})}const Mf=Ne("div",{shouldForwardProp:e=>e!=="show"})`
|
|
324
324
|
overflow: hidden;
|
|
325
325
|
transition: max-height 0.4s ease-in-out;
|
|
326
326
|
max-height: ${e=>e.show?"450px":"0"};
|
|
@@ -339,7 +339,7 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var C=Ae(B,le,W,Z,ee+"."
|
|
|
339
339
|
display: flex;
|
|
340
340
|
justify-content: flex-end;
|
|
341
341
|
margin-bottom: 20px;
|
|
342
|
-
`;function Ff({children:e,onSearch:t,onClose:r,onReset:n,resetFieldsValue:a,col:o={},row:i={},loading:s=!1,instance:l,...u}){const[m]=Ee.Form.useForm(),[d,b]=
|
|
342
|
+
`;function Ff({children:e,onSearch:t,onClose:r,onReset:n,resetFieldsValue:a,col:o={},row:i={},loading:s=!1,instance:l,...u}){const[m]=Ee.Form.useForm(),[d,b]=M.useState((l==null?void 0:l.show)??!1),y=M.useMemo(()=>(l==null?void 0:l.show)??d,[l,d]),w=M.useCallback(()=>{var c;typeof(l==null?void 0:l.toggle)=="function"?(c=l==null?void 0:l.toggle)==null||c.call(l):b(g=>!g)},[l,d]),E=()=>{const c=m.getFieldsValue();t==null||t(c)},S=()=>{a?m.setFieldsValue(a):m.resetFields(),E(),n==null||n()},h=()=>{w(),r==null||r()};return $.jsx(Mf,{show:y,children:$.jsx(If,{form:m,labelCol:{flex:"70px"},wrapperCol:{flex:"1",style:{maxWidth:"280px"}},...u,children:$.jsxs(Ee.Row,{gutter:10,justify:"space-between",...i,children:[Array.isArray(e)?e.map(c=>M.createElement(Ee.Col,{span:6,xxl:6,xl:8,lg:12,xs:24,key:c.props.name||c.key||c.props.label,...o},c)):e,$.jsx(Ee.Col,{flex:1,children:$.jsxs(kf,{children:[$.jsx(Ee.Button,{loading:s,type:"primary",onClick:E,children:$.jsx($t,{id:"component.searcharea.submit",defaultMessage:"筛选"})}),$.jsx(Ee.Button,{loading:s,onClick:S,children:$.jsx($t,{id:"component.searcharea.reset",defaultMessage:"重置"})}),$.jsxs(Ee.Button,{type:"link",style:{paddingLeft:0,paddingRight:0},onClick:h,children:[$.jsx($t,{id:"component.searcharea.close",defaultMessage:"收起"}),$.jsx(qt.UpOutlined,{})]})]})})]})})})}const pn=Ff;function Lf(e){const[t,r]=M.useState(e??!1);return{show:t,toggle:()=>{r(a=>!a)}}}pn.useSearchArea=Lf;pn.Item=jf;pn.ToggleButton=Af;function zf(e,t,r){const n=Qc(e,{...t,onError(o,i){var s;((t==null?void 0:t.errorMessage)??!0)&&exports.message.error(o.message),(s=t==null?void 0:t.onError)==null||s.call(t,o,i)}},r),a=n.data&&typeof n.data=="object"&&"data"in n.data?n.data.data:n.data;return{...n,data:a}}const $f={ascend:"ASC",descend:"DESC"},Uf={rowKey:"id",interval:!1,immediate:!0,defaultPagination:{current:1,pageSize:10},showRowSelection:!1,multiPageSelection:!1,onBeforeRequest:async e=>{},onAfterRequest:async e=>{}};function Wf(e,t={}){const r=Nu(),{rowKey:n,interval:a,immediate:o,defaultPagination:i,showRowSelection:s,multiPageSelection:l,onBeforeRequest:u,onAfterRequest:m}={...Uf,...t},d=M.useRef(null),[b,y]=M.useState(!1),[w,E]=M.useState([]),[S,h]=M.useState({current:1,pageSize:10,total:0,...i}),[c,g]=M.useState([]),{current:v}=M.useRef({pageNum:1,pageSize:10,column:null,order:null}),p=M.useRef(S);p.current=S;const x=et(async(L=1,J=10,X)=>{if(X!=="auto")y(!0),P();else if(c.length!==0){f(L,J);return}try{const ue={...v,pageNum:Number(L),pageSize:Number(J)},Z=await(u==null?void 0:u(ue)),N=await e(Z!==void 0?Z:ue),{records:O,total:F,current:z,size:W}=N.data,ee=await(m==null?void 0:m(N)),te=Array.isArray(ee)?ee:O;if(E(te),(z!==S.current||J!==S.pageSize||F!==S.total)&&h({current:z,pageSize:W,total:F}),te.length===0&&z&&z>1&&F&&F>0){const H=Math.ceil(F/W);x(H,J,X)}else f(z,W)}catch(ue){const Z=ue instanceof Error?ue.message:"请求失败";exports.message.error(Z)}finally{l||g([]),y(!1)}}),f=et((L,J)=>{a&&(P(),d.current===null&&(d.current=setTimeout(()=>{x(L,J,"auto")},a)))}),P=M.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),j=M.useCallback((L,J,X)=>{g(J)},[]),A=M.useCallback((L={})=>{const J={pageNum:1,pageSize:S.pageSize,column:v.column,order:v.order};Object.keys(v).forEach(X=>{X!=="column"&&X!=="order"&&X!=="pageNum"&&X!=="pageSize"&&Reflect.deleteProperty(v,X)}),Object.assign(v,J,L),x(1,S.pageSize)},[S.pageSize,x,v]),k=M.useCallback(L=>{if(L){const J={column:v.column,order:v.order};L!=null&&L.pageSize&&h({...S,pageSize:L.pageSize}),L!=null&&L.pageNum&&h({...S,current:L.pageNum});for(const X in v)delete v[X];Object.assign(v,J,L),x((L==null?void 0:L.pageNum)||S.current,(L==null?void 0:L.pageSize)||S.pageSize)}else x(S.current,S.pageSize)},[x,S,v]),B=M.useCallback((L,J,X,ue)=>{var O;Object.entries(J).forEach(([F,z])=>{z&&Array.isArray(z)&&z.length===1?v[F]=z[0]:v[F]=z});const Z=Array.isArray(X)?X[0]:X;Z!=null&&Z.order?((O=Z==null?void 0:Z.column)!=null&&O.sort?v.column=Z.column.sort:Z.field&&(v.column=Array.isArray(Z.field)?Z.field[0]:Z.field),v.order=$f[Z.order]):(v.column=null,v.order=null);const we=L.current??p.current.current,N=L.pageSize??p.current.pageSize;x(we,N)},[x,v]),U=()=>{g([]),E([]),h({current:1,pageSize:10,total:0,...i}),y(!1),v.pageNum=1,v.pageSize=(i==null?void 0:i.pageSize)||10};return M.useEffect(()=>(o&&x(p.current.current,p.current.pageSize),()=>{P()}),[o,x,P]),{loading:b,tableProps:{rowKey:String(n),loading:b,dataSource:w,...s?{rowSelection:{selectedRowKeys:c.map(L=>L[n]),onChange:j}}:{},onChange:B,pagination:{showQuickJumper:!0,showSizeChanger:!0,showTotal:L=>r.$t({id:"component.table.total",defaultMessage:"共{total}条"},{total:L}),...S}},search:{pagination:S,params:v,submit:A,refresh:k,reset:U},rowSelection:{selectedRows:c,selectedRowKeys:c.map(L=>L[n])}}}/**
|
|
343
343
|
* @remix-run/router v1.23.1
|
|
344
344
|
*
|
|
345
345
|
* Copyright (c) Remix Software Inc.
|
|
@@ -348,8 +348,8 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var C=Ae(B,le,W,Z,ee+"."
|
|
|
348
348
|
* LICENSE.md file in the root directory of this source tree.
|
|
349
349
|
*
|
|
350
350
|
* @license MIT
|
|
351
|
-
*/function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Se.apply(this,arguments)}var Oe;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Oe||(Oe={}));function Ps(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:r,v5Compat:n=!1}=e,a;a=t.map((y,w)=>m(y,typeof y=="string"?null:y.state,w===0?"default":void 0));let o=l(r??a.length-1),i=Oe.Pop,s=null;function l(y){return Math.min(Math.max(y,0),a.length-1)}function u(){return a[o]}function m(y,w,E){w===void 0&&(w=null);let S=da(a?u().pathname:"/",y,w,E);return je(S.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(y)),S}function d(y){return typeof y=="string"?y:wr(y)}return{get index(){return o},get action(){return i},get location(){return u()},createHref:d,createURL(y){return new URL(d(y),"http://localhost")},encodeLocation(y){let w=typeof y=="string"?Ge(y):y;return{pathname:w.pathname||"",search:w.search||"",hash:w.hash||""}},push(y,w){i=Oe.Push;let E=m(y,w);o+=1,a.splice(o,a.length,E),n&&s&&s({action:i,location:E,delta:1})},replace(y,w){i=Oe.Replace;let E=m(y,w);a[o]=E,n&&s&&s({action:i,location:E,delta:0})},go(y){i=Oe.Pop;let w=l(o+y),E=a[w];o=w,s&&s({action:i,location:E,delta:y})},listen(y){return s=y,()=>{s=null}}}}function K(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function je(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qf(){return Math.random().toString(36).substr(2,8)}function da(e,t,r,n){return r===void 0&&(r=null),Se({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ge(t):t,{state:r,key:t&&t.key||n||qf()})}function wr(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Ge(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var be;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(be||(be={}));const Bf=new Set(["lazy","caseSensitive","path","id","index","children"]);function Hf(e){return e.index===!0}function Qr(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],s=typeof a.id=="string"?a.id:i.join("-");if(K(a.index!==!0||!a.children,"Cannot specify children on an index route"),K(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Hf(a)){let l=Se({},a,t(a),{id:s});return n[s]=l,l}else{let l=Se({},a,t(a),{id:s,children:void 0});return n[s]=l,a.children&&(l.children=Qr(a.children,t,i,n)),l}})}function dt(e,t,r){return r===void 0&&(r="/"),Gr(e,t,r,!1)}function Gr(e,t,r,n){let a=typeof t=="string"?Ge(t):t,o=_t(a.pathname||"/",r);if(o==null)return null;let i=_s(e);Yf(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let u=Cs(o);s=td(i[l],u,n)}return s}function Os(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function _s(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(o,i,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(K(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=ot([n,l.relativePath]),m=r.concat(l);o.children&&o.children.length>0&&(K(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),_s(o.children,t,m,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Qf(u,o.index),routesMeta:m})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let l of Ts(o.path))a(o,i,l)}),t}function Ts(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=Ts(n.join("/")),s=[];return s.push(...i.map(l=>l===""?o:[o,l].join("/"))),a&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Yf(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:ed(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Vf=/^:[\w-]+$/,Xf=3,Gf=2,Kf=1,Jf=10,Zf=-2,gi=e=>e==="*";function Qf(e,t){let r=e.split("/"),n=r.length;return r.some(gi)&&(n+=Zf),t&&(n+=Gf),r.filter(a=>!gi(a)).reduce((a,o)=>a+(Vf.test(o)?Xf:o===""?Kf:Jf),n)}function ed(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function td(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s<n.length;++s){let l=n[s],u=s===n.length-1,m=o==="/"?t:t.slice(o.length)||"/",d=en({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},m),b=l.route;if(!d&&u&&r&&!n[n.length-1].route.index&&(d=en({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},m)),!d)return null;Object.assign(a,d.params),i.push({params:a,pathname:ot([o,d.pathname]),pathnameBase:id(ot([o,d.pathnameBase])),route:b}),d.pathnameBase!=="/"&&(o=ot([o,d.pathnameBase]))}return i}function rd(e,t){t===void 0&&(t={});let r=e;r.endsWith("*")&&r!=="*"&&!r.endsWith("/*")&&(je(!1,'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+r.replace(/\*$/,"/*")+'".')),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",a=i=>i==null?"":typeof i=="string"?i:String(i),o=r.split(/\/+/).map((i,s,l)=>{if(s===l.length-1&&i==="*")return a(t["*"]);const m=i.match(/^:([\w-]+)(\??)$/);if(m){const[,d,b]=m;let y=t[d];return K(b==="?"||y!=null,'Missing ":'+d+'" param'),a(y)}return i.replace(/\?$/g,"")}).filter(i=>!!i);return n+o.join("/")}function en(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=nd(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((u,m,d)=>{let{paramName:b,isOptional:y}=m;if(b==="*"){let E=s[d]||"";i=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const w=s[d];return y&&!w?u[b]=void 0:u[b]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function nd(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),je(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function Cs(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return je(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _t(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const ad=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,od=e=>ad.test(e);function Ds(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Ge(e):e,o;if(r)if(od(r))o=r;else{if(r.includes("//")){let i=r;r=r.replace(/\/\/+/g,"/"),je(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+r))}r.startsWith("/")?o=vi(r.substring(1),"/"):o=vi(r,t)}else o=t;return{pathname:o,search:sd(n),hash:ld(a)}}function vi(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Gn(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function js(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function hn(e,t){let r=js(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function mn(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=Ge(e):(a=Se({},e),K(!a.pathname||!a.pathname.includes("?"),Gn("?","pathname","search",a)),K(!a.pathname||!a.pathname.includes("#"),Gn("#","pathname","hash",a)),K(!a.search||!a.search.includes("#"),Gn("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let d=t.length-1;if(!n&&i.startsWith("..")){let b=i.split("/");for(;b[0]==="..";)b.shift(),d-=1;a.pathname=b.join("/")}s=d>=0?t[d]:"/"}let l=Ds(a,s),u=i&&i!=="/"&&i.endsWith("/"),m=(o||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||m)&&(l.pathname+="/"),l}const ot=e=>e.join("/").replace(/\/\/+/g,"/"),id=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),sd=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ld=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,ud=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r,a=new Headers(n.headers);return a.has("Content-Type")||a.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(t),Se({},n,{headers:a}))};class tn extends Error{}class cd{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],K(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((o,i)=>n=i),this.controller=new AbortController;let a=()=>n(new tn("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",a),this.controller.signal.addEventListener("abort",a),this.data=Object.entries(t).reduce((o,i)=>{let[s,l]=i;return Object.assign(o,{[s]:this.trackPromise(s,l)})},{}),this.done&&this.unlistenAbortSignal(),this.init=r}trackPromise(t,r){if(!(r instanceof Promise))return r;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let n=Promise.race([r,this.abortPromise]).then(a=>this.onSettle(n,t,void 0,a),a=>this.onSettle(n,t,a));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,r,n,a){if(this.controller.signal.aborted&&n instanceof tn)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(r),this.done&&this.unlistenAbortSignal(),n===void 0&&a===void 0){let o=new Error('Deferred data for key "'+r+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(t,"_error",{get:()=>o}),this.emit(!1,r),Promise.reject(o)}return a===void 0?(Object.defineProperty(t,"_error",{get:()=>n}),this.emit(!1,r),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>a}),this.emit(!1,r),a)}emit(t,r){this.subscribers.forEach(n=>n(t,r))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,r)=>this.pendingKeysSet.delete(r)),this.emit(!0)}async resolveData(t){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=await new Promise(a=>{this.subscribe(o=>{t.removeEventListener("abort",n),(o||this.done)&&a(o)})})}return r}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return K(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,r)=>{let[n,a]=r;return Object.assign(t,{[n]:dd(a)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function fd(e){return e instanceof Promise&&e._tracked===!0}function dd(e){if(!fd(e))return e;if(e._error)throw e._error;return e._data}const pd=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r;return new cd(t,n)},Ia=function(t,r){r===void 0&&(r=302);let n=r;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",t),new Response(null,Se({},n,{headers:a}))},hd=(e,t)=>{let r=Ia(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},md=(e,t)=>{let r=Ia(e,t);return r.headers.set("X-Remix-Replace","true"),r};class pa{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Wt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ns=["post","put","patch","delete"],gd=new Set(Ns),vd=["get",...Ns],yd=new Set(vd),bd=new Set([301,302,303,307,308]),Ed=new Set([307,308]),Kn={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},xd={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ft={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ka=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sd=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),As="remix-router-transitions";function wd(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;K(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let R=e.detectErrorBoundary;a=_=>({hasErrorBoundary:R(_)})}else a=Sd;let o={},i=Qr(e.routes,a,void 0,o),s,l=e.basename||"/",u=e.dataStrategy||_d,m=e.patchRoutesOnNavigation,d=Se({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),b=null,y=new Set,w=null,E=null,S=null,h=e.hydrationData!=null,c=dt(i,e.history.location,l),g=!1,v=null;if(c==null&&!m){let R=ze(404,{pathname:e.history.location.pathname}),{matches:_,route:T}=Ti(i);c=_,v={[T.id]:R}}c&&!e.hydrationData&&_r(c,i,e.history.location.pathname).active&&(c=null);let p;if(c)if(c.some(R=>R.route.lazy))p=!1;else if(!c.some(R=>R.route.loader))p=!0;else if(d.v7_partialHydration){let R=e.hydrationData?e.hydrationData.loaderData:null,_=e.hydrationData?e.hydrationData.errors:null;if(_){let T=c.findIndex(F=>_[F.route.id]!==void 0);p=c.slice(0,T+1).every(F=>!ma(F.route,R,_))}else p=c.every(T=>!ma(T.route,R,_))}else p=e.hydrationData!=null;else if(p=!1,c=[],d.v7_partialHydration){let R=_r(null,i,e.history.location.pathname);R.active&&R.matches&&(g=!0,c=R.matches)}let x,f={historyAction:e.history.action,location:e.history.location,matches:c,initialized:p,navigation:Kn,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},O=Oe.Pop,j=!1,M,L=!1,q=new Map,N=null,Y=!1,X=!1,te=[],re=new Set,ie=new Map,we=0,A=-1,P=new Map,k=new Set,U=new Map,W=new Map,Z=new Set,ee=new Map,B=new Map,ne;function ue(){if(b=e.history.listen(R=>{let{action:_,location:T,delta:F}=R;if(ne){ne(),ne=void 0;return}je(B.size===0||F!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let $=Qa({currentLocation:f.location,nextLocation:T,historyAction:_});if($&&F!=null){let Q=new Promise(ae=>{ne=ae});e.history.go(F*-1),Or($,{state:"blocked",location:T,proceed(){Or($,{state:"proceeding",proceed:void 0,reset:void 0,location:T}),Q.then(()=>e.history.go(F))},reset(){let ae=new Map(f.blockers);ae.set($,Ft),C({blockers:ae})}});return}return yt(_,T)}),r){Ud(t,q);let R=()=>Wd(t,q);t.addEventListener("pagehide",R),N=()=>t.removeEventListener("pagehide",R)}return f.initialized||yt(Oe.Pop,f.location,{initialHydration:!0}),x}function le(){b&&b(),N&&N(),y.clear(),M&&M.abort(),f.fetchers.forEach((R,_)=>Pr(_)),f.blockers.forEach((R,_)=>Za(_))}function Ae(R){return y.add(R),()=>y.delete(R)}function C(R,_){_===void 0&&(_={}),f=Se({},f,R);let T=[],F=[];d.v7_fetcherPersist&&f.fetchers.forEach(($,Q)=>{$.state==="idle"&&(Z.has(Q)?F.push(Q):T.push(Q))}),Z.forEach($=>{!f.fetchers.has($)&&!ie.has($)&&F.push($)}),[...y].forEach($=>$(f,{deletedFetchers:F,viewTransitionOpts:_.viewTransitionOpts,flushSync:_.flushSync===!0})),d.v7_fetcherPersist?(T.forEach($=>f.fetchers.delete($)),F.forEach($=>Pr($))):F.forEach($=>Z.delete($))}function _e(R,_,T){var F,$;let{flushSync:Q}=T===void 0?{}:T,ae=f.actionData!=null&&f.navigation.formMethod!=null&&Ve(f.navigation.formMethod)&&f.navigation.state==="loading"&&((F=R.state)==null?void 0:F._isRedirect)!==!0,V;_.actionData?Object.keys(_.actionData).length>0?V=_.actionData:V=null:ae?V=f.actionData:V=null;let G=_.loaderData?Oi(f.loaderData,_.loaderData,_.matches||[],_.errors):f.loaderData,H=f.blockers;H.size>0&&(H=new Map(H),H.forEach((ce,Me)=>H.set(Me,Ft)));let J=j===!0||f.navigation.formMethod!=null&&Ve(f.navigation.formMethod)&&(($=R.state)==null?void 0:$._isRedirect)!==!0;s&&(i=s,s=void 0),Y||O===Oe.Pop||(O===Oe.Push?e.history.push(R,R.state):O===Oe.Replace&&e.history.replace(R,R.state));let se;if(O===Oe.Pop){let ce=q.get(f.location.pathname);ce&&ce.has(R.pathname)?se={currentLocation:f.location,nextLocation:R}:q.has(R.pathname)&&(se={currentLocation:R,nextLocation:f.location})}else if(L){let ce=q.get(f.location.pathname);ce?ce.add(R.pathname):(ce=new Set([R.pathname]),q.set(f.location.pathname,ce)),se={currentLocation:f.location,nextLocation:R}}C(Se({},_,{actionData:V,loaderData:G,historyAction:O,location:R,initialized:!0,navigation:Kn,revalidation:"idle",restoreScrollPosition:to(R,_.matches||f.matches),preventScrollReset:J,blockers:H}),{viewTransitionOpts:se,flushSync:Q===!0}),O=Oe.Pop,j=!1,L=!1,Y=!1,X=!1,te=[]}async function Be(R,_){if(typeof R=="number"){e.history.go(R);return}let T=ha(f.location,f.matches,l,d.v7_prependBasename,R,d.v7_relativeSplatPath,_==null?void 0:_.fromRouteId,_==null?void 0:_.relative),{path:F,submission:$,error:Q}=yi(d.v7_normalizeFormMethod,!1,T,_),ae=f.location,V=da(f.location,F,_&&_.state);V=Se({},V,e.history.encodeLocation(V));let G=_&&_.replace!=null?_.replace:void 0,H=Oe.Push;G===!0?H=Oe.Replace:G===!1||$!=null&&Ve($.formMethod)&&$.formAction===f.location.pathname+f.location.search&&(H=Oe.Replace);let J=_&&"preventScrollReset"in _?_.preventScrollReset===!0:void 0,se=(_&&_.flushSync)===!0,ce=Qa({currentLocation:ae,nextLocation:V,historyAction:H});if(ce){Or(ce,{state:"blocked",location:V,proceed(){Or(ce,{state:"proceeding",proceed:void 0,reset:void 0,location:V}),Be(R,_)},reset(){let Me=new Map(f.blockers);Me.set(ce,Ft),C({blockers:Me})}});return}return await yt(H,V,{submission:$,pendingError:Q,preventScrollReset:J,replace:_&&_.replace,enableViewTransition:_&&_.viewTransition,flushSync:se})}function vt(){if(yn(),C({revalidation:"loading"}),f.navigation.state!=="submitting"){if(f.navigation.state==="idle"){yt(f.historyAction,f.location,{startUninterruptedRevalidation:!0});return}yt(O||f.historyAction,f.navigation.location,{overrideNavigation:f.navigation,enableViewTransition:L===!0})}}async function yt(R,_,T){M&&M.abort(),M=null,O=R,Y=(T&&T.startUninterruptedRevalidation)===!0,sl(f.location,f.matches),j=(T&&T.preventScrollReset)===!0,L=(T&&T.enableViewTransition)===!0;let F=s||i,$=T&&T.overrideNavigation,Q=T!=null&&T.initialHydration&&f.matches&&f.matches.length>0&&!g?f.matches:dt(F,_,l),ae=(T&&T.flushSync)===!0;if(Q&&f.initialized&&!X&&Ad(f.location,_)&&!(T&&T.submission&&Ve(T.submission.formMethod))){_e(_,{matches:Q},{flushSync:ae});return}let V=_r(Q,F,_.pathname);if(V.active&&V.matches&&(Q=V.matches),!Q){let{error:xe,notFoundMatches:de,route:Re}=bn(_.pathname);_e(_,{matches:de,loaderData:{},errors:{[Re.id]:xe}},{flushSync:ae});return}M=new AbortController;let G=Mt(e.history,_,M.signal,T&&T.submission),H;if(T&&T.pendingError)H=[Rt(Q).route.id,{type:be.error,error:T.pendingError}];else if(T&&T.submission&&Ve(T.submission.formMethod)){let xe=await Zs(G,_,T.submission,Q,V.active,{replace:T.replace,flushSync:ae});if(xe.shortCircuited)return;if(xe.pendingActionResult){let[de,Re]=xe.pendingActionResult;if(We(Re)&&Wt(Re.error)&&Re.error.status===404){M=null,_e(_,{matches:xe.matches,loaderData:{},errors:{[de]:Re.error}});return}}Q=xe.matches||Q,H=xe.pendingActionResult,$=Jn(_,T.submission),ae=!1,V.active=!1,G=Mt(e.history,G.url,G.signal)}let{shortCircuited:J,matches:se,loaderData:ce,errors:Me}=await Qs(G,_,Q,V.active,$,T&&T.submission,T&&T.fetcherSubmission,T&&T.replace,T&&T.initialHydration===!0,ae,H);J||(M=null,_e(_,Se({matches:se||Q},_i(H),{loaderData:ce,errors:Me})))}async function Zs(R,_,T,F,$,Q){Q===void 0&&(Q={}),yn();let ae=zd(_,T);if(C({navigation:ae},{flushSync:Q.flushSync===!0}),$){let H=await Tr(F,_.pathname,R.signal);if(H.type==="aborted")return{shortCircuited:!0};if(H.type==="error"){let J=Rt(H.partialMatches).route.id;return{matches:H.partialMatches,pendingActionResult:[J,{type:be.error,error:H.error}]}}else if(H.matches)F=H.matches;else{let{notFoundMatches:J,error:se,route:ce}=bn(_.pathname);return{matches:J,pendingActionResult:[ce.id,{type:be.error,error:se}]}}}let V,G=pr(F,_);if(!G.route.action&&!G.route.lazy)V={type:be.error,error:ze(405,{method:R.method,pathname:_.pathname,routeId:G.route.id})};else if(V=(await Vt("action",f,R,[G],F,null))[G.route.id],R.signal.aborted)return{shortCircuited:!0};if(Pt(V)){let H;return Q&&Q.replace!=null?H=Q.replace:H=wi(V.response.headers.get("Location"),new URL(R.url),l)===f.location.pathname+f.location.search,await bt(R,V,!0,{submission:T,replace:H}),{shortCircuited:!0}}if(pt(V))throw ze(400,{type:"defer-action"});if(We(V)){let H=Rt(F,G.route.id);return(Q&&Q.replace)!==!0&&(O=Oe.Push),{matches:F,pendingActionResult:[H.route.id,V]}}return{matches:F,pendingActionResult:[G.route.id,V]}}async function Qs(R,_,T,F,$,Q,ae,V,G,H,J){let se=$||Jn(_,Q),ce=Q||ae||Di(se),Me=!Y&&(!d.v7_partialHydration||!G);if(F){if(Me){let Pe=Ya(J);C(Se({navigation:se},Pe!==void 0?{actionData:Pe}:{}),{flushSync:H})}let fe=await Tr(T,_.pathname,R.signal);if(fe.type==="aborted")return{shortCircuited:!0};if(fe.type==="error"){let Pe=Rt(fe.partialMatches).route.id;return{matches:fe.partialMatches,loaderData:{},errors:{[Pe]:fe.error}}}else if(fe.matches)T=fe.matches;else{let{error:Pe,notFoundMatches:jt,route:Kt}=bn(_.pathname);return{matches:jt,loaderData:{},errors:{[Kt.id]:Pe}}}}let xe=s||i,[de,Re]=Ei(e.history,f,T,ce,_,d.v7_partialHydration&&G===!0,d.v7_skipActionErrorRevalidation,X,te,re,Z,U,k,xe,l,J);if(En(fe=>!(T&&T.some(Pe=>Pe.route.id===fe))||de&&de.some(Pe=>Pe.route.id===fe)),A=++we,de.length===0&&Re.length===0){let fe=Ka();return _e(_,Se({matches:T,loaderData:{},errors:J&&We(J[1])?{[J[0]]:J[1].error}:null},_i(J),fe?{fetchers:new Map(f.fetchers)}:{}),{flushSync:H}),{shortCircuited:!0}}if(Me){let fe={};if(!F){fe.navigation=se;let Pe=Ya(J);Pe!==void 0&&(fe.actionData=Pe)}Re.length>0&&(fe.fetchers=el(Re)),C(fe,{flushSync:H})}Re.forEach(fe=>{lt(fe.key),fe.controller&&ie.set(fe.key,fe.controller)});let Dt=()=>Re.forEach(fe=>lt(fe.key));M&&M.signal.addEventListener("abort",Dt);let{loaderResults:Xt,fetcherResults:at}=await Va(f,T,de,Re,R);if(R.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",Dt),Re.forEach(fe=>ie.delete(fe.key));let Ke=$r(Xt);if(Ke)return await bt(R,Ke.result,!0,{replace:V}),{shortCircuited:!0};if(Ke=$r(at),Ke)return k.add(Ke.key),await bt(R,Ke.result,!0,{replace:V}),{shortCircuited:!0};let{loaderData:xn,errors:Gt}=Pi(f,T,Xt,J,Re,at,ee);ee.forEach((fe,Pe)=>{fe.subscribe(jt=>{(jt||fe.done)&&ee.delete(Pe)})}),d.v7_partialHydration&&G&&f.errors&&(Gt=Se({},f.errors,Gt));let Et=Ka(),Cr=Ja(A),Dr=Et||Cr||Re.length>0;return Se({matches:T,loaderData:xn,errors:Gt},Dr?{fetchers:new Map(f.fetchers)}:{})}function Ya(R){if(R&&!We(R[1]))return{[R[0]]:R[1].data};if(f.actionData)return Object.keys(f.actionData).length===0?null:f.actionData}function el(R){return R.forEach(_=>{let T=f.fetchers.get(_.key),F=lr(void 0,T?T.data:void 0);f.fetchers.set(_.key,F)}),new Map(f.fetchers)}function tl(R,_,T,F){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");lt(R);let $=(F&&F.flushSync)===!0,Q=s||i,ae=ha(f.location,f.matches,l,d.v7_prependBasename,T,d.v7_relativeSplatPath,_,F==null?void 0:F.relative),V=dt(Q,ae,l),G=_r(V,Q,ae);if(G.active&&G.matches&&(V=G.matches),!V){nt(R,_,ze(404,{pathname:ae}),{flushSync:$});return}let{path:H,submission:J,error:se}=yi(d.v7_normalizeFormMethod,!0,ae,F);if(se){nt(R,_,se,{flushSync:$});return}let ce=pr(V,H),Me=(F&&F.preventScrollReset)===!0;if(J&&Ve(J.formMethod)){rl(R,_,H,ce,V,G.active,$,Me,J);return}U.set(R,{routeId:_,path:H}),nl(R,_,H,ce,V,G.active,$,Me,J)}async function rl(R,_,T,F,$,Q,ae,V,G){yn(),U.delete(R);function H(Ce){if(!Ce.route.action&&!Ce.route.lazy){let Nt=ze(405,{method:G.formMethod,pathname:T,routeId:_});return nt(R,_,Nt,{flushSync:ae}),!0}return!1}if(!Q&&H(F))return;let J=f.fetchers.get(R);st(R,$d(G,J),{flushSync:ae});let se=new AbortController,ce=Mt(e.history,T,se.signal,G);if(Q){let Ce=await Tr($,new URL(ce.url).pathname,ce.signal,R);if(Ce.type==="aborted")return;if(Ce.type==="error"){nt(R,_,Ce.error,{flushSync:ae});return}else if(Ce.matches){if($=Ce.matches,F=pr($,T),H(F))return}else{nt(R,_,ze(404,{pathname:T}),{flushSync:ae});return}}ie.set(R,se);let Me=we,de=(await Vt("action",f,ce,[F],$,R))[F.route.id];if(ce.signal.aborted){ie.get(R)===se&&ie.delete(R);return}if(d.v7_fetcherPersist&&Z.has(R)){if(Pt(de)||We(de)){st(R,ft(void 0));return}}else{if(Pt(de))if(ie.delete(R),A>Me){st(R,ft(void 0));return}else return k.add(R),st(R,lr(G)),bt(ce,de,!1,{fetcherSubmission:G,preventScrollReset:V});if(We(de)){nt(R,_,de.error);return}}if(pt(de))throw ze(400,{type:"defer-action"});let Re=f.navigation.location||f.location,Dt=Mt(e.history,Re,se.signal),Xt=s||i,at=f.navigation.state!=="idle"?dt(Xt,f.navigation.location,l):f.matches;K(at,"Didn't find any matches after fetcher action");let Ke=++we;P.set(R,Ke);let xn=lr(G,de.data);f.fetchers.set(R,xn);let[Gt,Et]=Ei(e.history,f,at,G,Re,!1,d.v7_skipActionErrorRevalidation,X,te,re,Z,U,k,Xt,l,[F.route.id,de]);Et.filter(Ce=>Ce.key!==R).forEach(Ce=>{let Nt=Ce.key,ro=f.fetchers.get(Nt),cl=lr(void 0,ro?ro.data:void 0);f.fetchers.set(Nt,cl),lt(Nt),Ce.controller&&ie.set(Nt,Ce.controller)}),C({fetchers:new Map(f.fetchers)});let Cr=()=>Et.forEach(Ce=>lt(Ce.key));se.signal.addEventListener("abort",Cr);let{loaderResults:Dr,fetcherResults:fe}=await Va(f,at,Gt,Et,Dt);if(se.signal.aborted)return;se.signal.removeEventListener("abort",Cr),P.delete(R),ie.delete(R),Et.forEach(Ce=>ie.delete(Ce.key));let Pe=$r(Dr);if(Pe)return bt(Dt,Pe.result,!1,{preventScrollReset:V});if(Pe=$r(fe),Pe)return k.add(Pe.key),bt(Dt,Pe.result,!1,{preventScrollReset:V});let{loaderData:jt,errors:Kt}=Pi(f,at,Dr,void 0,Et,fe,ee);if(f.fetchers.has(R)){let Ce=ft(de.data);f.fetchers.set(R,Ce)}Ja(Ke),f.navigation.state==="loading"&&Ke>A?(K(O,"Expected pending action"),M&&M.abort(),_e(f.navigation.location,{matches:at,loaderData:jt,errors:Kt,fetchers:new Map(f.fetchers)})):(C({errors:Kt,loaderData:Oi(f.loaderData,jt,at,Kt),fetchers:new Map(f.fetchers)}),X=!1)}async function nl(R,_,T,F,$,Q,ae,V,G){let H=f.fetchers.get(R);st(R,lr(G,H?H.data:void 0),{flushSync:ae});let J=new AbortController,se=Mt(e.history,T,J.signal);if(Q){let de=await Tr($,new URL(se.url).pathname,se.signal,R);if(de.type==="aborted")return;if(de.type==="error"){nt(R,_,de.error,{flushSync:ae});return}else if(de.matches)$=de.matches,F=pr($,T);else{nt(R,_,ze(404,{pathname:T}),{flushSync:ae});return}}ie.set(R,J);let ce=we,xe=(await Vt("loader",f,se,[F],$,R))[F.route.id];if(pt(xe)&&(xe=await Fa(xe,se.signal,!0)||xe),ie.get(R)===J&&ie.delete(R),!se.signal.aborted){if(Z.has(R)){st(R,ft(void 0));return}if(Pt(xe))if(A>ce){st(R,ft(void 0));return}else{k.add(R),await bt(se,xe,!1,{preventScrollReset:V});return}if(We(xe)){nt(R,_,xe.error);return}K(!pt(xe),"Unhandled fetcher deferred data"),st(R,ft(xe.data))}}async function bt(R,_,T,F){let{submission:$,fetcherSubmission:Q,preventScrollReset:ae,replace:V}=F===void 0?{}:F;_.response.headers.has("X-Remix-Revalidate")&&(X=!0);let G=_.response.headers.get("Location");K(G,"Expected a Location header on the redirect Response"),G=wi(G,new URL(R.url),l);let H=da(f.location,G,{_isRedirect:!0});if(r){let de=!1;if(_.response.headers.has("X-Remix-Reload-Document"))de=!0;else if(ka.test(G)){const Re=e.history.createURL(G);de=Re.origin!==t.location.origin||_t(Re.pathname,l)==null}if(de){V?t.location.replace(G):t.location.assign(G);return}}M=null;let J=V===!0||_.response.headers.has("X-Remix-Replace")?Oe.Replace:Oe.Push,{formMethod:se,formAction:ce,formEncType:Me}=f.navigation;!$&&!Q&&se&&ce&&Me&&($=Di(f.navigation));let xe=$||Q;if(Ed.has(_.response.status)&&xe&&Ve(xe.formMethod))await yt(J,H,{submission:Se({},xe,{formAction:G}),preventScrollReset:ae||j,enableViewTransition:T?L:void 0});else{let de=Jn(H,$);await yt(J,H,{overrideNavigation:de,fetcherSubmission:Q,preventScrollReset:ae||j,enableViewTransition:T?L:void 0})}}async function Vt(R,_,T,F,$,Q){let ae,V={};try{ae=await Td(u,R,_,T,F,$,Q,o,a)}catch(G){return F.forEach(H=>{V[H.route.id]={type:be.error,error:G}}),V}for(let[G,H]of Object.entries(ae))if(Md(H)){let J=H.result;V[G]={type:be.redirect,response:jd(J,T,G,$,l,d.v7_relativeSplatPath)}}else V[G]=await Dd(H);return V}async function Va(R,_,T,F,$){let Q=R.matches,ae=Vt("loader",R,$,T,_,null),V=Promise.all(F.map(async J=>{if(J.matches&&J.match&&J.controller){let ce=(await Vt("loader",R,Mt(e.history,J.path,J.controller.signal),[J.match],J.matches,J.key))[J.match.route.id];return{[J.key]:ce}}else return Promise.resolve({[J.key]:{type:be.error,error:ze(404,{pathname:J.path})}})})),G=await ae,H=(await V).reduce((J,se)=>Object.assign(J,se),{});return await Promise.all([Fd(_,G,$.signal,Q,R.loaderData),Ld(_,H,F)]),{loaderResults:G,fetcherResults:H}}function yn(){X=!0,te.push(...En()),U.forEach((R,_)=>{ie.has(_)&&re.add(_),lt(_)})}function st(R,_,T){T===void 0&&(T={}),f.fetchers.set(R,_),C({fetchers:new Map(f.fetchers)},{flushSync:(T&&T.flushSync)===!0})}function nt(R,_,T,F){F===void 0&&(F={});let $=Rt(f.matches,_);Pr(R),C({errors:{[$.route.id]:T},fetchers:new Map(f.fetchers)},{flushSync:(F&&F.flushSync)===!0})}function Xa(R){return W.set(R,(W.get(R)||0)+1),Z.has(R)&&Z.delete(R),f.fetchers.get(R)||xd}function Pr(R){let _=f.fetchers.get(R);ie.has(R)&&!(_&&_.state==="loading"&&P.has(R))&<(R),U.delete(R),P.delete(R),k.delete(R),d.v7_fetcherPersist&&Z.delete(R),re.delete(R),f.fetchers.delete(R)}function al(R){let _=(W.get(R)||0)-1;_<=0?(W.delete(R),Z.add(R),d.v7_fetcherPersist||Pr(R)):W.set(R,_),C({fetchers:new Map(f.fetchers)})}function lt(R){let _=ie.get(R);_&&(_.abort(),ie.delete(R))}function Ga(R){for(let _ of R){let T=Xa(_),F=ft(T.data);f.fetchers.set(_,F)}}function Ka(){let R=[],_=!1;for(let T of k){let F=f.fetchers.get(T);K(F,"Expected fetcher: "+T),F.state==="loading"&&(k.delete(T),R.push(T),_=!0)}return Ga(R),_}function Ja(R){let _=[];for(let[T,F]of P)if(F<R){let $=f.fetchers.get(T);K($,"Expected fetcher: "+T),$.state==="loading"&&(lt(T),P.delete(T),_.push(T))}return Ga(_),_.length>0}function ol(R,_){let T=f.blockers.get(R)||Ft;return B.get(R)!==_&&B.set(R,_),T}function Za(R){f.blockers.delete(R),B.delete(R)}function Or(R,_){let T=f.blockers.get(R)||Ft;K(T.state==="unblocked"&&_.state==="blocked"||T.state==="blocked"&&_.state==="blocked"||T.state==="blocked"&&_.state==="proceeding"||T.state==="blocked"&&_.state==="unblocked"||T.state==="proceeding"&&_.state==="unblocked","Invalid blocker state transition: "+T.state+" -> "+_.state);let F=new Map(f.blockers);F.set(R,_),C({blockers:F})}function Qa(R){let{currentLocation:_,nextLocation:T,historyAction:F}=R;if(B.size===0)return;B.size>1&&je(!1,"A router only supports one blocker at a time");let $=Array.from(B.entries()),[Q,ae]=$[$.length-1],V=f.blockers.get(Q);if(!(V&&V.state==="proceeding")&&ae({currentLocation:_,nextLocation:T,historyAction:F}))return Q}function bn(R){let _=ze(404,{pathname:R}),T=s||i,{matches:F,route:$}=Ti(T);return En(),{notFoundMatches:F,route:$,error:_}}function En(R){let _=[];return ee.forEach((T,F)=>{(!R||R(F))&&(T.cancel(),_.push(F),ee.delete(F))}),_}function il(R,_,T){if(w=R,S=_,E=T||null,!h&&f.navigation===Kn){h=!0;let F=to(f.location,f.matches);F!=null&&C({restoreScrollPosition:F})}return()=>{w=null,S=null,E=null}}function eo(R,_){return E&&E(R,_.map(F=>Os(F,f.loaderData)))||R.key}function sl(R,_){if(w&&S){let T=eo(R,_);w[T]=S()}}function to(R,_){if(w){let T=eo(R,_),F=w[T];if(typeof F=="number")return F}return null}function _r(R,_,T){if(m)if(R){if(Object.keys(R[0].params).length>0)return{active:!0,matches:Gr(_,T,l,!0)}}else return{active:!0,matches:Gr(_,T,l,!0)||[]};return{active:!1,matches:null}}async function Tr(R,_,T,F){if(!m)return{type:"success",matches:R};let $=R;for(;;){let Q=s==null,ae=s||i,V=o;try{await m({signal:T,path:_,matches:$,fetcherKey:F,patch:(J,se)=>{T.aborted||Si(J,se,ae,V,a)}})}catch(J){return{type:"error",error:J,partialMatches:$}}finally{Q&&!T.aborted&&(i=[...i])}if(T.aborted)return{type:"aborted"};let G=dt(ae,_,l);if(G)return{type:"success",matches:G};let H=Gr(ae,_,l,!0);if(!H||$.length===H.length&&$.every((J,se)=>J.route.id===H[se].route.id))return{type:"success",matches:null};$=H}}function ll(R){o={},s=Qr(R,a,void 0,o)}function ul(R,_){let T=s==null;Si(R,_,s||i,o,a),T&&(i=[...i],C({}))}return x={get basename(){return l},get future(){return d},get state(){return f},get routes(){return i},get window(){return t},initialize:ue,subscribe:Ae,enableScrollRestoration:il,navigate:Be,fetch:tl,revalidate:vt,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:Xa,deleteFetcher:al,dispose:le,getBlocker:ol,deleteBlocker:Za,patchRoutes:ul,_internalFetchControllers:ie,_internalActiveDeferreds:ee,_internalSetRoutes:ll},x}function Rd(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function ha(e,t,r,n,a,o,i,s){let l,u;if(i){l=[];for(let d of t)if(l.push(d),d.route.id===i){u=d;break}}else l=t,u=t[t.length-1];let m=mn(a||".",hn(l,o),_t(e.pathname,r)||e.pathname,s==="path");if(a==null&&(m.search=e.search,m.hash=e.hash),(a==null||a===""||a===".")&&u){let d=La(m.search);if(u.route.index&&!d)m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&d){let b=new URLSearchParams(m.search),y=b.getAll("index");b.delete("index"),y.filter(E=>E).forEach(E=>b.append("index",E));let w=b.toString();m.search=w?"?"+w:""}}return n&&r!=="/"&&(m.pathname=m.pathname==="/"?r:ot([r,m.pathname])),wr(m)}function yi(e,t,r,n){if(!n||!Rd(n))return{path:r};if(n.formMethod&&!kd(n.formMethod))return{path:r,error:ze(405,{method:n.formMethod})};let a=()=>({path:r,error:ze(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=ks(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ve(i))return a();let b=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,w)=>{let[E,S]=w;return""+y+E+"="+S+`
|
|
352
|
-
`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:b}}}else if(n.formEncType==="application/json"){if(!Ve(i))return a();try{let b=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:b,text:void 0}}}catch{return a()}}}K(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=ga(n.formData),u=n.formData;else if(n.body instanceof FormData)l=ga(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=Ri(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=Ri(l)}catch{return a()}let m={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ve(m.formMethod))return{path:r,submission:m};let d=Ge(r);return t&&d.search&&La(d.search)&&l.append("index",""),d.search="?"+l,{path:wr(d),submission:m}}function bi(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(a=>a.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function Ei(e,t,r,n,a,o,i,s,l,u,m,d,b,y,w,E){let S=E?We(E[1])?E[1].error:E[1].data:void 0,h=e.createURL(t.location),c=e.createURL(a),g=r;o&&t.errors?g=bi(r,Object.keys(t.errors)[0],!0):E&&We(E[1])&&(g=bi(r,E[0]));let v=E?E[1].statusCode:void 0,p=i&&v&&v>=400,x=g.filter((O,j)=>{let{route:M}=O;if(M.lazy)return!0;if(M.loader==null)return!1;if(o)return ma(M,t.loaderData,t.errors);if(Pd(t.loaderData,t.matches[j],O)||l.some(N=>N===O.route.id))return!0;let L=t.matches[j],q=O;return xi(O,Se({currentUrl:h,currentParams:L.params,nextUrl:c,nextParams:q.params},n,{actionResult:S,actionStatus:v,defaultShouldRevalidate:p?!1:s||h.pathname+h.search===c.pathname+c.search||h.search!==c.search||Ms(L,q)}))}),f=[];return d.forEach((O,j)=>{if(o||!r.some(Y=>Y.route.id===O.routeId)||m.has(j))return;let M=dt(y,O.path,w);if(!M){f.push({key:j,routeId:O.routeId,path:O.path,matches:null,match:null,controller:null});return}let L=t.fetchers.get(j),q=pr(M,O.path),N=!1;b.has(j)?N=!1:u.has(j)?(u.delete(j),N=!0):L&&L.state!=="idle"&&L.data===void 0?N=s:N=xi(q,Se({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:c,nextParams:r[r.length-1].params},n,{actionResult:S,actionStatus:v,defaultShouldRevalidate:p?!1:s})),N&&f.push({key:j,routeId:O.routeId,path:O.path,matches:M,match:q,controller:new AbortController})}),[x,f]}function ma(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function Pd(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function Ms(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function xi(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Si(e,t,r,n,a){var o;let i;if(e){let u=n[e];K(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),i=u.children}else i=r;let s=t.filter(u=>!i.some(m=>Is(u,m))),l=Qr(s,a,[e||"_","patch",String(((o=i)==null?void 0:o.length)||"0")],n);i.push(...l)}function Is(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(o=>Is(r,o))}):!1}async function Od(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];K(a,"No route found in manifest");let o={};for(let i in n){let l=a[i]!==void 0&&i!=="hasErrorBoundary";je(!l,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!l&&!Bf.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Se({},t(a),{lazy:void 0}))}async function _d(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,i)=>Object.assign(a,{[r[i].route.id]:o}),{})}async function Td(e,t,r,n,a,o,i,s,l,u){let m=o.map(y=>y.route.lazy?Od(y.route,l,s):void 0),d=o.map((y,w)=>{let E=m[w],S=a.some(c=>c.route.id===y.route.id);return Se({},y,{shouldLoad:S,resolve:async c=>(c&&n.method==="GET"&&(y.route.lazy||y.route.loader)&&(S=!0),S?Cd(t,n,y,E,c,u):Promise.resolve({type:be.data,result:void 0}))})}),b=await e({matches:d,request:n,params:o[0].params,fetcherKey:i,context:u});try{await Promise.all(m)}catch{}return b}async function Cd(e,t,r,n,a,o){let i,s,l=u=>{let m,d=new Promise((w,E)=>m=E);s=()=>m(),t.signal.addEventListener("abort",s);let b=w=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):u({request:t,params:r.params,context:o},...w!==void 0?[w]:[]),y=(async()=>{try{return{type:"data",result:await(a?a(E=>b(E)):b())}}catch(w){return{type:"error",result:w}}})();return Promise.race([y,d])};try{let u=r.route[e];if(n)if(u){let m,[d]=await Promise.all([l(u).catch(b=>{m=b}),n]);if(m!==void 0)throw m;i=d}else if(await n,u=r.route[e],u)i=await l(u);else if(e==="action"){let m=new URL(t.url),d=m.pathname+m.search;throw ze(405,{method:t.method,pathname:d,routeId:r.route.id})}else return{type:be.data,result:void 0};else if(u)i=await l(u);else{let m=new URL(t.url),d=m.pathname+m.search;throw ze(404,{pathname:d})}K(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:be.error,result:u}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function Dd(e){let{result:t,type:r}=e;if(Fs(t)){let d;try{let b=t.headers.get("Content-Type");b&&/\bapplication\/json\b/.test(b)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(b){return{type:be.error,error:b}}return r===be.error?{type:be.error,error:new pa(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:be.data,data:d,statusCode:t.status,headers:t.headers}}if(r===be.error){if(Ci(t)){var n,a;if(t.data instanceof Error){var o,i;return{type:be.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:be.error,error:new pa(((n=t.init)==null?void 0:n.status)||500,void 0,t.data),statusCode:Wt(t)?t.status:void 0,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:be.error,error:t,statusCode:Wt(t)?t.status:void 0}}if(Id(t)){var s,l;return{type:be.deferred,deferredData:t,statusCode:(s=t.init)==null?void 0:s.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(Ci(t)){var u,m;return{type:be.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(m=t.init)!=null&&m.headers?new Headers(t.init.headers):void 0}}return{type:be.data,data:t}}function jd(e,t,r,n,a,o){let i=e.headers.get("Location");if(K(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ka.test(i)){let s=n.slice(0,n.findIndex(l=>l.route.id===r)+1);i=ha(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function wi(e,t,r){if(ka.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=_t(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Mt(e,t,r,n){let a=e.createURL(ks(t)).toString(),o={signal:r};if(n&&Ve(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=ga(n.formData):o.body=n.formData}return new Request(a,o)}function ga(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Ri(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Nd(e,t,r,n,a){let o={},i=null,s,l=!1,u={},m=r&&We(r[1])?r[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let b=d.route.id,y=t[b];if(K(!Pt(y),"Cannot handle redirect results in processLoaderData"),We(y)){let w=y.error;m!==void 0&&(w=m,m=void 0),i=i||{};{let E=Rt(e,b);i[E.route.id]==null&&(i[E.route.id]=w)}o[b]=void 0,l||(l=!0,s=Wt(y.error)?y.error.status:500),y.headers&&(u[b]=y.headers)}else pt(y)?(n.set(b,y.deferredData),o[b]=y.deferredData.data,y.statusCode!=null&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(u[b]=y.headers)):(o[b]=y.data,y.statusCode&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(u[b]=y.headers))}),m!==void 0&&r&&(i={[r[0]]:m},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:s||200,loaderHeaders:u}}function Pi(e,t,r,n,a,o,i){let{loaderData:s,errors:l}=Nd(t,r,n,i);return a.forEach(u=>{let{key:m,match:d,controller:b}=u,y=o[m];if(K(y,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(We(y)){let w=Rt(e.matches,d==null?void 0:d.route.id);l&&l[w.route.id]||(l=Se({},l,{[w.route.id]:y.error})),e.fetchers.delete(m)}else if(Pt(y))K(!1,"Unhandled fetcher revalidation redirect");else if(pt(y))K(!1,"Unhandled fetcher deferred data");else{let w=ft(y.data);e.fetchers.set(m,w)}}),{loaderData:s,errors:l}}function Oi(e,t,r,n){let a=Se({},t);for(let o of r){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function _i(e){return e?We(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Rt(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function Ti(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ze(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",a&&r&&n?l="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",l='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new pa(e||500,s,new Error(l),!0)}function $r(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Pt(a))return{key:n,result:a}}}function ks(e){let t=typeof e=="string"?Ge(e):e;return wr(Se({},t,{hash:""}))}function Ad(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Md(e){return Fs(e.result)&&bd.has(e.result.status)}function pt(e){return e.type===be.deferred}function We(e){return e.type===be.error}function Pt(e){return(e&&e.type)===be.redirect}function Ci(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Id(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Fs(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function kd(e){return yd.has(e.toLowerCase())}function Ve(e){return gd.has(e.toLowerCase())}async function Fd(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[s,l]=o[i],u=e.find(b=>(b==null?void 0:b.route.id)===s);if(!u)continue;let m=n.find(b=>b.route.id===u.route.id),d=m!=null&&!Ms(m,u)&&(a&&a[u.route.id])!==void 0;pt(l)&&d&&await Fa(l,r,!1).then(b=>{b&&(t[s]=b)})}}async function Ld(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],s=t[a];e.find(u=>(u==null?void 0:u.route.id)===o)&&pt(s)&&(K(i,"Expected an AbortController for revalidating fetcher deferred result"),await Fa(s,i.signal,!0).then(u=>{u&&(t[a]=u)}))}}async function Fa(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:be.data,data:e.deferredData.unwrappedData}}catch(a){return{type:be.error,error:a}}return{type:be.data,data:e.deferredData.data}}}function La(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function pr(e,t){let r=typeof t=="string"?Ge(t).search:t.search;if(e[e.length-1].route.index&&La(r||""))return e[e.length-1];let n=js(e);return n[n.length-1]}function Di(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function Jn(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function zd(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function lr(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function $d(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ft(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ud(e,t){try{let r=e.sessionStorage.getItem(As);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function Wd(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(As,JSON.stringify(r))}catch(n){je(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/**
|
|
351
|
+
*/function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Se.apply(this,arguments)}var Oe;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Oe||(Oe={}));function Ps(e){e===void 0&&(e={});let{initialEntries:t=["/"],initialIndex:r,v5Compat:n=!1}=e,a;a=t.map((y,w)=>m(y,typeof y=="string"?null:y.state,w===0?"default":void 0));let o=l(r??a.length-1),i=Oe.Pop,s=null;function l(y){return Math.min(Math.max(y,0),a.length-1)}function u(){return a[o]}function m(y,w,E){w===void 0&&(w=null);let S=da(a?u().pathname:"/",y,w,E);return je(S.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(y)),S}function d(y){return typeof y=="string"?y:wr(y)}return{get index(){return o},get action(){return i},get location(){return u()},createHref:d,createURL(y){return new URL(d(y),"http://localhost")},encodeLocation(y){let w=typeof y=="string"?Ge(y):y;return{pathname:w.pathname||"",search:w.search||"",hash:w.hash||""}},push(y,w){i=Oe.Push;let E=m(y,w);o+=1,a.splice(o,a.length,E),n&&s&&s({action:i,location:E,delta:1})},replace(y,w){i=Oe.Replace;let E=m(y,w);a[o]=E,n&&s&&s({action:i,location:E,delta:0})},go(y){i=Oe.Pop;let w=l(o+y),E=a[w];o=w,s&&s({action:i,location:E,delta:y})},listen(y){return s=y,()=>{s=null}}}}function K(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function je(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qf(){return Math.random().toString(36).substr(2,8)}function da(e,t,r,n){return r===void 0&&(r=null),Se({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ge(t):t,{state:r,key:t&&t.key||n||qf()})}function wr(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Ge(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var be;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(be||(be={}));const Bf=new Set(["lazy","caseSensitive","path","id","index","children"]);function Hf(e){return e.index===!0}function Qr(e,t,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),e.map((a,o)=>{let i=[...r,String(o)],s=typeof a.id=="string"?a.id:i.join("-");if(K(a.index!==!0||!a.children,"Cannot specify children on an index route"),K(!n[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),Hf(a)){let l=Se({},a,t(a),{id:s});return n[s]=l,l}else{let l=Se({},a,t(a),{id:s,children:void 0});return n[s]=l,a.children&&(l.children=Qr(a.children,t,i,n)),l}})}function dt(e,t,r){return r===void 0&&(r="/"),Gr(e,t,r,!1)}function Gr(e,t,r,n){let a=typeof t=="string"?Ge(t):t,o=_t(a.pathname||"/",r);if(o==null)return null;let i=_s(e);Yf(i);let s=null;for(let l=0;s==null&&l<i.length;++l){let u=Cs(o);s=td(i[l],u,n)}return s}function Os(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}function _s(e,t,r,n){t===void 0&&(t=[]),r===void 0&&(r=[]),n===void 0&&(n="");let a=(o,i,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};l.relativePath.startsWith("/")&&(K(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let u=ot([n,l.relativePath]),m=r.concat(l);o.children&&o.children.length>0&&(K(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),_s(o.children,t,m,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:Qf(u,o.index),routesMeta:m})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))a(o,i);else for(let l of Ts(o.path))a(o,i,l)}),t}function Ts(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),o=r.replace(/\?$/,"");if(n.length===0)return a?[o,""]:[o];let i=Ts(n.join("/")),s=[];return s.push(...i.map(l=>l===""?o:[o,l].join("/"))),a&&s.push(...i),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Yf(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:ed(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Vf=/^:[\w-]+$/,Xf=3,Gf=2,Kf=1,Jf=10,Zf=-2,gi=e=>e==="*";function Qf(e,t){let r=e.split("/"),n=r.length;return r.some(gi)&&(n+=Zf),t&&(n+=Gf),r.filter(a=>!gi(a)).reduce((a,o)=>a+(Vf.test(o)?Xf:o===""?Kf:Jf),n)}function ed(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function td(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let s=0;s<n.length;++s){let l=n[s],u=s===n.length-1,m=o==="/"?t:t.slice(o.length)||"/",d=en({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},m),b=l.route;if(!d&&u&&r&&!n[n.length-1].route.index&&(d=en({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},m)),!d)return null;Object.assign(a,d.params),i.push({params:a,pathname:ot([o,d.pathname]),pathnameBase:id(ot([o,d.pathnameBase])),route:b}),d.pathnameBase!=="/"&&(o=ot([o,d.pathnameBase]))}return i}function rd(e,t){t===void 0&&(t={});let r=e;r.endsWith("*")&&r!=="*"&&!r.endsWith("/*")&&(je(!1,'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+r.replace(/\*$/,"/*")+'".')),r=r.replace(/\*$/,"/*"));const n=r.startsWith("/")?"/":"",a=i=>i==null?"":typeof i=="string"?i:String(i),o=r.split(/\/+/).map((i,s,l)=>{if(s===l.length-1&&i==="*")return a(t["*"]);const m=i.match(/^:([\w-]+)(\??)$/);if(m){const[,d,b]=m;let y=t[d];return K(b==="?"||y!=null,'Missing ":'+d+'" param'),a(y)}return i.replace(/\?$/g,"")}).filter(i=>!!i);return n+o.join("/")}function en(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=nd(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let o=a[0],i=o.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:n.reduce((u,m,d)=>{let{paramName:b,isOptional:y}=m;if(b==="*"){let E=s[d]||"";i=o.slice(0,o.length-E.length).replace(/(.)\/+$/,"$1")}const w=s[d];return y&&!w?u[b]=void 0:u[b]=(w||"").replace(/%2F/g,"/"),u},{}),pathname:o,pathnameBase:i,pattern:e}}function nd(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),je(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function Cs(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return je(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function _t(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const ad=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,od=e=>ad.test(e);function Ds(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?Ge(e):e,o;if(r)if(od(r))o=r;else{if(r.includes("//")){let i=r;r=r.replace(/\/\/+/g,"/"),je(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+r))}r.startsWith("/")?o=vi(r.substring(1),"/"):o=vi(r,t)}else o=t;return{pathname:o,search:sd(n),hash:ld(a)}}function vi(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function Gn(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function js(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function hn(e,t){let r=js(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function mn(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=Ge(e):(a=Se({},e),K(!a.pathname||!a.pathname.includes("?"),Gn("?","pathname","search",a)),K(!a.pathname||!a.pathname.includes("#"),Gn("#","pathname","hash",a)),K(!a.search||!a.search.includes("#"),Gn("#","search","hash",a)));let o=e===""||a.pathname==="",i=o?"/":a.pathname,s;if(i==null)s=r;else{let d=t.length-1;if(!n&&i.startsWith("..")){let b=i.split("/");for(;b[0]==="..";)b.shift(),d-=1;a.pathname=b.join("/")}s=d>=0?t[d]:"/"}let l=Ds(a,s),u=i&&i!=="/"&&i.endsWith("/"),m=(o||i===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(u||m)&&(l.pathname+="/"),l}const ot=e=>e.join("/").replace(/\/\/+/g,"/"),id=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),sd=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ld=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,ud=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r,a=new Headers(n.headers);return a.has("Content-Type")||a.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(t),Se({},n,{headers:a}))};class tn extends Error{}class cd{constructor(t,r){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],K(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let n;this.abortPromise=new Promise((o,i)=>n=i),this.controller=new AbortController;let a=()=>n(new tn("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",a),this.controller.signal.addEventListener("abort",a),this.data=Object.entries(t).reduce((o,i)=>{let[s,l]=i;return Object.assign(o,{[s]:this.trackPromise(s,l)})},{}),this.done&&this.unlistenAbortSignal(),this.init=r}trackPromise(t,r){if(!(r instanceof Promise))return r;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let n=Promise.race([r,this.abortPromise]).then(a=>this.onSettle(n,t,void 0,a),a=>this.onSettle(n,t,a));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(t,r,n,a){if(this.controller.signal.aborted&&n instanceof tn)return this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>n}),Promise.reject(n);if(this.pendingKeysSet.delete(r),this.done&&this.unlistenAbortSignal(),n===void 0&&a===void 0){let o=new Error('Deferred data for key "'+r+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(t,"_error",{get:()=>o}),this.emit(!1,r),Promise.reject(o)}return a===void 0?(Object.defineProperty(t,"_error",{get:()=>n}),this.emit(!1,r),Promise.reject(n)):(Object.defineProperty(t,"_data",{get:()=>a}),this.emit(!1,r),a)}emit(t,r){this.subscribers.forEach(n=>n(t,r))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,r)=>this.pendingKeysSet.delete(r)),this.emit(!0)}async resolveData(t){let r=!1;if(!this.done){let n=()=>this.cancel();t.addEventListener("abort",n),r=await new Promise(a=>{this.subscribe(o=>{t.removeEventListener("abort",n),(o||this.done)&&a(o)})})}return r}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return K(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,r)=>{let[n,a]=r;return Object.assign(t,{[n]:dd(a)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function fd(e){return e instanceof Promise&&e._tracked===!0}function dd(e){if(!fd(e))return e;if(e._error)throw e._error;return e._data}const pd=function(t,r){r===void 0&&(r={});let n=typeof r=="number"?{status:r}:r;return new cd(t,n)},Ia=function(t,r){r===void 0&&(r=302);let n=r;typeof n=="number"?n={status:n}:typeof n.status>"u"&&(n.status=302);let a=new Headers(n.headers);return a.set("Location",t),new Response(null,Se({},n,{headers:a}))},hd=(e,t)=>{let r=Ia(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},md=(e,t)=>{let r=Ia(e,t);return r.headers.set("X-Remix-Replace","true"),r};class pa{constructor(t,r,n,a){a===void 0&&(a=!1),this.status=t,this.statusText=r||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function Wt(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ns=["post","put","patch","delete"],gd=new Set(Ns),vd=["get",...Ns],yd=new Set(vd),bd=new Set([301,302,303,307,308]),Ed=new Set([307,308]),Kn={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},xd={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Ft={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ka=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sd=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),As="remix-router-transitions";function wd(e){const t=e.window?e.window:typeof window<"u"?window:void 0,r=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",n=!r;K(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let a;if(e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let R=e.detectErrorBoundary;a=_=>({hasErrorBoundary:R(_)})}else a=Sd;let o={},i=Qr(e.routes,a,void 0,o),s,l=e.basename||"/",u=e.dataStrategy||_d,m=e.patchRoutesOnNavigation,d=Se({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),b=null,y=new Set,w=null,E=null,S=null,h=e.hydrationData!=null,c=dt(i,e.history.location,l),g=!1,v=null;if(c==null&&!m){let R=ze(404,{pathname:e.history.location.pathname}),{matches:_,route:T}=Ti(i);c=_,v={[T.id]:R}}c&&!e.hydrationData&&_r(c,i,e.history.location.pathname).active&&(c=null);let p;if(c)if(c.some(R=>R.route.lazy))p=!1;else if(!c.some(R=>R.route.loader))p=!0;else if(d.v7_partialHydration){let R=e.hydrationData?e.hydrationData.loaderData:null,_=e.hydrationData?e.hydrationData.errors:null;if(_){let T=c.findIndex(I=>_[I.route.id]!==void 0);p=c.slice(0,T+1).every(I=>!ma(I.route,R,_))}else p=c.every(T=>!ma(T.route,R,_))}else p=e.hydrationData!=null;else if(p=!1,c=[],d.v7_partialHydration){let R=_r(null,i,e.history.location.pathname);R.active&&R.matches&&(g=!0,c=R.matches)}let x,f={historyAction:e.history.action,location:e.history.location,matches:c,initialized:p,navigation:Kn,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||v,fetchers:new Map,blockers:new Map},P=Oe.Pop,j=!1,A,k=!1,B=new Map,U=null,L=!1,J=!1,X=[],ue=new Set,Z=new Map,we=0,N=-1,O=new Map,F=new Set,z=new Map,W=new Map,ee=new Set,te=new Map,H=new Map,ne;function le(){if(b=e.history.listen(R=>{let{action:_,location:T,delta:I}=R;if(ne){ne(),ne=void 0;return}je(H.size===0||I!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let q=Qa({currentLocation:f.location,nextLocation:T,historyAction:_});if(q&&I!=null){let re=new Promise(ae=>{ne=ae});e.history.go(I*-1),Or(q,{state:"blocked",location:T,proceed(){Or(q,{state:"proceeding",proceed:void 0,reset:void 0,location:T}),re.then(()=>e.history.go(I))},reset(){let ae=new Map(f.blockers);ae.set(q,Ft),C({blockers:ae})}});return}return yt(_,T)}),r){Ud(t,B);let R=()=>Wd(t,B);t.addEventListener("pagehide",R),U=()=>t.removeEventListener("pagehide",R)}return f.initialized||yt(Oe.Pop,f.location,{initialHydration:!0}),x}function se(){b&&b(),U&&U(),y.clear(),A&&A.abort(),f.fetchers.forEach((R,_)=>Pr(_)),f.blockers.forEach((R,_)=>Za(_))}function Ae(R){return y.add(R),()=>y.delete(R)}function C(R,_){_===void 0&&(_={}),f=Se({},f,R);let T=[],I=[];d.v7_fetcherPersist&&f.fetchers.forEach((q,re)=>{q.state==="idle"&&(ee.has(re)?I.push(re):T.push(re))}),ee.forEach(q=>{!f.fetchers.has(q)&&!Z.has(q)&&I.push(q)}),[...y].forEach(q=>q(f,{deletedFetchers:I,viewTransitionOpts:_.viewTransitionOpts,flushSync:_.flushSync===!0})),d.v7_fetcherPersist?(T.forEach(q=>f.fetchers.delete(q)),I.forEach(q=>Pr(q))):I.forEach(q=>ee.delete(q))}function _e(R,_,T){var I,q;let{flushSync:re}=T===void 0?{}:T,ae=f.actionData!=null&&f.navigation.formMethod!=null&&Ve(f.navigation.formMethod)&&f.navigation.state==="loading"&&((I=R.state)==null?void 0:I._isRedirect)!==!0,V;_.actionData?Object.keys(_.actionData).length>0?V=_.actionData:V=null:ae?V=f.actionData:V=null;let G=_.loaderData?Oi(f.loaderData,_.loaderData,_.matches||[],_.errors):f.loaderData,Y=f.blockers;Y.size>0&&(Y=new Map(Y),Y.forEach((ce,Me)=>Y.set(Me,Ft)));let Q=j===!0||f.navigation.formMethod!=null&&Ve(f.navigation.formMethod)&&((q=R.state)==null?void 0:q._isRedirect)!==!0;s&&(i=s,s=void 0),L||P===Oe.Pop||(P===Oe.Push?e.history.push(R,R.state):P===Oe.Replace&&e.history.replace(R,R.state));let ie;if(P===Oe.Pop){let ce=B.get(f.location.pathname);ce&&ce.has(R.pathname)?ie={currentLocation:f.location,nextLocation:R}:B.has(R.pathname)&&(ie={currentLocation:R,nextLocation:f.location})}else if(k){let ce=B.get(f.location.pathname);ce?ce.add(R.pathname):(ce=new Set([R.pathname]),B.set(f.location.pathname,ce)),ie={currentLocation:f.location,nextLocation:R}}C(Se({},_,{actionData:V,loaderData:G,historyAction:P,location:R,initialized:!0,navigation:Kn,revalidation:"idle",restoreScrollPosition:to(R,_.matches||f.matches),preventScrollReset:Q,blockers:Y}),{viewTransitionOpts:ie,flushSync:re===!0}),P=Oe.Pop,j=!1,k=!1,L=!1,J=!1,X=[]}async function Be(R,_){if(typeof R=="number"){e.history.go(R);return}let T=ha(f.location,f.matches,l,d.v7_prependBasename,R,d.v7_relativeSplatPath,_==null?void 0:_.fromRouteId,_==null?void 0:_.relative),{path:I,submission:q,error:re}=yi(d.v7_normalizeFormMethod,!1,T,_),ae=f.location,V=da(f.location,I,_&&_.state);V=Se({},V,e.history.encodeLocation(V));let G=_&&_.replace!=null?_.replace:void 0,Y=Oe.Push;G===!0?Y=Oe.Replace:G===!1||q!=null&&Ve(q.formMethod)&&q.formAction===f.location.pathname+f.location.search&&(Y=Oe.Replace);let Q=_&&"preventScrollReset"in _?_.preventScrollReset===!0:void 0,ie=(_&&_.flushSync)===!0,ce=Qa({currentLocation:ae,nextLocation:V,historyAction:Y});if(ce){Or(ce,{state:"blocked",location:V,proceed(){Or(ce,{state:"proceeding",proceed:void 0,reset:void 0,location:V}),Be(R,_)},reset(){let Me=new Map(f.blockers);Me.set(ce,Ft),C({blockers:Me})}});return}return await yt(Y,V,{submission:q,pendingError:re,preventScrollReset:Q,replace:_&&_.replace,enableViewTransition:_&&_.viewTransition,flushSync:ie})}function vt(){if(yn(),C({revalidation:"loading"}),f.navigation.state!=="submitting"){if(f.navigation.state==="idle"){yt(f.historyAction,f.location,{startUninterruptedRevalidation:!0});return}yt(P||f.historyAction,f.navigation.location,{overrideNavigation:f.navigation,enableViewTransition:k===!0})}}async function yt(R,_,T){A&&A.abort(),A=null,P=R,L=(T&&T.startUninterruptedRevalidation)===!0,sl(f.location,f.matches),j=(T&&T.preventScrollReset)===!0,k=(T&&T.enableViewTransition)===!0;let I=s||i,q=T&&T.overrideNavigation,re=T!=null&&T.initialHydration&&f.matches&&f.matches.length>0&&!g?f.matches:dt(I,_,l),ae=(T&&T.flushSync)===!0;if(re&&f.initialized&&!J&&Ad(f.location,_)&&!(T&&T.submission&&Ve(T.submission.formMethod))){_e(_,{matches:re},{flushSync:ae});return}let V=_r(re,I,_.pathname);if(V.active&&V.matches&&(re=V.matches),!re){let{error:xe,notFoundMatches:de,route:Re}=bn(_.pathname);_e(_,{matches:de,loaderData:{},errors:{[Re.id]:xe}},{flushSync:ae});return}A=new AbortController;let G=Mt(e.history,_,A.signal,T&&T.submission),Y;if(T&&T.pendingError)Y=[Rt(re).route.id,{type:be.error,error:T.pendingError}];else if(T&&T.submission&&Ve(T.submission.formMethod)){let xe=await Zs(G,_,T.submission,re,V.active,{replace:T.replace,flushSync:ae});if(xe.shortCircuited)return;if(xe.pendingActionResult){let[de,Re]=xe.pendingActionResult;if(We(Re)&&Wt(Re.error)&&Re.error.status===404){A=null,_e(_,{matches:xe.matches,loaderData:{},errors:{[de]:Re.error}});return}}re=xe.matches||re,Y=xe.pendingActionResult,q=Jn(_,T.submission),ae=!1,V.active=!1,G=Mt(e.history,G.url,G.signal)}let{shortCircuited:Q,matches:ie,loaderData:ce,errors:Me}=await Qs(G,_,re,V.active,q,T&&T.submission,T&&T.fetcherSubmission,T&&T.replace,T&&T.initialHydration===!0,ae,Y);Q||(A=null,_e(_,Se({matches:ie||re},_i(Y),{loaderData:ce,errors:Me})))}async function Zs(R,_,T,I,q,re){re===void 0&&(re={}),yn();let ae=zd(_,T);if(C({navigation:ae},{flushSync:re.flushSync===!0}),q){let Y=await Tr(I,_.pathname,R.signal);if(Y.type==="aborted")return{shortCircuited:!0};if(Y.type==="error"){let Q=Rt(Y.partialMatches).route.id;return{matches:Y.partialMatches,pendingActionResult:[Q,{type:be.error,error:Y.error}]}}else if(Y.matches)I=Y.matches;else{let{notFoundMatches:Q,error:ie,route:ce}=bn(_.pathname);return{matches:Q,pendingActionResult:[ce.id,{type:be.error,error:ie}]}}}let V,G=pr(I,_);if(!G.route.action&&!G.route.lazy)V={type:be.error,error:ze(405,{method:R.method,pathname:_.pathname,routeId:G.route.id})};else if(V=(await Vt("action",f,R,[G],I,null))[G.route.id],R.signal.aborted)return{shortCircuited:!0};if(Pt(V)){let Y;return re&&re.replace!=null?Y=re.replace:Y=wi(V.response.headers.get("Location"),new URL(R.url),l)===f.location.pathname+f.location.search,await bt(R,V,!0,{submission:T,replace:Y}),{shortCircuited:!0}}if(pt(V))throw ze(400,{type:"defer-action"});if(We(V)){let Y=Rt(I,G.route.id);return(re&&re.replace)!==!0&&(P=Oe.Push),{matches:I,pendingActionResult:[Y.route.id,V]}}return{matches:I,pendingActionResult:[G.route.id,V]}}async function Qs(R,_,T,I,q,re,ae,V,G,Y,Q){let ie=q||Jn(_,re),ce=re||ae||Di(ie),Me=!L&&(!d.v7_partialHydration||!G);if(I){if(Me){let Pe=Ya(Q);C(Se({navigation:ie},Pe!==void 0?{actionData:Pe}:{}),{flushSync:Y})}let fe=await Tr(T,_.pathname,R.signal);if(fe.type==="aborted")return{shortCircuited:!0};if(fe.type==="error"){let Pe=Rt(fe.partialMatches).route.id;return{matches:fe.partialMatches,loaderData:{},errors:{[Pe]:fe.error}}}else if(fe.matches)T=fe.matches;else{let{error:Pe,notFoundMatches:jt,route:Kt}=bn(_.pathname);return{matches:jt,loaderData:{},errors:{[Kt.id]:Pe}}}}let xe=s||i,[de,Re]=Ei(e.history,f,T,ce,_,d.v7_partialHydration&&G===!0,d.v7_skipActionErrorRevalidation,J,X,ue,ee,z,F,xe,l,Q);if(En(fe=>!(T&&T.some(Pe=>Pe.route.id===fe))||de&&de.some(Pe=>Pe.route.id===fe)),N=++we,de.length===0&&Re.length===0){let fe=Ka();return _e(_,Se({matches:T,loaderData:{},errors:Q&&We(Q[1])?{[Q[0]]:Q[1].error}:null},_i(Q),fe?{fetchers:new Map(f.fetchers)}:{}),{flushSync:Y}),{shortCircuited:!0}}if(Me){let fe={};if(!I){fe.navigation=ie;let Pe=Ya(Q);Pe!==void 0&&(fe.actionData=Pe)}Re.length>0&&(fe.fetchers=el(Re)),C(fe,{flushSync:Y})}Re.forEach(fe=>{lt(fe.key),fe.controller&&Z.set(fe.key,fe.controller)});let Dt=()=>Re.forEach(fe=>lt(fe.key));A&&A.signal.addEventListener("abort",Dt);let{loaderResults:Xt,fetcherResults:at}=await Va(f,T,de,Re,R);if(R.signal.aborted)return{shortCircuited:!0};A&&A.signal.removeEventListener("abort",Dt),Re.forEach(fe=>Z.delete(fe.key));let Ke=$r(Xt);if(Ke)return await bt(R,Ke.result,!0,{replace:V}),{shortCircuited:!0};if(Ke=$r(at),Ke)return F.add(Ke.key),await bt(R,Ke.result,!0,{replace:V}),{shortCircuited:!0};let{loaderData:xn,errors:Gt}=Pi(f,T,Xt,Q,Re,at,te);te.forEach((fe,Pe)=>{fe.subscribe(jt=>{(jt||fe.done)&&te.delete(Pe)})}),d.v7_partialHydration&&G&&f.errors&&(Gt=Se({},f.errors,Gt));let Et=Ka(),Cr=Ja(N),Dr=Et||Cr||Re.length>0;return Se({matches:T,loaderData:xn,errors:Gt},Dr?{fetchers:new Map(f.fetchers)}:{})}function Ya(R){if(R&&!We(R[1]))return{[R[0]]:R[1].data};if(f.actionData)return Object.keys(f.actionData).length===0?null:f.actionData}function el(R){return R.forEach(_=>{let T=f.fetchers.get(_.key),I=lr(void 0,T?T.data:void 0);f.fetchers.set(_.key,I)}),new Map(f.fetchers)}function tl(R,_,T,I){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");lt(R);let q=(I&&I.flushSync)===!0,re=s||i,ae=ha(f.location,f.matches,l,d.v7_prependBasename,T,d.v7_relativeSplatPath,_,I==null?void 0:I.relative),V=dt(re,ae,l),G=_r(V,re,ae);if(G.active&&G.matches&&(V=G.matches),!V){nt(R,_,ze(404,{pathname:ae}),{flushSync:q});return}let{path:Y,submission:Q,error:ie}=yi(d.v7_normalizeFormMethod,!0,ae,I);if(ie){nt(R,_,ie,{flushSync:q});return}let ce=pr(V,Y),Me=(I&&I.preventScrollReset)===!0;if(Q&&Ve(Q.formMethod)){rl(R,_,Y,ce,V,G.active,q,Me,Q);return}z.set(R,{routeId:_,path:Y}),nl(R,_,Y,ce,V,G.active,q,Me,Q)}async function rl(R,_,T,I,q,re,ae,V,G){yn(),z.delete(R);function Y(Ce){if(!Ce.route.action&&!Ce.route.lazy){let Nt=ze(405,{method:G.formMethod,pathname:T,routeId:_});return nt(R,_,Nt,{flushSync:ae}),!0}return!1}if(!re&&Y(I))return;let Q=f.fetchers.get(R);st(R,$d(G,Q),{flushSync:ae});let ie=new AbortController,ce=Mt(e.history,T,ie.signal,G);if(re){let Ce=await Tr(q,new URL(ce.url).pathname,ce.signal,R);if(Ce.type==="aborted")return;if(Ce.type==="error"){nt(R,_,Ce.error,{flushSync:ae});return}else if(Ce.matches){if(q=Ce.matches,I=pr(q,T),Y(I))return}else{nt(R,_,ze(404,{pathname:T}),{flushSync:ae});return}}Z.set(R,ie);let Me=we,de=(await Vt("action",f,ce,[I],q,R))[I.route.id];if(ce.signal.aborted){Z.get(R)===ie&&Z.delete(R);return}if(d.v7_fetcherPersist&&ee.has(R)){if(Pt(de)||We(de)){st(R,ft(void 0));return}}else{if(Pt(de))if(Z.delete(R),N>Me){st(R,ft(void 0));return}else return F.add(R),st(R,lr(G)),bt(ce,de,!1,{fetcherSubmission:G,preventScrollReset:V});if(We(de)){nt(R,_,de.error);return}}if(pt(de))throw ze(400,{type:"defer-action"});let Re=f.navigation.location||f.location,Dt=Mt(e.history,Re,ie.signal),Xt=s||i,at=f.navigation.state!=="idle"?dt(Xt,f.navigation.location,l):f.matches;K(at,"Didn't find any matches after fetcher action");let Ke=++we;O.set(R,Ke);let xn=lr(G,de.data);f.fetchers.set(R,xn);let[Gt,Et]=Ei(e.history,f,at,G,Re,!1,d.v7_skipActionErrorRevalidation,J,X,ue,ee,z,F,Xt,l,[I.route.id,de]);Et.filter(Ce=>Ce.key!==R).forEach(Ce=>{let Nt=Ce.key,ro=f.fetchers.get(Nt),cl=lr(void 0,ro?ro.data:void 0);f.fetchers.set(Nt,cl),lt(Nt),Ce.controller&&Z.set(Nt,Ce.controller)}),C({fetchers:new Map(f.fetchers)});let Cr=()=>Et.forEach(Ce=>lt(Ce.key));ie.signal.addEventListener("abort",Cr);let{loaderResults:Dr,fetcherResults:fe}=await Va(f,at,Gt,Et,Dt);if(ie.signal.aborted)return;ie.signal.removeEventListener("abort",Cr),O.delete(R),Z.delete(R),Et.forEach(Ce=>Z.delete(Ce.key));let Pe=$r(Dr);if(Pe)return bt(Dt,Pe.result,!1,{preventScrollReset:V});if(Pe=$r(fe),Pe)return F.add(Pe.key),bt(Dt,Pe.result,!1,{preventScrollReset:V});let{loaderData:jt,errors:Kt}=Pi(f,at,Dr,void 0,Et,fe,te);if(f.fetchers.has(R)){let Ce=ft(de.data);f.fetchers.set(R,Ce)}Ja(Ke),f.navigation.state==="loading"&&Ke>N?(K(P,"Expected pending action"),A&&A.abort(),_e(f.navigation.location,{matches:at,loaderData:jt,errors:Kt,fetchers:new Map(f.fetchers)})):(C({errors:Kt,loaderData:Oi(f.loaderData,jt,at,Kt),fetchers:new Map(f.fetchers)}),J=!1)}async function nl(R,_,T,I,q,re,ae,V,G){let Y=f.fetchers.get(R);st(R,lr(G,Y?Y.data:void 0),{flushSync:ae});let Q=new AbortController,ie=Mt(e.history,T,Q.signal);if(re){let de=await Tr(q,new URL(ie.url).pathname,ie.signal,R);if(de.type==="aborted")return;if(de.type==="error"){nt(R,_,de.error,{flushSync:ae});return}else if(de.matches)q=de.matches,I=pr(q,T);else{nt(R,_,ze(404,{pathname:T}),{flushSync:ae});return}}Z.set(R,Q);let ce=we,xe=(await Vt("loader",f,ie,[I],q,R))[I.route.id];if(pt(xe)&&(xe=await Fa(xe,ie.signal,!0)||xe),Z.get(R)===Q&&Z.delete(R),!ie.signal.aborted){if(ee.has(R)){st(R,ft(void 0));return}if(Pt(xe))if(N>ce){st(R,ft(void 0));return}else{F.add(R),await bt(ie,xe,!1,{preventScrollReset:V});return}if(We(xe)){nt(R,_,xe.error);return}K(!pt(xe),"Unhandled fetcher deferred data"),st(R,ft(xe.data))}}async function bt(R,_,T,I){let{submission:q,fetcherSubmission:re,preventScrollReset:ae,replace:V}=I===void 0?{}:I;_.response.headers.has("X-Remix-Revalidate")&&(J=!0);let G=_.response.headers.get("Location");K(G,"Expected a Location header on the redirect Response"),G=wi(G,new URL(R.url),l);let Y=da(f.location,G,{_isRedirect:!0});if(r){let de=!1;if(_.response.headers.has("X-Remix-Reload-Document"))de=!0;else if(ka.test(G)){const Re=e.history.createURL(G);de=Re.origin!==t.location.origin||_t(Re.pathname,l)==null}if(de){V?t.location.replace(G):t.location.assign(G);return}}A=null;let Q=V===!0||_.response.headers.has("X-Remix-Replace")?Oe.Replace:Oe.Push,{formMethod:ie,formAction:ce,formEncType:Me}=f.navigation;!q&&!re&&ie&&ce&&Me&&(q=Di(f.navigation));let xe=q||re;if(Ed.has(_.response.status)&&xe&&Ve(xe.formMethod))await yt(Q,Y,{submission:Se({},xe,{formAction:G}),preventScrollReset:ae||j,enableViewTransition:T?k:void 0});else{let de=Jn(Y,q);await yt(Q,Y,{overrideNavigation:de,fetcherSubmission:re,preventScrollReset:ae||j,enableViewTransition:T?k:void 0})}}async function Vt(R,_,T,I,q,re){let ae,V={};try{ae=await Td(u,R,_,T,I,q,re,o,a)}catch(G){return I.forEach(Y=>{V[Y.route.id]={type:be.error,error:G}}),V}for(let[G,Y]of Object.entries(ae))if(Md(Y)){let Q=Y.result;V[G]={type:be.redirect,response:jd(Q,T,G,q,l,d.v7_relativeSplatPath)}}else V[G]=await Dd(Y);return V}async function Va(R,_,T,I,q){let re=R.matches,ae=Vt("loader",R,q,T,_,null),V=Promise.all(I.map(async Q=>{if(Q.matches&&Q.match&&Q.controller){let ce=(await Vt("loader",R,Mt(e.history,Q.path,Q.controller.signal),[Q.match],Q.matches,Q.key))[Q.match.route.id];return{[Q.key]:ce}}else return Promise.resolve({[Q.key]:{type:be.error,error:ze(404,{pathname:Q.path})}})})),G=await ae,Y=(await V).reduce((Q,ie)=>Object.assign(Q,ie),{});return await Promise.all([Fd(_,G,q.signal,re,R.loaderData),Ld(_,Y,I)]),{loaderResults:G,fetcherResults:Y}}function yn(){J=!0,X.push(...En()),z.forEach((R,_)=>{Z.has(_)&&ue.add(_),lt(_)})}function st(R,_,T){T===void 0&&(T={}),f.fetchers.set(R,_),C({fetchers:new Map(f.fetchers)},{flushSync:(T&&T.flushSync)===!0})}function nt(R,_,T,I){I===void 0&&(I={});let q=Rt(f.matches,_);Pr(R),C({errors:{[q.route.id]:T},fetchers:new Map(f.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function Xa(R){return W.set(R,(W.get(R)||0)+1),ee.has(R)&&ee.delete(R),f.fetchers.get(R)||xd}function Pr(R){let _=f.fetchers.get(R);Z.has(R)&&!(_&&_.state==="loading"&&O.has(R))&<(R),z.delete(R),O.delete(R),F.delete(R),d.v7_fetcherPersist&&ee.delete(R),ue.delete(R),f.fetchers.delete(R)}function al(R){let _=(W.get(R)||0)-1;_<=0?(W.delete(R),ee.add(R),d.v7_fetcherPersist||Pr(R)):W.set(R,_),C({fetchers:new Map(f.fetchers)})}function lt(R){let _=Z.get(R);_&&(_.abort(),Z.delete(R))}function Ga(R){for(let _ of R){let T=Xa(_),I=ft(T.data);f.fetchers.set(_,I)}}function Ka(){let R=[],_=!1;for(let T of F){let I=f.fetchers.get(T);K(I,"Expected fetcher: "+T),I.state==="loading"&&(F.delete(T),R.push(T),_=!0)}return Ga(R),_}function Ja(R){let _=[];for(let[T,I]of O)if(I<R){let q=f.fetchers.get(T);K(q,"Expected fetcher: "+T),q.state==="loading"&&(lt(T),O.delete(T),_.push(T))}return Ga(_),_.length>0}function ol(R,_){let T=f.blockers.get(R)||Ft;return H.get(R)!==_&&H.set(R,_),T}function Za(R){f.blockers.delete(R),H.delete(R)}function Or(R,_){let T=f.blockers.get(R)||Ft;K(T.state==="unblocked"&&_.state==="blocked"||T.state==="blocked"&&_.state==="blocked"||T.state==="blocked"&&_.state==="proceeding"||T.state==="blocked"&&_.state==="unblocked"||T.state==="proceeding"&&_.state==="unblocked","Invalid blocker state transition: "+T.state+" -> "+_.state);let I=new Map(f.blockers);I.set(R,_),C({blockers:I})}function Qa(R){let{currentLocation:_,nextLocation:T,historyAction:I}=R;if(H.size===0)return;H.size>1&&je(!1,"A router only supports one blocker at a time");let q=Array.from(H.entries()),[re,ae]=q[q.length-1],V=f.blockers.get(re);if(!(V&&V.state==="proceeding")&&ae({currentLocation:_,nextLocation:T,historyAction:I}))return re}function bn(R){let _=ze(404,{pathname:R}),T=s||i,{matches:I,route:q}=Ti(T);return En(),{notFoundMatches:I,route:q,error:_}}function En(R){let _=[];return te.forEach((T,I)=>{(!R||R(I))&&(T.cancel(),_.push(I),te.delete(I))}),_}function il(R,_,T){if(w=R,S=_,E=T||null,!h&&f.navigation===Kn){h=!0;let I=to(f.location,f.matches);I!=null&&C({restoreScrollPosition:I})}return()=>{w=null,S=null,E=null}}function eo(R,_){return E&&E(R,_.map(I=>Os(I,f.loaderData)))||R.key}function sl(R,_){if(w&&S){let T=eo(R,_);w[T]=S()}}function to(R,_){if(w){let T=eo(R,_),I=w[T];if(typeof I=="number")return I}return null}function _r(R,_,T){if(m)if(R){if(Object.keys(R[0].params).length>0)return{active:!0,matches:Gr(_,T,l,!0)}}else return{active:!0,matches:Gr(_,T,l,!0)||[]};return{active:!1,matches:null}}async function Tr(R,_,T,I){if(!m)return{type:"success",matches:R};let q=R;for(;;){let re=s==null,ae=s||i,V=o;try{await m({signal:T,path:_,matches:q,fetcherKey:I,patch:(Q,ie)=>{T.aborted||Si(Q,ie,ae,V,a)}})}catch(Q){return{type:"error",error:Q,partialMatches:q}}finally{re&&!T.aborted&&(i=[...i])}if(T.aborted)return{type:"aborted"};let G=dt(ae,_,l);if(G)return{type:"success",matches:G};let Y=Gr(ae,_,l,!0);if(!Y||q.length===Y.length&&q.every((Q,ie)=>Q.route.id===Y[ie].route.id))return{type:"success",matches:null};q=Y}}function ll(R){o={},s=Qr(R,a,void 0,o)}function ul(R,_){let T=s==null;Si(R,_,s||i,o,a),T&&(i=[...i],C({}))}return x={get basename(){return l},get future(){return d},get state(){return f},get routes(){return i},get window(){return t},initialize:le,subscribe:Ae,enableScrollRestoration:il,navigate:Be,fetch:tl,revalidate:vt,createHref:R=>e.history.createHref(R),encodeLocation:R=>e.history.encodeLocation(R),getFetcher:Xa,deleteFetcher:al,dispose:se,getBlocker:ol,deleteBlocker:Za,patchRoutes:ul,_internalFetchControllers:Z,_internalActiveDeferreds:te,_internalSetRoutes:ll},x}function Rd(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function ha(e,t,r,n,a,o,i,s){let l,u;if(i){l=[];for(let d of t)if(l.push(d),d.route.id===i){u=d;break}}else l=t,u=t[t.length-1];let m=mn(a||".",hn(l,o),_t(e.pathname,r)||e.pathname,s==="path");if(a==null&&(m.search=e.search,m.hash=e.hash),(a==null||a===""||a===".")&&u){let d=La(m.search);if(u.route.index&&!d)m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&d){let b=new URLSearchParams(m.search),y=b.getAll("index");b.delete("index"),y.filter(E=>E).forEach(E=>b.append("index",E));let w=b.toString();m.search=w?"?"+w:""}}return n&&r!=="/"&&(m.pathname=m.pathname==="/"?r:ot([r,m.pathname])),wr(m)}function yi(e,t,r,n){if(!n||!Rd(n))return{path:r};if(n.formMethod&&!kd(n.formMethod))return{path:r,error:ze(405,{method:n.formMethod})};let a=()=>({path:r,error:ze(400,{type:"invalid-body"})}),o=n.formMethod||"get",i=e?o.toUpperCase():o.toLowerCase(),s=ks(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ve(i))return a();let b=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((y,w)=>{let[E,S]=w;return""+y+E+"="+S+`
|
|
352
|
+
`},""):String(n.body);return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:void 0,text:b}}}else if(n.formEncType==="application/json"){if(!Ve(i))return a();try{let b=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:i,formAction:s,formEncType:n.formEncType,formData:void 0,json:b,text:void 0}}}catch{return a()}}}K(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=ga(n.formData),u=n.formData;else if(n.body instanceof FormData)l=ga(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=Ri(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=Ri(l)}catch{return a()}let m={formMethod:i,formAction:s,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ve(m.formMethod))return{path:r,submission:m};let d=Ge(r);return t&&d.search&&La(d.search)&&l.append("index",""),d.search="?"+l,{path:wr(d),submission:m}}function bi(e,t,r){r===void 0&&(r=!1);let n=e.findIndex(a=>a.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function Ei(e,t,r,n,a,o,i,s,l,u,m,d,b,y,w,E){let S=E?We(E[1])?E[1].error:E[1].data:void 0,h=e.createURL(t.location),c=e.createURL(a),g=r;o&&t.errors?g=bi(r,Object.keys(t.errors)[0],!0):E&&We(E[1])&&(g=bi(r,E[0]));let v=E?E[1].statusCode:void 0,p=i&&v&&v>=400,x=g.filter((P,j)=>{let{route:A}=P;if(A.lazy)return!0;if(A.loader==null)return!1;if(o)return ma(A,t.loaderData,t.errors);if(Pd(t.loaderData,t.matches[j],P)||l.some(U=>U===P.route.id))return!0;let k=t.matches[j],B=P;return xi(P,Se({currentUrl:h,currentParams:k.params,nextUrl:c,nextParams:B.params},n,{actionResult:S,actionStatus:v,defaultShouldRevalidate:p?!1:s||h.pathname+h.search===c.pathname+c.search||h.search!==c.search||Ms(k,B)}))}),f=[];return d.forEach((P,j)=>{if(o||!r.some(L=>L.route.id===P.routeId)||m.has(j))return;let A=dt(y,P.path,w);if(!A){f.push({key:j,routeId:P.routeId,path:P.path,matches:null,match:null,controller:null});return}let k=t.fetchers.get(j),B=pr(A,P.path),U=!1;b.has(j)?U=!1:u.has(j)?(u.delete(j),U=!0):k&&k.state!=="idle"&&k.data===void 0?U=s:U=xi(B,Se({currentUrl:h,currentParams:t.matches[t.matches.length-1].params,nextUrl:c,nextParams:r[r.length-1].params},n,{actionResult:S,actionStatus:v,defaultShouldRevalidate:p?!1:s})),U&&f.push({key:j,routeId:P.routeId,path:P.path,matches:A,match:B,controller:new AbortController})}),[x,f]}function ma(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=t!=null&&t[e.id]!==void 0,a=r!=null&&r[e.id]!==void 0;return!n&&a?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!n&&!a}function Pd(e,t,r){let n=!t||r.route.id!==t.route.id,a=e[r.route.id]===void 0;return n||a}function Ms(e,t){let r=e.route.path;return e.pathname!==t.pathname||r!=null&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function xi(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if(typeof r=="boolean")return r}return t.defaultShouldRevalidate}function Si(e,t,r,n,a){var o;let i;if(e){let u=n[e];K(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),i=u.children}else i=r;let s=t.filter(u=>!i.some(m=>Is(u,m))),l=Qr(s,a,[e||"_","patch",String(((o=i)==null?void 0:o.length)||"0")],n);i.push(...l)}function Is(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((r,n)=>{var a;return(a=t.children)==null?void 0:a.some(o=>Is(r,o))}):!1}async function Od(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];K(a,"No route found in manifest");let o={};for(let i in n){let l=a[i]!==void 0&&i!=="hasErrorBoundary";je(!l,'Route "'+a.id+'" has a static property "'+i+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+i+'" will be ignored.')),!l&&!Bf.has(i)&&(o[i]=n[i])}Object.assign(a,o),Object.assign(a,Se({},t(a),{lazy:void 0}))}async function _d(e){let{matches:t}=e,r=t.filter(a=>a.shouldLoad);return(await Promise.all(r.map(a=>a.resolve()))).reduce((a,o,i)=>Object.assign(a,{[r[i].route.id]:o}),{})}async function Td(e,t,r,n,a,o,i,s,l,u){let m=o.map(y=>y.route.lazy?Od(y.route,l,s):void 0),d=o.map((y,w)=>{let E=m[w],S=a.some(c=>c.route.id===y.route.id);return Se({},y,{shouldLoad:S,resolve:async c=>(c&&n.method==="GET"&&(y.route.lazy||y.route.loader)&&(S=!0),S?Cd(t,n,y,E,c,u):Promise.resolve({type:be.data,result:void 0}))})}),b=await e({matches:d,request:n,params:o[0].params,fetcherKey:i,context:u});try{await Promise.all(m)}catch{}return b}async function Cd(e,t,r,n,a,o){let i,s,l=u=>{let m,d=new Promise((w,E)=>m=E);s=()=>m(),t.signal.addEventListener("abort",s);let b=w=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+r.route.id+"]"))):u({request:t,params:r.params,context:o},...w!==void 0?[w]:[]),y=(async()=>{try{return{type:"data",result:await(a?a(E=>b(E)):b())}}catch(w){return{type:"error",result:w}}})();return Promise.race([y,d])};try{let u=r.route[e];if(n)if(u){let m,[d]=await Promise.all([l(u).catch(b=>{m=b}),n]);if(m!==void 0)throw m;i=d}else if(await n,u=r.route[e],u)i=await l(u);else if(e==="action"){let m=new URL(t.url),d=m.pathname+m.search;throw ze(405,{method:t.method,pathname:d,routeId:r.route.id})}else return{type:be.data,result:void 0};else if(u)i=await l(u);else{let m=new URL(t.url),d=m.pathname+m.search;throw ze(404,{pathname:d})}K(i.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:be.error,result:u}}finally{s&&t.signal.removeEventListener("abort",s)}return i}async function Dd(e){let{result:t,type:r}=e;if(Fs(t)){let d;try{let b=t.headers.get("Content-Type");b&&/\bapplication\/json\b/.test(b)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(b){return{type:be.error,error:b}}return r===be.error?{type:be.error,error:new pa(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:be.data,data:d,statusCode:t.status,headers:t.headers}}if(r===be.error){if(Ci(t)){var n,a;if(t.data instanceof Error){var o,i;return{type:be.error,error:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:be.error,error:new pa(((n=t.init)==null?void 0:n.status)||500,void 0,t.data),statusCode:Wt(t)?t.status:void 0,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:be.error,error:t,statusCode:Wt(t)?t.status:void 0}}if(Id(t)){var s,l;return{type:be.deferred,deferredData:t,statusCode:(s=t.init)==null?void 0:s.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(Ci(t)){var u,m;return{type:be.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(m=t.init)!=null&&m.headers?new Headers(t.init.headers):void 0}}return{type:be.data,data:t}}function jd(e,t,r,n,a,o){let i=e.headers.get("Location");if(K(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ka.test(i)){let s=n.slice(0,n.findIndex(l=>l.route.id===r)+1);i=ha(new URL(t.url),s,a,!0,i,o),e.headers.set("Location",i)}return e}function wi(e,t,r){if(ka.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),o=_t(a.pathname,r)!=null;if(a.origin===t.origin&&o)return a.pathname+a.search+a.hash}return e}function Mt(e,t,r,n){let a=e.createURL(ks(t)).toString(),o={signal:r};if(n&&Ve(n.formMethod)){let{formMethod:i,formEncType:s}=n;o.method=i.toUpperCase(),s==="application/json"?(o.headers=new Headers({"Content-Type":s}),o.body=JSON.stringify(n.json)):s==="text/plain"?o.body=n.text:s==="application/x-www-form-urlencoded"&&n.formData?o.body=ga(n.formData):o.body=n.formData}return new Request(a,o)}function ga(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,typeof n=="string"?n:n.name);return t}function Ri(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function Nd(e,t,r,n,a){let o={},i=null,s,l=!1,u={},m=r&&We(r[1])?r[1].error:void 0;return e.forEach(d=>{if(!(d.route.id in t))return;let b=d.route.id,y=t[b];if(K(!Pt(y),"Cannot handle redirect results in processLoaderData"),We(y)){let w=y.error;m!==void 0&&(w=m,m=void 0),i=i||{};{let E=Rt(e,b);i[E.route.id]==null&&(i[E.route.id]=w)}o[b]=void 0,l||(l=!0,s=Wt(y.error)?y.error.status:500),y.headers&&(u[b]=y.headers)}else pt(y)?(n.set(b,y.deferredData),o[b]=y.deferredData.data,y.statusCode!=null&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(u[b]=y.headers)):(o[b]=y.data,y.statusCode&&y.statusCode!==200&&!l&&(s=y.statusCode),y.headers&&(u[b]=y.headers))}),m!==void 0&&r&&(i={[r[0]]:m},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:s||200,loaderHeaders:u}}function Pi(e,t,r,n,a,o,i){let{loaderData:s,errors:l}=Nd(t,r,n,i);return a.forEach(u=>{let{key:m,match:d,controller:b}=u,y=o[m];if(K(y,"Did not find corresponding fetcher result"),!(b&&b.signal.aborted))if(We(y)){let w=Rt(e.matches,d==null?void 0:d.route.id);l&&l[w.route.id]||(l=Se({},l,{[w.route.id]:y.error})),e.fetchers.delete(m)}else if(Pt(y))K(!1,"Unhandled fetcher revalidation redirect");else if(pt(y))K(!1,"Unhandled fetcher deferred data");else{let w=ft(y.data);e.fetchers.set(m,w)}}),{loaderData:s,errors:l}}function Oi(e,t,r,n){let a=Se({},t);for(let o of r){let i=o.route.id;if(t.hasOwnProperty(i)?t[i]!==void 0&&(a[i]=t[i]):e[i]!==void 0&&o.route.loader&&(a[i]=e[i]),n&&n.hasOwnProperty(i))break}return a}function _i(e){return e?We(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Rt(e,t){return(t?e.slice(0,e.findIndex(n=>n.route.id===t)+1):[...e]).reverse().find(n=>n.route.hasErrorBoundary===!0)||e[0]}function Ti(e){let t=e.length===1?e[0]:e.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function ze(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=t===void 0?{}:t,s="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(s="Bad Request",a&&r&&n?l="You made a "+a+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":o==="defer-action"?l="defer() is not supported in actions":o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(s="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):e===404?(s="Not Found",l='No route matches URL "'+r+'"'):e===405&&(s="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new pa(e||500,s,new Error(l),!0)}function $r(e){let t=Object.entries(e);for(let r=t.length-1;r>=0;r--){let[n,a]=t[r];if(Pt(a))return{key:n,result:a}}}function ks(e){let t=typeof e=="string"?Ge(e):e;return wr(Se({},t,{hash:""}))}function Ad(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Md(e){return Fs(e.result)&&bd.has(e.result.status)}function pt(e){return e.type===be.deferred}function We(e){return e.type===be.error}function Pt(e){return(e&&e.type)===be.redirect}function Ci(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Id(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function Fs(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function kd(e){return yd.has(e.toLowerCase())}function Ve(e){return gd.has(e.toLowerCase())}async function Fd(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[s,l]=o[i],u=e.find(b=>(b==null?void 0:b.route.id)===s);if(!u)continue;let m=n.find(b=>b.route.id===u.route.id),d=m!=null&&!Ms(m,u)&&(a&&a[u.route.id])!==void 0;pt(l)&&d&&await Fa(l,r,!1).then(b=>{b&&(t[s]=b)})}}async function Ld(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],s=t[a];e.find(u=>(u==null?void 0:u.route.id)===o)&&pt(s)&&(K(i,"Expected an AbortController for revalidating fetcher deferred result"),await Fa(s,i.signal,!0).then(u=>{u&&(t[a]=u)}))}}async function Fa(e,t,r){if(r===void 0&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:be.data,data:e.deferredData.unwrappedData}}catch(a){return{type:be.error,error:a}}return{type:be.data,data:e.deferredData.data}}}function La(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function pr(e,t){let r=typeof t=="string"?Ge(t).search:t.search;if(e[e.length-1].route.index&&La(r||""))return e[e.length-1];let n=js(e);return n[n.length-1]}function Di(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(!(!t||!r||!n)){if(a!=null)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};if(o!=null)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function Jn(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function zd(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function lr(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function $d(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ft(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ud(e,t){try{let r=e.sessionStorage.getItem(As);if(r){let n=JSON.parse(r);for(let[a,o]of Object.entries(n||{}))o&&Array.isArray(o)&&t.set(a,new Set(o||[]))}}catch{}}function Wd(e,t){if(t.size>0){let r={};for(let[n,a]of t)r[n]=[...a];try{e.sessionStorage.setItem(As,JSON.stringify(r))}catch(n){je(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/**
|
|
353
353
|
* React Router v6.30.2
|
|
354
354
|
*
|
|
355
355
|
* Copyright (c) Remix Software Inc.
|
|
@@ -360,4 +360,4 @@ Valid keys: `+JSON.stringify(Object.keys(A),null," "));var C=Ae(B,le,W,Z,ee+"."
|
|
|
360
360
|
* @license MIT
|
|
361
361
|
*/function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ht.apply(this,arguments)}const Yt=D.createContext(null);process.env.NODE_ENV!=="production"&&(Yt.displayName="DataRouter");const gn=D.createContext(null);process.env.NODE_ENV!=="production"&&(gn.displayName="DataRouterState");const yr=D.createContext(null);process.env.NODE_ENV!=="production"&&(yr.displayName="Await");const it=D.createContext(null);process.env.NODE_ENV!=="production"&&(it.displayName="Navigation");const Tt=D.createContext(null);process.env.NODE_ENV!=="production"&&(Tt.displayName="Location");const Ye=D.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(Ye.displayName="Route");const za=D.createContext(null);process.env.NODE_ENV!=="production"&&(za.displayName="RouteError");function qd(e,t){let{relative:r}=t===void 0?{}:t;mt()||(process.env.NODE_ENV!=="production"?K(!1,"useHref() may be used only in the context of a <Router> component."):K(!1));let{basename:n,navigator:a}=D.useContext(it),{hash:o,pathname:i,search:s}=Ws(e,{relative:r}),l=i;return n!=="/"&&(l=i==="/"?n:ot([n,i])),a.createHref({pathname:l,search:s,hash:o})}function mt(){return D.useContext(Tt)!=null}function Ct(){return mt()||(process.env.NODE_ENV!=="production"?K(!1,"useLocation() may be used only in the context of a <Router> component."):K(!1)),D.useContext(Tt).location}function Bd(){return D.useContext(Tt).navigationType}function Hd(e){mt()||(process.env.NODE_ENV!=="production"?K(!1,"useMatch() may be used only in the context of a <Router> component."):K(!1));let{pathname:t}=Ct();return D.useMemo(()=>en(e,Cs(t)),[t,e])}const Ls="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function zs(e){D.useContext(it).static||D.useLayoutEffect(e)}function $a(){let{isDataRoute:e}=D.useContext(Ye);return e?up():Yd()}function Yd(){mt()||(process.env.NODE_ENV!=="production"?K(!1,"useNavigate() may be used only in the context of a <Router> component."):K(!1));let e=D.useContext(Yt),{basename:t,future:r,navigator:n}=D.useContext(it),{matches:a}=D.useContext(Ye),{pathname:o}=Ct(),i=JSON.stringify(hn(a,r.v7_relativeSplatPath)),s=D.useRef(!1);return zs(()=>{s.current=!0}),D.useCallback(function(u,m){if(m===void 0&&(m={}),process.env.NODE_ENV!=="production"&&je(s.current,Ls),!s.current)return;if(typeof u=="number"){n.go(u);return}let d=mn(u,JSON.parse(i),o,m.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:ot([t,d.pathname])),(m.replace?n.replace:n.push)(d,m.state,m)},[t,n,i,o,e])}const $s=D.createContext(null);function Vd(){return D.useContext($s)}function Us(e){let t=D.useContext(Ye).outlet;return t&&D.createElement($s.Provider,{value:e},t)}function Xd(){let{matches:e}=D.useContext(Ye),t=e[e.length-1];return t?t.params:{}}function Ws(e,t){let{relative:r}=t===void 0?{}:t,{future:n}=D.useContext(it),{matches:a}=D.useContext(Ye),{pathname:o}=Ct(),i=JSON.stringify(hn(a,n.v7_relativeSplatPath));return D.useMemo(()=>mn(e,JSON.parse(i),o,r==="path"),[e,i,o,r])}function qs(e,t){return Ua(e,t)}function Ua(e,t,r,n){mt()||(process.env.NODE_ENV!=="production"?K(!1,"useRoutes() may be used only in the context of a <Router> component."):K(!1));let{navigator:a}=D.useContext(it),{matches:o}=D.useContext(Ye),i=o[o.length-1],s=i?i.params:{},l=i?i.pathname:"/",u=i?i.pathnameBase:"/",m=i&&i.route;if(process.env.NODE_ENV!=="production"){let c=m&&m.path||"";Xs(l,!m||c.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+l+'" (under <Route path="'+c+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
362
362
|
|
|
363
|
-
`+('Please change the parent <Route path="'+c+'"> to <Route ')+('path="'+(c==="/"?"*":c+"/*")+'">.'))}let d=Ct(),b;if(t){var y;let c=typeof t=="string"?Ge(t):t;u==="/"||(y=c.pathname)!=null&&y.startsWith(u)||(process.env.NODE_ENV!=="production"?K(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+u+'" ')+('but pathname "'+c.pathname+'" was given in the `location` prop.')):K(!1)),b=c}else b=d;let w=b.pathname||"/",E=w;if(u!=="/"){let c=u.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(c.length).join("/")}let S=dt(e,{pathname:E});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&je(m||S!=null,'No routes matched location "'+b.pathname+b.search+b.hash+'" '),process.env.NODE_ENV!=="production"&&je(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,'Matched leaf route at location "'+b.pathname+b.search+b.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let h=Bs(S&&S.map(c=>Object.assign({},c,{params:Object.assign({},s,c.params),pathname:ot([u,a.encodeLocation?a.encodeLocation(c.pathname).pathname:c.pathname]),pathnameBase:c.pathnameBase==="/"?u:ot([u,a.encodeLocation?a.encodeLocation(c.pathnameBase).pathname:c.pathnameBase])})),o,r,n);return t&&h?D.createElement(Tt.Provider,{value:{location:ht({pathname:"/",search:"",hash:"",state:null,key:"default"},b),navigationType:Oe.Pop}},h):h}function Gd(){let e=Hs(),t=Wt(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},i=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),i=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:o},"ErrorBoundary")," or"," ",D.createElement("code",{style:o},"errorElement")," prop on your route."))),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),r?D.createElement("pre",{style:a},r):null,i)}const Kd=D.createElement(Gd,null);class Jd extends D.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?D.createElement(Ye.Provider,{value:this.props.routeContext},D.createElement(za.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Zd(e){let{routeContext:t,match:r,children:n}=e,a=D.useContext(Yt);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),D.createElement(Ye.Provider,{value:t},n)}function Bs(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let m=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);m>=0||(process.env.NODE_ENV!=="production"?K(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(s).join(",")):K(!1)),i=i.slice(0,Math.min(i.length,m+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let m=0;m<i.length;m++){let d=i[m];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=m),d.route.id){let{loaderData:b,errors:y}=r,w=d.route.loader&&b[d.route.id]===void 0&&(!y||y[d.route.id]===void 0);if(d.route.lazy||w){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((m,d,b)=>{let y,w=!1,E=null,S=null;r&&(y=s&&d.route.id?s[d.route.id]:void 0,E=d.route.errorElement||Kd,l&&(u<0&&b===0?(Xs("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,S=null):u===b&&(w=!0,S=d.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,b+1)),c=()=>{let g;return y?g=E:w?g=S:d.route.Component?g=D.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=m,D.createElement(Zd,{match:d,routeContext:{outlet:m,matches:h,isDataRoute:r!=null},children:g})};return r&&(d.route.ErrorBoundary||d.route.errorElement||b===0)?D.createElement(Jd,{location:r.location,revalidation:r.revalidation,component:E,error:y,children:c(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):c()},null)}var vn=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(vn||{}),Ue=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Ue||{});function Wa(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function qa(e){let t=D.useContext(Yt);return t||(process.env.NODE_ENV!=="production"?K(!1,Wa(e)):K(!1)),t}function gt(e){let t=D.useContext(gn);return t||(process.env.NODE_ENV!=="production"?K(!1,Wa(e)):K(!1)),t}function Qd(e){let t=D.useContext(Ye);return t||(process.env.NODE_ENV!=="production"?K(!1,Wa(e)):K(!1)),t}function Rr(e){let t=Qd(e),r=t.matches[t.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?K(!1,e+' can only be used on routes that contain a unique "id"'):K(!1)),r.route.id}function ep(){return Rr(Ue.UseRouteId)}function tp(){return gt(Ue.UseNavigation).navigation}function rp(){let e=qa(vn.UseRevalidator),t=gt(Ue.UseRevalidator);return D.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function np(){let{matches:e,loaderData:t}=gt(Ue.UseMatches);return D.useMemo(()=>e.map(r=>Os(r,t)),[e,t])}function ap(){let e=gt(Ue.UseLoaderData),t=Rr(Ue.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function op(e){return gt(Ue.UseRouteLoaderData).loaderData[e]}function ip(){let e=gt(Ue.UseActionData),t=Rr(Ue.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function Hs(){var e;let t=D.useContext(za),r=gt(Ue.UseRouteError),n=Rr(Ue.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Ys(){let e=D.useContext(yr);return e==null?void 0:e._data}function sp(){let e=D.useContext(yr);return e==null?void 0:e._error}let lp=0;function Vs(e){let{router:t,basename:r}=qa(vn.UseBlocker),n=gt(Ue.UseBlocker),[a,o]=D.useState(""),i=D.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:l,nextLocation:u,historyAction:m}=s;return e({currentLocation:ht({},l,{pathname:_t(l.pathname,r)||l.pathname}),nextLocation:ht({},u,{pathname:_t(u.pathname,r)||u.pathname}),historyAction:m})},[r,e]);return D.useEffect(()=>{let s=String(++lp);return o(s),()=>t.deleteBlocker(s)},[t]),D.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Ft}function up(){let{router:e}=qa(vn.UseNavigateStable),t=Rr(Ue.UseNavigateStable),r=D.useRef(!1);return zs(()=>{r.current=!0}),D.useCallback(function(a,o){o===void 0&&(o={}),process.env.NODE_ENV!=="production"&&je(r.current,Ls),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,ht({fromRouteId:t},o)))},[e,t])}const ji={};function Xs(e,t,r){!t&&!ji[e]&&(ji[e]=!0,process.env.NODE_ENV!=="production"&&je(!1,r))}const Ni={};function cp(e,t){process.env.NODE_ENV!=="production"&&!Ni[t]&&(Ni[t]=!0,console.warn(t))}const It=(e,t,r)=>cp(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."));function Ba(e,t){(e==null?void 0:e.v7_startTransition)===void 0&&It("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath===void 0)&&It("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist===void 0&&It("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod===void 0&&It("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration===void 0&&It("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation===void 0&&It("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}const fp="startTransition",rn=D[fp];function dp(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=D.useState(r.state),{v7_startTransition:i}=n||{},s=D.useCallback(d=>{i&&rn?rn(()=>o(d)):o(d)},[o,i]);D.useLayoutEffect(()=>r.subscribe(s),[r,s]),D.useEffect(()=>{process.env.NODE_ENV!=="production"&&je(t==null||!r.future.v7_partialHydration,"`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead")},[]);let l=D.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:d=>r.navigate(d),push:(d,b,y)=>r.navigate(d,{state:b,preventScrollReset:y==null?void 0:y.preventScrollReset}),replace:(d,b,y)=>r.navigate(d,{replace:!0,state:b,preventScrollReset:y==null?void 0:y.preventScrollReset})}),[r]),u=r.basename||"/",m=D.useMemo(()=>({router:r,navigator:l,static:!1,basename:u}),[r,l,u]);return D.useEffect(()=>Ba(n,r.future),[r,n]),D.createElement(D.Fragment,null,D.createElement(Yt.Provider,{value:m},D.createElement(gn.Provider,{value:a},D.createElement(Ha,{basename:u,location:a.location,navigationType:a.historyAction,navigator:l,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?D.createElement(pp,{routes:r.routes,future:r.future,state:a}):t))),null)}function pp(e){let{routes:t,future:r,state:n}=e;return Ua(t,void 0,n,r)}function hp(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,i=D.useRef();i.current==null&&(i.current=Ps({initialEntries:n,initialIndex:a,v5Compat:!0}));let s=i.current,[l,u]=D.useState({action:s.action,location:s.location}),{v7_startTransition:m}=o||{},d=D.useCallback(b=>{m&&rn?rn(()=>u(b)):u(b)},[u,m]);return D.useLayoutEffect(()=>s.listen(d),[s,d]),D.useEffect(()=>Ba(o),[o]),D.createElement(Ha,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:o})}function mp(e){let{to:t,replace:r,state:n,relative:a}=e;mt()||(process.env.NODE_ENV!=="production"?K(!1,"<Navigate> may be used only in the context of a <Router> component."):K(!1));let{future:o,static:i}=D.useContext(it);process.env.NODE_ENV!=="production"&&je(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=D.useContext(Ye),{pathname:l}=Ct(),u=$a(),m=mn(t,hn(s,o.v7_relativeSplatPath),l,a==="path"),d=JSON.stringify(m);return D.useEffect(()=>u(JSON.parse(d),{replace:r,state:n,relative:a}),[u,d,a,r,n]),null}function gp(e){return Us(e.context)}function Gs(e){process.env.NODE_ENV!=="production"?K(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):K(!1)}function Ha(e){let{basename:t="/",children:r=null,location:n,navigationType:a=Oe.Pop,navigator:o,static:i=!1,future:s}=e;mt()&&(process.env.NODE_ENV!=="production"?K(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):K(!1));let l=t.replace(/^\/*/,"/"),u=D.useMemo(()=>({basename:l,navigator:o,static:i,future:ht({v7_relativeSplatPath:!1},s)}),[l,s,o,i]);typeof n=="string"&&(n=Ge(n));let{pathname:m="/",search:d="",hash:b="",state:y=null,key:w="default"}=n,E=D.useMemo(()=>{let S=_t(m,l);return S==null?null:{location:{pathname:S,search:d,hash:b,state:y,key:w},navigationType:a}},[l,m,d,b,y,w,a]);return process.env.NODE_ENV!=="production"&&je(E!=null,'<Router basename="'+l+'"> is not able to match the URL '+('"'+m+d+b+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),E==null?null:D.createElement(it.Provider,{value:u},D.createElement(Tt.Provider,{children:r,value:E}))}function vp(e){let{children:t,location:r}=e;return qs(br(t),r)}function yp(e){let{children:t,errorElement:r,resolve:n}=e;return D.createElement(Ep,{resolve:n,errorElement:r},D.createElement(xp,null,t))}var He=(function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e})(He||{});const bp=new Promise(()=>{});class Ep extends D.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){console.error("<Await> caught the following error during render",t,r)}render(){let{children:t,errorElement:r,resolve:n}=this.props,a=null,o=He.pending;if(!(n instanceof Promise))o=He.success,a=Promise.resolve(),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_data",{get:()=>n});else if(this.state.error){o=He.error;let i=this.state.error;a=Promise.reject().catch(()=>{}),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_error",{get:()=>i})}else n._tracked?(a=n,o="_error"in a?He.error:"_data"in a?He.success:He.pending):(o=He.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),a=n.then(i=>Object.defineProperty(n,"_data",{get:()=>i}),i=>Object.defineProperty(n,"_error",{get:()=>i})));if(o===He.error&&a._error instanceof tn)throw bp;if(o===He.error&&!r)throw a._error;if(o===He.error)return D.createElement(yr.Provider,{value:a,children:r});if(o===He.success)return D.createElement(yr.Provider,{value:a,children:t});throw a}}function xp(e){let{children:t}=e,r=Ys(),n=typeof t=="function"?t(r):t;return D.createElement(D.Fragment,null,n)}function br(e,t){t===void 0&&(t=[]);let r=[];return D.Children.forEach(e,(n,a)=>{if(!D.isValidElement(n))return;let o=[...t,a];if(n.type===D.Fragment){r.push.apply(r,br(n.props.children,o));return}n.type!==Gs&&(process.env.NODE_ENV!=="production"?K(!1,"["+(typeof n.type=="string"?n.type:n.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):K(!1)),!n.props.index||!n.props.children||(process.env.NODE_ENV!=="production"?K(!1,"An index route cannot have child routes."):K(!1));let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=br(n.props.children,o)),r.push(i)}),r}function Sp(e){return Bs(e)}function Ks(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(process.env.NODE_ENV!=="production"&&e.element&&process.env.NODE_ENV!=="production"&&je(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:D.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(process.env.NODE_ENV!=="production"&&e.hydrateFallbackElement&&process.env.NODE_ENV!=="production"&&je(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:D.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(process.env.NODE_ENV!=="production"&&e.errorElement&&process.env.NODE_ENV!=="production"&&je(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:D.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}function wp(e,t){return wd({basename:t==null?void 0:t.basename,future:ht({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Ps({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:Ks,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation}).initialize()}const Rp=Object.freeze(Object.defineProperty({__proto__:null,AbortedDeferredError:tn,Await:yp,MemoryRouter:hp,Navigate:mp,get NavigationType(){return Oe},Outlet:gp,Route:Gs,Router:Ha,RouterProvider:dp,Routes:vp,UNSAFE_DataRouterContext:Yt,UNSAFE_DataRouterStateContext:gn,UNSAFE_LocationContext:Tt,UNSAFE_NavigationContext:it,UNSAFE_RouteContext:Ye,UNSAFE_logV6DeprecationWarnings:Ba,UNSAFE_mapRouteProperties:Ks,UNSAFE_useRouteId:ep,UNSAFE_useRoutesImpl:Ua,createMemoryRouter:wp,createPath:wr,createRoutesFromChildren:br,createRoutesFromElements:br,defer:pd,generatePath:rd,isRouteErrorResponse:Wt,json:ud,matchPath:en,matchRoutes:dt,parsePath:Ge,redirect:Ia,redirectDocument:hd,renderMatches:Sp,replace:md,resolvePath:Ds,useActionData:ip,useAsyncError:sp,useAsyncValue:Ys,useBlocker:Vs,useHref:qd,useInRouterContext:mt,useLoaderData:ap,useLocation:Ct,useMatch:Hd,useMatches:np,useNavigate:$a,useNavigation:tp,useNavigationType:Bd,useOutlet:Us,useOutletContext:Vd,useParams:Xd,useResolvedPath:Ws,useRevalidator:rp,useRouteError:Hs,useRouteLoaderData:op,useRoutes:qs},Symbol.toStringTag,{value:"Module"}));var Zn={},Qn,Ai;function Pp(){return Ai||(Ai=1,Qn=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Qn}var ea,Mi;function Op(){if(Mi)return ea;Mi=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(i,s){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;s=s||1;var l=i.slice(0,s),u=i.slice(s);return Array.prototype.concat.call([],n(l),n(u))}function a(i){try{return decodeURIComponent(i)}catch{for(var s=i.match(t)||[],l=1;l<s.length;l++)i=n(s,l).join(""),s=i.match(t)||[];return i}}function o(i){for(var s={"%FE%FF":"��","%FF%FE":"��"},l=r.exec(i);l;){try{s[l[0]]=decodeURIComponent(l[0])}catch{var u=a(l[0]);u!==l[0]&&(s[l[0]]=u)}l=r.exec(i)}s["%C2"]="�";for(var m=Object.keys(s),d=0;d<m.length;d++){var b=m[d];i=i.replace(new RegExp(b,"g"),s[b])}return i}return ea=function(i){if(typeof i!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof i+"`");try{return i=i.replace(/\+/g," "),decodeURIComponent(i)}catch{return o(i)}},ea}var ta,Ii;function _p(){return Ii||(Ii=1,ta=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),ta}var ra,ki;function Tp(){return ki||(ki=1,ra=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;o<n.length;o++){var i=n[o],s=e[i];(a?t.indexOf(i)!==-1:t(i,s,e))&&(r[i]=s)}return r}),ra}var Fi;function Cp(){return Fi||(Fi=1,(function(e){const t=Pp(),r=Op(),n=_p(),a=Tp(),o=h=>h==null;function i(h){switch(h.arrayFormat){case"index":return c=>(g,v)=>{const p=g.length;return v===void 0||h.skipNull&&v===null||h.skipEmptyString&&v===""?g:v===null?[...g,[u(c,h),"[",p,"]"].join("")]:[...g,[u(c,h),"[",u(p,h),"]=",u(v,h)].join("")]};case"bracket":return c=>(g,v)=>v===void 0||h.skipNull&&v===null||h.skipEmptyString&&v===""?g:v===null?[...g,[u(c,h),"[]"].join("")]:[...g,[u(c,h),"[]=",u(v,h)].join("")];case"comma":case"separator":return c=>(g,v)=>v==null||v.length===0?g:g.length===0?[[u(c,h),"=",u(v,h)].join("")]:[[g,u(v,h)].join(h.arrayFormatSeparator)];default:return c=>(g,v)=>v===void 0||h.skipNull&&v===null||h.skipEmptyString&&v===""?g:v===null?[...g,u(c,h)]:[...g,[u(c,h),"=",u(v,h)].join("")]}}function s(h){let c;switch(h.arrayFormat){case"index":return(g,v,p)=>{if(c=/\[(\d*)\]$/.exec(g),g=g.replace(/\[\d*\]$/,""),!c){p[g]=v;return}p[g]===void 0&&(p[g]={}),p[g][c[1]]=v};case"bracket":return(g,v,p)=>{if(c=/(\[\])$/.exec(g),g=g.replace(/\[\]$/,""),!c){p[g]=v;return}if(p[g]===void 0){p[g]=[v];return}p[g]=[].concat(p[g],v)};case"comma":case"separator":return(g,v,p)=>{const x=typeof v=="string"&&v.includes(h.arrayFormatSeparator),f=typeof v=="string"&&!x&&m(v,h).includes(h.arrayFormatSeparator);v=f?m(v,h):v;const O=x||f?v.split(h.arrayFormatSeparator).map(j=>m(j,h)):v===null?v:m(v,h);p[g]=O};default:return(g,v,p)=>{if(p[g]===void 0){p[g]=v;return}p[g]=[].concat(p[g],v)}}}function l(h){if(typeof h!="string"||h.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(h,c){return c.encode?c.strict?t(h):encodeURIComponent(h):h}function m(h,c){return c.decode?r(h):h}function d(h){return Array.isArray(h)?h.sort():typeof h=="object"?d(Object.keys(h)).sort((c,g)=>Number(c)-Number(g)).map(c=>h[c]):h}function b(h){const c=h.indexOf("#");return c!==-1&&(h=h.slice(0,c)),h}function y(h){let c="";const g=h.indexOf("#");return g!==-1&&(c=h.slice(g)),c}function w(h){h=b(h);const c=h.indexOf("?");return c===-1?"":h.slice(c+1)}function E(h,c){return c.parseNumbers&&!Number.isNaN(Number(h))&&typeof h=="string"&&h.trim()!==""?h=Number(h):c.parseBooleans&&h!==null&&(h.toLowerCase()==="true"||h.toLowerCase()==="false")&&(h=h.toLowerCase()==="true"),h}function S(h,c){c=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},c),l(c.arrayFormatSeparator);const g=s(c),v=Object.create(null);if(typeof h!="string"||(h=h.trim().replace(/^[?#&]/,""),!h))return v;for(const p of h.split("&")){if(p==="")continue;let[x,f]=n(c.decode?p.replace(/\+/g," "):p,"=");f=f===void 0?null:["comma","separator"].includes(c.arrayFormat)?f:m(f,c),g(m(x,c),f,v)}for(const p of Object.keys(v)){const x=v[p];if(typeof x=="object"&&x!==null)for(const f of Object.keys(x))x[f]=E(x[f],c);else v[p]=E(x,c)}return c.sort===!1?v:(c.sort===!0?Object.keys(v).sort():Object.keys(v).sort(c.sort)).reduce((p,x)=>{const f=v[x];return f&&typeof f=="object"&&!Array.isArray(f)?p[x]=d(f):p[x]=f,p},Object.create(null))}e.extract=w,e.parse=S,e.stringify=(h,c)=>{if(!h)return"";c=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},c),l(c.arrayFormatSeparator);const g=f=>c.skipNull&&o(h[f])||c.skipEmptyString&&h[f]==="",v=i(c),p={};for(const f of Object.keys(h))g(f)||(p[f]=h[f]);const x=Object.keys(p);return c.sort!==!1&&x.sort(c.sort),x.map(f=>{const O=h[f];return O===void 0?"":O===null?u(f,c):Array.isArray(O)?O.reduce(v(f),[]).join("&"):u(f,c)+"="+u(O,c)}).filter(f=>f.length>0).join("&")},e.parseUrl=(h,c)=>{c=Object.assign({decode:!0},c);const[g,v]=n(h,"#");return Object.assign({url:g.split("?")[0]||"",query:S(w(h),c)},c&&c.parseFragmentIdentifier&&v?{fragmentIdentifier:m(v,c)}:{})},e.stringifyUrl=(h,c)=>{c=Object.assign({encode:!0,strict:!0},c);const g=b(h.url).split("?")[0]||"",v=e.extract(h.url),p=e.parse(v,{sort:!1}),x=Object.assign(p,h.query);let f=e.stringify(x,c);f&&(f=`?${f}`);let O=y(h.url);return h.fragmentIdentifier&&(O=`#${u(h.fragmentIdentifier,c)}`),`${g}${f}${O}`},e.pick=(h,c,g)=>{g=Object.assign({parseFragmentIdentifier:!0},g);const{url:v,query:p,fragmentIdentifier:x}=e.parseUrl(h,g);return e.stringifyUrl({url:v,query:a(p,c),fragmentIdentifier:x},g)},e.exclude=(h,c,g)=>{const v=Array.isArray(c)?p=>!c.includes(p):(p,x)=>!c(p,x);return e.pick(h,v,g)}})(Zn)),Zn}var na=Cp();const ur=Rp,Dp={parseNumbers:!1,parseBooleans:!1},jp={skipNull:!1,skipEmptyString:!1},Np=(e,t)=>{var r,n;const{navigateMode:a="push",parseOptions:o,stringifyOptions:i}=t||{},s=Object.assign(Object.assign({},Dp),o),l=Object.assign(Object.assign({},jp),i),u=ur.useLocation(),m=(r=ur.useHistory)===null||r===void 0?void 0:r.call(ur),d=(n=ur.useNavigate)===null||n===void 0?void 0:n.call(ur),b=Aa(),y=I.useRef(typeof e=="function"?e():e||{}),w=I.useMemo(()=>na.parse(u.search,s),[u.search]),E=I.useMemo(()=>Object.assign(Object.assign({},y.current),w),[w]);return[E,et(h=>{const c=typeof h=="function"?h(E):h;b(),m&&m[a]({hash:u.hash,search:na.stringify(Object.assign(Object.assign({},w),c),l)||"?"},u.state),d&&d({hash:u.hash,search:na.stringify(Object.assign(Object.assign({},w),c),l)||"?"},{replace:a==="replace",state:u.state})})]},cr={Array:"a",Boolean:"b",Number:"n",String:"s",Undefined:"u",Null:"N"},Js=(e,t)=>{const r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Array")return e.length?`${cr[r]}${Js(e[0],e)}`:"u_u";const n=t||[e];return r==="Boolean"?`${cr[r]}_${n.map(a=>a?1:0).join()}`:r==="String"?`${cr[r]}_${n.join()}`:r==="Null"?`${cr[r]}_${n.map(()=>"n").join()}`:r==="Number"?`${cr[r]}_${n.join()}`:`u_${n.map(()=>"u").join()}`},Ap=e=>{e=decodeURIComponent(e);const t=e.slice(0,1)==="a",r=t?e.slice(1,2):e.slice(0,1),n=t?e.slice(3).split(","):e.slice(2);return r==="b"?dr(n)?n.map(a=>a==="1"):n==="1":r==="s"?n:r==="n"?dr(n)?n.map(a=>Fo(a)):Fo(n):r==="u"?dr(n)?n.map(()=>{}):void 0:r==="N"?dr(n)?n.map(()=>null):null:n},Li=e=>Object.entries({...e}).reduce((t,[r,n])=>(t[r]=Js(n),t),{}),zi=e=>Object.entries({...e}).reduce((t,[r,n])=>(t[r]=Ap(n),t),{}),Mp={y:void 0},Ip=(e,t)=>{var h;const{useSearchParams:r}=I.useContext(Sr),{storage:n=(r==null?void 0:r.storage)||"state",stateKey:a=(r==null?void 0:r.stateKey)||"__searchParams__"}=t||r||{},o=Aa(),i=$a(),s=Ct(),[l,u]=Np(Li({...Mp,...e}),{navigateMode:"replace"}),m=n==="url"?zi(l):((h=s.state)==null?void 0:h[a])||{},{current:d}=I.useRef({...e,...m}),b=c=>{typeof c=="function"?Object.assign(d,c(d)):Object.assign(d,c),o()},y=async c=>{const g={...c,y:window.scrollY};if(n==="url"){u(Li(g));return}i(s.pathname,{replace:!0,state:{...s.state,[a]:g}})},w=()=>{if(n!=="url")return;const c=zi(l);Object.keys(c).forEach(g=>{c[g]=void 0}),u(c)};I.useEffect(()=>{n==="url"&&l?w():n==="state"&&y({}).catch(Br)},[]);const E=I.useRef(null),S=I.useRef(!1);return Vs(({currentLocation:c,nextLocation:g,historyAction:v})=>c.pathname!==g.pathname?n==="url"?c.search?!1:(E.current={...g,historyAction:v},y(d).catch(Br),!0):S.current?!1:(E.current={...g,historyAction:v},y(d).catch(Br),!0):(g.pathname===c.pathname&&E.current!==null&&(n==="url"&&g.search!==c.search||n==="state"&&!S.current)&&(setTimeout(()=>{const p=E.current,x=`${p.pathname}${p.search}`;i(x,{replace:p.historyAction!=="PUSH",state:p.state}),S.current=!1,E.current=null},0),S.current=!0),!1)),{searchParams:d,setSearchParams:b}};exports.App=ku;exports.CheckboxValue=zu;exports.ConfigContext=Sr;exports.ConfigProvider=ls;exports.GlobalLoading=os;exports.IconButton=pc;exports.IconFont=Ca;exports.SearchArea=pn;exports.SwitchValue=$u;exports.Table=Cf;exports.useRequest=zf;exports.useSearchParams=Ip;exports.useTable=Wf;
|
|
363
|
+
`+('Please change the parent <Route path="'+c+'"> to <Route ')+('path="'+(c==="/"?"*":c+"/*")+'">.'))}let d=Ct(),b;if(t){var y;let c=typeof t=="string"?Ge(t):t;u==="/"||(y=c.pathname)!=null&&y.startsWith(u)||(process.env.NODE_ENV!=="production"?K(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+u+'" ')+('but pathname "'+c.pathname+'" was given in the `location` prop.')):K(!1)),b=c}else b=d;let w=b.pathname||"/",E=w;if(u!=="/"){let c=u.replace(/^\//,"").split("/");E="/"+w.replace(/^\//,"").split("/").slice(c.length).join("/")}let S=dt(e,{pathname:E});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&je(m||S!=null,'No routes matched location "'+b.pathname+b.search+b.hash+'" '),process.env.NODE_ENV!=="production"&&je(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,'Matched leaf route at location "'+b.pathname+b.search+b.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let h=Bs(S&&S.map(c=>Object.assign({},c,{params:Object.assign({},s,c.params),pathname:ot([u,a.encodeLocation?a.encodeLocation(c.pathname).pathname:c.pathname]),pathnameBase:c.pathnameBase==="/"?u:ot([u,a.encodeLocation?a.encodeLocation(c.pathnameBase).pathname:c.pathnameBase])})),o,r,n);return t&&h?D.createElement(Tt.Provider,{value:{location:ht({pathname:"/",search:"",hash:"",state:null,key:"default"},b),navigationType:Oe.Pop}},h):h}function Gd(){let e=Hs(),t=Wt(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:n},o={padding:"2px 4px",backgroundColor:n},i=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",e),i=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:o},"ErrorBoundary")," or"," ",D.createElement("code",{style:o},"errorElement")," prop on your route."))),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),r?D.createElement("pre",{style:a},r):null,i)}const Kd=D.createElement(Gd,null);class Jd extends D.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?D.createElement(Ye.Provider,{value:this.props.routeContext},D.createElement(za.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Zd(e){let{routeContext:t,match:r,children:n}=e,a=D.useContext(Yt);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),D.createElement(Ye.Provider,{value:t},n)}function Bs(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var o;if(!r)return null;if(r.errors)e=r.matches;else if((o=n)!=null&&o.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let m=i.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);m>=0||(process.env.NODE_ENV!=="production"?K(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(s).join(",")):K(!1)),i=i.slice(0,Math.min(i.length,m+1))}let l=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let m=0;m<i.length;m++){let d=i[m];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=m),d.route.id){let{loaderData:b,errors:y}=r,w=d.route.loader&&b[d.route.id]===void 0&&(!y||y[d.route.id]===void 0);if(d.route.lazy||w){l=!0,u>=0?i=i.slice(0,u+1):i=[i[0]];break}}}return i.reduceRight((m,d,b)=>{let y,w=!1,E=null,S=null;r&&(y=s&&d.route.id?s[d.route.id]:void 0,E=d.route.errorElement||Kd,l&&(u<0&&b===0?(Xs("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,S=null):u===b&&(w=!0,S=d.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,b+1)),c=()=>{let g;return y?g=E:w?g=S:d.route.Component?g=D.createElement(d.route.Component,null):d.route.element?g=d.route.element:g=m,D.createElement(Zd,{match:d,routeContext:{outlet:m,matches:h,isDataRoute:r!=null},children:g})};return r&&(d.route.ErrorBoundary||d.route.errorElement||b===0)?D.createElement(Jd,{location:r.location,revalidation:r.revalidation,component:E,error:y,children:c(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):c()},null)}var vn=(function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e})(vn||{}),Ue=(function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e})(Ue||{});function Wa(e){return e+" must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router."}function qa(e){let t=D.useContext(Yt);return t||(process.env.NODE_ENV!=="production"?K(!1,Wa(e)):K(!1)),t}function gt(e){let t=D.useContext(gn);return t||(process.env.NODE_ENV!=="production"?K(!1,Wa(e)):K(!1)),t}function Qd(e){let t=D.useContext(Ye);return t||(process.env.NODE_ENV!=="production"?K(!1,Wa(e)):K(!1)),t}function Rr(e){let t=Qd(e),r=t.matches[t.matches.length-1];return r.route.id||(process.env.NODE_ENV!=="production"?K(!1,e+' can only be used on routes that contain a unique "id"'):K(!1)),r.route.id}function ep(){return Rr(Ue.UseRouteId)}function tp(){return gt(Ue.UseNavigation).navigation}function rp(){let e=qa(vn.UseRevalidator),t=gt(Ue.UseRevalidator);return D.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function np(){let{matches:e,loaderData:t}=gt(Ue.UseMatches);return D.useMemo(()=>e.map(r=>Os(r,t)),[e,t])}function ap(){let e=gt(Ue.UseLoaderData),t=Rr(Ue.UseLoaderData);if(e.errors&&e.errors[t]!=null){console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")");return}return e.loaderData[t]}function op(e){return gt(Ue.UseRouteLoaderData).loaderData[e]}function ip(){let e=gt(Ue.UseActionData),t=Rr(Ue.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function Hs(){var e;let t=D.useContext(za),r=gt(Ue.UseRouteError),n=Rr(Ue.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Ys(){let e=D.useContext(yr);return e==null?void 0:e._data}function sp(){let e=D.useContext(yr);return e==null?void 0:e._error}let lp=0;function Vs(e){let{router:t,basename:r}=qa(vn.UseBlocker),n=gt(Ue.UseBlocker),[a,o]=D.useState(""),i=D.useCallback(s=>{if(typeof e!="function")return!!e;if(r==="/")return e(s);let{currentLocation:l,nextLocation:u,historyAction:m}=s;return e({currentLocation:ht({},l,{pathname:_t(l.pathname,r)||l.pathname}),nextLocation:ht({},u,{pathname:_t(u.pathname,r)||u.pathname}),historyAction:m})},[r,e]);return D.useEffect(()=>{let s=String(++lp);return o(s),()=>t.deleteBlocker(s)},[t]),D.useEffect(()=>{a!==""&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):Ft}function up(){let{router:e}=qa(vn.UseNavigateStable),t=Rr(Ue.UseNavigateStable),r=D.useRef(!1);return zs(()=>{r.current=!0}),D.useCallback(function(a,o){o===void 0&&(o={}),process.env.NODE_ENV!=="production"&&je(r.current,Ls),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,ht({fromRouteId:t},o)))},[e,t])}const ji={};function Xs(e,t,r){!t&&!ji[e]&&(ji[e]=!0,process.env.NODE_ENV!=="production"&&je(!1,r))}const Ni={};function cp(e,t){process.env.NODE_ENV!=="production"&&!Ni[t]&&(Ni[t]=!0,console.warn(t))}const It=(e,t,r)=>cp(e,"⚠️ React Router Future Flag Warning: "+t+". "+("You can use the `"+e+"` future flag to opt-in early. ")+("For more information, see "+r+"."));function Ba(e,t){(e==null?void 0:e.v7_startTransition)===void 0&&It("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath===void 0)&&It("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),t&&(t.v7_fetcherPersist===void 0&&It("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod===void 0&&It("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration===void 0&&It("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation===void 0&&It("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation"))}const fp="startTransition",rn=D[fp];function dp(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=D.useState(r.state),{v7_startTransition:i}=n||{},s=D.useCallback(d=>{i&&rn?rn(()=>o(d)):o(d)},[o,i]);D.useLayoutEffect(()=>r.subscribe(s),[r,s]),D.useEffect(()=>{process.env.NODE_ENV!=="production"&&je(t==null||!r.future.v7_partialHydration,"`<RouterProvider fallbackElement>` is deprecated when using `v7_partialHydration`, use a `HydrateFallback` component instead")},[]);let l=D.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:d=>r.navigate(d),push:(d,b,y)=>r.navigate(d,{state:b,preventScrollReset:y==null?void 0:y.preventScrollReset}),replace:(d,b,y)=>r.navigate(d,{replace:!0,state:b,preventScrollReset:y==null?void 0:y.preventScrollReset})}),[r]),u=r.basename||"/",m=D.useMemo(()=>({router:r,navigator:l,static:!1,basename:u}),[r,l,u]);return D.useEffect(()=>Ba(n,r.future),[r,n]),D.createElement(D.Fragment,null,D.createElement(Yt.Provider,{value:m},D.createElement(gn.Provider,{value:a},D.createElement(Ha,{basename:u,location:a.location,navigationType:a.historyAction,navigator:l,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},a.initialized||r.future.v7_partialHydration?D.createElement(pp,{routes:r.routes,future:r.future,state:a}):t))),null)}function pp(e){let{routes:t,future:r,state:n}=e;return Ua(t,void 0,n,r)}function hp(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,i=D.useRef();i.current==null&&(i.current=Ps({initialEntries:n,initialIndex:a,v5Compat:!0}));let s=i.current,[l,u]=D.useState({action:s.action,location:s.location}),{v7_startTransition:m}=o||{},d=D.useCallback(b=>{m&&rn?rn(()=>u(b)):u(b)},[u,m]);return D.useLayoutEffect(()=>s.listen(d),[s,d]),D.useEffect(()=>Ba(o),[o]),D.createElement(Ha,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:s,future:o})}function mp(e){let{to:t,replace:r,state:n,relative:a}=e;mt()||(process.env.NODE_ENV!=="production"?K(!1,"<Navigate> may be used only in the context of a <Router> component."):K(!1));let{future:o,static:i}=D.useContext(it);process.env.NODE_ENV!=="production"&&je(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:s}=D.useContext(Ye),{pathname:l}=Ct(),u=$a(),m=mn(t,hn(s,o.v7_relativeSplatPath),l,a==="path"),d=JSON.stringify(m);return D.useEffect(()=>u(JSON.parse(d),{replace:r,state:n,relative:a}),[u,d,a,r,n]),null}function gp(e){return Us(e.context)}function Gs(e){process.env.NODE_ENV!=="production"?K(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>."):K(!1)}function Ha(e){let{basename:t="/",children:r=null,location:n,navigationType:a=Oe.Pop,navigator:o,static:i=!1,future:s}=e;mt()&&(process.env.NODE_ENV!=="production"?K(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):K(!1));let l=t.replace(/^\/*/,"/"),u=D.useMemo(()=>({basename:l,navigator:o,static:i,future:ht({v7_relativeSplatPath:!1},s)}),[l,s,o,i]);typeof n=="string"&&(n=Ge(n));let{pathname:m="/",search:d="",hash:b="",state:y=null,key:w="default"}=n,E=D.useMemo(()=>{let S=_t(m,l);return S==null?null:{location:{pathname:S,search:d,hash:b,state:y,key:w},navigationType:a}},[l,m,d,b,y,w,a]);return process.env.NODE_ENV!=="production"&&je(E!=null,'<Router basename="'+l+'"> is not able to match the URL '+('"'+m+d+b+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),E==null?null:D.createElement(it.Provider,{value:u},D.createElement(Tt.Provider,{children:r,value:E}))}function vp(e){let{children:t,location:r}=e;return qs(br(t),r)}function yp(e){let{children:t,errorElement:r,resolve:n}=e;return D.createElement(Ep,{resolve:n,errorElement:r},D.createElement(xp,null,t))}var He=(function(e){return e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error",e})(He||{});const bp=new Promise(()=>{});class Ep extends D.Component{constructor(t){super(t),this.state={error:null}}static getDerivedStateFromError(t){return{error:t}}componentDidCatch(t,r){console.error("<Await> caught the following error during render",t,r)}render(){let{children:t,errorElement:r,resolve:n}=this.props,a=null,o=He.pending;if(!(n instanceof Promise))o=He.success,a=Promise.resolve(),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_data",{get:()=>n});else if(this.state.error){o=He.error;let i=this.state.error;a=Promise.reject().catch(()=>{}),Object.defineProperty(a,"_tracked",{get:()=>!0}),Object.defineProperty(a,"_error",{get:()=>i})}else n._tracked?(a=n,o="_error"in a?He.error:"_data"in a?He.success:He.pending):(o=He.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),a=n.then(i=>Object.defineProperty(n,"_data",{get:()=>i}),i=>Object.defineProperty(n,"_error",{get:()=>i})));if(o===He.error&&a._error instanceof tn)throw bp;if(o===He.error&&!r)throw a._error;if(o===He.error)return D.createElement(yr.Provider,{value:a,children:r});if(o===He.success)return D.createElement(yr.Provider,{value:a,children:t});throw a}}function xp(e){let{children:t}=e,r=Ys(),n=typeof t=="function"?t(r):t;return D.createElement(D.Fragment,null,n)}function br(e,t){t===void 0&&(t=[]);let r=[];return D.Children.forEach(e,(n,a)=>{if(!D.isValidElement(n))return;let o=[...t,a];if(n.type===D.Fragment){r.push.apply(r,br(n.props.children,o));return}n.type!==Gs&&(process.env.NODE_ENV!=="production"?K(!1,"["+(typeof n.type=="string"?n.type:n.type.name)+"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>"):K(!1)),!n.props.index||!n.props.children||(process.env.NODE_ENV!=="production"?K(!1,"An index route cannot have child routes."):K(!1));let i={id:n.props.id||o.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(i.children=br(n.props.children,o)),r.push(i)}),r}function Sp(e){return Bs(e)}function Ks(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(process.env.NODE_ENV!=="production"&&e.element&&process.env.NODE_ENV!=="production"&&je(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:D.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(process.env.NODE_ENV!=="production"&&e.hydrateFallbackElement&&process.env.NODE_ENV!=="production"&&je(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:D.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(process.env.NODE_ENV!=="production"&&e.errorElement&&process.env.NODE_ENV!=="production"&&je(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:D.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}function wp(e,t){return wd({basename:t==null?void 0:t.basename,future:ht({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:Ps({initialEntries:t==null?void 0:t.initialEntries,initialIndex:t==null?void 0:t.initialIndex}),hydrationData:t==null?void 0:t.hydrationData,routes:e,mapRouteProperties:Ks,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation}).initialize()}const Rp=Object.freeze(Object.defineProperty({__proto__:null,AbortedDeferredError:tn,Await:yp,MemoryRouter:hp,Navigate:mp,get NavigationType(){return Oe},Outlet:gp,Route:Gs,Router:Ha,RouterProvider:dp,Routes:vp,UNSAFE_DataRouterContext:Yt,UNSAFE_DataRouterStateContext:gn,UNSAFE_LocationContext:Tt,UNSAFE_NavigationContext:it,UNSAFE_RouteContext:Ye,UNSAFE_logV6DeprecationWarnings:Ba,UNSAFE_mapRouteProperties:Ks,UNSAFE_useRouteId:ep,UNSAFE_useRoutesImpl:Ua,createMemoryRouter:wp,createPath:wr,createRoutesFromChildren:br,createRoutesFromElements:br,defer:pd,generatePath:rd,isRouteErrorResponse:Wt,json:ud,matchPath:en,matchRoutes:dt,parsePath:Ge,redirect:Ia,redirectDocument:hd,renderMatches:Sp,replace:md,resolvePath:Ds,useActionData:ip,useAsyncError:sp,useAsyncValue:Ys,useBlocker:Vs,useHref:qd,useInRouterContext:mt,useLoaderData:ap,useLocation:Ct,useMatch:Hd,useMatches:np,useNavigate:$a,useNavigation:tp,useNavigationType:Bd,useOutlet:Us,useOutletContext:Vd,useParams:Xd,useResolvedPath:Ws,useRevalidator:rp,useRouteError:Hs,useRouteLoaderData:op,useRoutes:qs},Symbol.toStringTag,{value:"Module"}));var Zn={},Qn,Ai;function Pp(){return Ai||(Ai=1,Qn=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Qn}var ea,Mi;function Op(){if(Mi)return ea;Mi=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(i,s){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;s=s||1;var l=i.slice(0,s),u=i.slice(s);return Array.prototype.concat.call([],n(l),n(u))}function a(i){try{return decodeURIComponent(i)}catch{for(var s=i.match(t)||[],l=1;l<s.length;l++)i=n(s,l).join(""),s=i.match(t)||[];return i}}function o(i){for(var s={"%FE%FF":"��","%FF%FE":"��"},l=r.exec(i);l;){try{s[l[0]]=decodeURIComponent(l[0])}catch{var u=a(l[0]);u!==l[0]&&(s[l[0]]=u)}l=r.exec(i)}s["%C2"]="�";for(var m=Object.keys(s),d=0;d<m.length;d++){var b=m[d];i=i.replace(new RegExp(b,"g"),s[b])}return i}return ea=function(i){if(typeof i!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof i+"`");try{return i=i.replace(/\+/g," "),decodeURIComponent(i)}catch{return o(i)}},ea}var ta,Ii;function _p(){return Ii||(Ii=1,ta=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),ta}var ra,ki;function Tp(){return ki||(ki=1,ra=function(e,t){for(var r={},n=Object.keys(e),a=Array.isArray(t),o=0;o<n.length;o++){var i=n[o],s=e[i];(a?t.indexOf(i)!==-1:t(i,s,e))&&(r[i]=s)}return r}),ra}var Fi;function Cp(){return Fi||(Fi=1,(function(e){const t=Pp(),r=Op(),n=_p(),a=Tp(),o=h=>h==null;function i(h){switch(h.arrayFormat){case"index":return c=>(g,v)=>{const p=g.length;return v===void 0||h.skipNull&&v===null||h.skipEmptyString&&v===""?g:v===null?[...g,[u(c,h),"[",p,"]"].join("")]:[...g,[u(c,h),"[",u(p,h),"]=",u(v,h)].join("")]};case"bracket":return c=>(g,v)=>v===void 0||h.skipNull&&v===null||h.skipEmptyString&&v===""?g:v===null?[...g,[u(c,h),"[]"].join("")]:[...g,[u(c,h),"[]=",u(v,h)].join("")];case"comma":case"separator":return c=>(g,v)=>v==null||v.length===0?g:g.length===0?[[u(c,h),"=",u(v,h)].join("")]:[[g,u(v,h)].join(h.arrayFormatSeparator)];default:return c=>(g,v)=>v===void 0||h.skipNull&&v===null||h.skipEmptyString&&v===""?g:v===null?[...g,u(c,h)]:[...g,[u(c,h),"=",u(v,h)].join("")]}}function s(h){let c;switch(h.arrayFormat){case"index":return(g,v,p)=>{if(c=/\[(\d*)\]$/.exec(g),g=g.replace(/\[\d*\]$/,""),!c){p[g]=v;return}p[g]===void 0&&(p[g]={}),p[g][c[1]]=v};case"bracket":return(g,v,p)=>{if(c=/(\[\])$/.exec(g),g=g.replace(/\[\]$/,""),!c){p[g]=v;return}if(p[g]===void 0){p[g]=[v];return}p[g]=[].concat(p[g],v)};case"comma":case"separator":return(g,v,p)=>{const x=typeof v=="string"&&v.includes(h.arrayFormatSeparator),f=typeof v=="string"&&!x&&m(v,h).includes(h.arrayFormatSeparator);v=f?m(v,h):v;const P=x||f?v.split(h.arrayFormatSeparator).map(j=>m(j,h)):v===null?v:m(v,h);p[g]=P};default:return(g,v,p)=>{if(p[g]===void 0){p[g]=v;return}p[g]=[].concat(p[g],v)}}}function l(h){if(typeof h!="string"||h.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(h,c){return c.encode?c.strict?t(h):encodeURIComponent(h):h}function m(h,c){return c.decode?r(h):h}function d(h){return Array.isArray(h)?h.sort():typeof h=="object"?d(Object.keys(h)).sort((c,g)=>Number(c)-Number(g)).map(c=>h[c]):h}function b(h){const c=h.indexOf("#");return c!==-1&&(h=h.slice(0,c)),h}function y(h){let c="";const g=h.indexOf("#");return g!==-1&&(c=h.slice(g)),c}function w(h){h=b(h);const c=h.indexOf("?");return c===-1?"":h.slice(c+1)}function E(h,c){return c.parseNumbers&&!Number.isNaN(Number(h))&&typeof h=="string"&&h.trim()!==""?h=Number(h):c.parseBooleans&&h!==null&&(h.toLowerCase()==="true"||h.toLowerCase()==="false")&&(h=h.toLowerCase()==="true"),h}function S(h,c){c=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},c),l(c.arrayFormatSeparator);const g=s(c),v=Object.create(null);if(typeof h!="string"||(h=h.trim().replace(/^[?#&]/,""),!h))return v;for(const p of h.split("&")){if(p==="")continue;let[x,f]=n(c.decode?p.replace(/\+/g," "):p,"=");f=f===void 0?null:["comma","separator"].includes(c.arrayFormat)?f:m(f,c),g(m(x,c),f,v)}for(const p of Object.keys(v)){const x=v[p];if(typeof x=="object"&&x!==null)for(const f of Object.keys(x))x[f]=E(x[f],c);else v[p]=E(x,c)}return c.sort===!1?v:(c.sort===!0?Object.keys(v).sort():Object.keys(v).sort(c.sort)).reduce((p,x)=>{const f=v[x];return f&&typeof f=="object"&&!Array.isArray(f)?p[x]=d(f):p[x]=f,p},Object.create(null))}e.extract=w,e.parse=S,e.stringify=(h,c)=>{if(!h)return"";c=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},c),l(c.arrayFormatSeparator);const g=f=>c.skipNull&&o(h[f])||c.skipEmptyString&&h[f]==="",v=i(c),p={};for(const f of Object.keys(h))g(f)||(p[f]=h[f]);const x=Object.keys(p);return c.sort!==!1&&x.sort(c.sort),x.map(f=>{const P=h[f];return P===void 0?"":P===null?u(f,c):Array.isArray(P)?P.reduce(v(f),[]).join("&"):u(f,c)+"="+u(P,c)}).filter(f=>f.length>0).join("&")},e.parseUrl=(h,c)=>{c=Object.assign({decode:!0},c);const[g,v]=n(h,"#");return Object.assign({url:g.split("?")[0]||"",query:S(w(h),c)},c&&c.parseFragmentIdentifier&&v?{fragmentIdentifier:m(v,c)}:{})},e.stringifyUrl=(h,c)=>{c=Object.assign({encode:!0,strict:!0},c);const g=b(h.url).split("?")[0]||"",v=e.extract(h.url),p=e.parse(v,{sort:!1}),x=Object.assign(p,h.query);let f=e.stringify(x,c);f&&(f=`?${f}`);let P=y(h.url);return h.fragmentIdentifier&&(P=`#${u(h.fragmentIdentifier,c)}`),`${g}${f}${P}`},e.pick=(h,c,g)=>{g=Object.assign({parseFragmentIdentifier:!0},g);const{url:v,query:p,fragmentIdentifier:x}=e.parseUrl(h,g);return e.stringifyUrl({url:v,query:a(p,c),fragmentIdentifier:x},g)},e.exclude=(h,c,g)=>{const v=Array.isArray(c)?p=>!c.includes(p):(p,x)=>!c(p,x);return e.pick(h,v,g)}})(Zn)),Zn}var na=Cp();const ur=Rp,Dp={parseNumbers:!1,parseBooleans:!1},jp={skipNull:!1,skipEmptyString:!1},Np=(e,t)=>{var r,n;const{navigateMode:a="push",parseOptions:o,stringifyOptions:i}=t||{},s=Object.assign(Object.assign({},Dp),o),l=Object.assign(Object.assign({},jp),i),u=ur.useLocation(),m=(r=ur.useHistory)===null||r===void 0?void 0:r.call(ur),d=(n=ur.useNavigate)===null||n===void 0?void 0:n.call(ur),b=Aa(),y=M.useRef(typeof e=="function"?e():e||{}),w=M.useMemo(()=>na.parse(u.search,s),[u.search]),E=M.useMemo(()=>Object.assign(Object.assign({},y.current),w),[w]);return[E,et(h=>{const c=typeof h=="function"?h(E):h;b(),m&&m[a]({hash:u.hash,search:na.stringify(Object.assign(Object.assign({},w),c),l)||"?"},u.state),d&&d({hash:u.hash,search:na.stringify(Object.assign(Object.assign({},w),c),l)||"?"},{replace:a==="replace",state:u.state})})]},cr={Array:"a",Boolean:"b",Number:"n",String:"s",Undefined:"u",Null:"N"},Js=(e,t)=>{const r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Array")return e.length?`${cr[r]}${Js(e[0],e)}`:"u_u";const n=t||[e];return r==="Boolean"?`${cr[r]}_${n.map(a=>a?1:0).join()}`:r==="String"?`${cr[r]}_${n.join()}`:r==="Null"?`${cr[r]}_${n.map(()=>"n").join()}`:r==="Number"?`${cr[r]}_${n.join()}`:`u_${n.map(()=>"u").join()}`},Ap=e=>{e=decodeURIComponent(e);const t=e.slice(0,1)==="a",r=t?e.slice(1,2):e.slice(0,1),n=t?e.slice(3).split(","):e.slice(2);return r==="b"?dr(n)?n.map(a=>a==="1"):n==="1":r==="s"?n:r==="n"?dr(n)?n.map(a=>Fo(a)):Fo(n):r==="u"?dr(n)?n.map(()=>{}):void 0:r==="N"?dr(n)?n.map(()=>null):null:n},Li=e=>Object.entries({...e}).reduce((t,[r,n])=>(t[r]=Js(n),t),{}),zi=e=>Object.entries({...e}).reduce((t,[r,n])=>(t[r]=Ap(n),t),{}),Mp={y:void 0},Ip=(e,t)=>{var h;const{useSearchParams:r}=M.useContext(Sr),{storage:n=(r==null?void 0:r.storage)||"state",stateKey:a=(r==null?void 0:r.stateKey)||"__searchParams__"}=t||r||{},o=Aa(),i=$a(),s=Ct(),[l,u]=Np(Li({...Mp,...e}),{navigateMode:"replace"}),m=n==="url"?zi(l):((h=s.state)==null?void 0:h[a])||{},{current:d}=M.useRef({...e,...m}),b=c=>{typeof c=="function"?Object.assign(d,c(d)):Object.assign(d,c),o()},y=async c=>{const g={...c,y:window.scrollY};if(n==="url"){u(Li(g));return}i(s.pathname,{replace:!0,state:{...s.state,[a]:g}})},w=()=>{if(n!=="url")return;const c=zi(l);Object.keys(c).forEach(g=>{c[g]=void 0}),u(c)};M.useEffect(()=>{n==="url"&&l?w():n==="state"&&y({}).catch(Br)},[]);const E=M.useRef(null),S=M.useRef(!1);return Vs(({currentLocation:c,nextLocation:g,historyAction:v})=>v==="POP"?!1:c.pathname!==g.pathname?n==="url"?c.search?!1:(E.current={...g,historyAction:v},y(d).catch(Br),!0):S.current?!1:(E.current={...g,historyAction:v},y(d).catch(Br),!0):(g.pathname===c.pathname&&E.current!==null&&(n==="url"&&g.search!==c.search||n==="state"&&!S.current)&&(setTimeout(()=>{const p=E.current,x=`${p.pathname}${p.search}`;i(x,{replace:p.historyAction!=="PUSH",state:p.state}),S.current=!1,E.current=null},0),S.current=!0),!1)),{searchParams:d,setSearchParams:b}};exports.App=ku;exports.CheckboxValue=zu;exports.ConfigContext=Sr;exports.ConfigProvider=ls;exports.GlobalLoading=os;exports.IconButton=pc;exports.IconFont=Ca;exports.SearchArea=pn;exports.SwitchValue=$u;exports.Table=Cf;exports.useRequest=zf;exports.useSearchParams=Ip;exports.useTable=Wf;
|