xmirror-components 1.0.39 → 1.0.40-alpha.2

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.
Files changed (67) hide show
  1. package/build/dist/index.cjs +31 -109
  2. package/build/dist/index.mjs +3940 -10397
  3. package/build/es/components/AntdApp/index.d.ts +1 -2
  4. package/build/es/components/AntdApp/index.js +2 -5
  5. package/build/es/components/CheckboxValue/index.d.ts +1 -1
  6. package/build/es/components/CheckboxValue/index.js +2 -2
  7. package/build/es/components/ConfigProvider/index.d.ts +1 -1
  8. package/build/es/components/ConfigProvider/index.js +3 -3
  9. package/build/es/components/GlobalLoading/index.d.ts +1 -2
  10. package/build/es/components/GlobalLoading/index.js +8 -19
  11. package/build/es/components/IconButton/index.js +5 -6
  12. package/build/es/components/IconFont/index.js +5 -5
  13. package/build/es/components/IntlProvider/index.d.ts +1 -1
  14. package/build/es/components/IntlProvider/index.js +3 -2
  15. package/build/es/components/SearchArea/Item/index.d.ts +2 -2
  16. package/build/es/components/SearchArea/Item/index.js +4 -2
  17. package/build/es/components/SearchArea/ToggleButton/index.d.ts +1 -2
  18. package/build/es/components/SearchArea/ToggleButton/index.js +3 -4
  19. package/build/es/components/SearchArea/index.js +13 -24
  20. package/build/es/components/SwitchValue/index.d.ts +1 -1
  21. package/build/es/components/SwitchValue/index.js +2 -2
  22. package/build/es/components/Table/Footer/index.d.ts +1 -2
  23. package/build/es/components/Table/Footer/index.js +10 -20
  24. package/build/es/components/Table/PopoverSetColumns/index.d.ts +1 -2
  25. package/build/es/components/Table/PopoverSetColumns/index.js +9 -12
  26. package/build/es/components/Table/PopoverSetColumns/styles.d.ts +0 -4
  27. package/build/es/components/Table/PopoverSetColumns/styles.js +2 -3
  28. package/build/es/components/Table/ResizableColumns/index.js +4 -5
  29. package/build/es/components/Table/index.js +8 -11
  30. package/build/es/components/TagGroup/index.d.ts +40 -0
  31. package/build/es/components/TagGroup/index.js +33 -0
  32. package/build/es/hooks/useSearchParams/index.js +38 -17
  33. package/build/es/hooks/useTable/index.js +30 -14
  34. package/build/lib/components/AntdApp/index.js +2 -5
  35. package/build/lib/components/CheckboxValue/index.js +2 -5
  36. package/build/lib/components/ConfigProvider/index.js +3 -3
  37. package/build/lib/components/GlobalLoading/index.js +8 -52
  38. package/build/lib/components/IconButton/index.js +5 -6
  39. package/build/lib/components/IconFont/index.js +5 -38
  40. package/build/lib/components/IntlProvider/index.js +3 -2
  41. package/build/lib/components/SearchArea/Item/index.js +4 -2
  42. package/build/lib/components/SearchArea/ToggleButton/index.js +3 -37
  43. package/build/lib/components/SearchArea/index.js +13 -57
  44. package/build/lib/components/SwitchValue/index.js +2 -5
  45. package/build/lib/components/Table/Footer/index.js +10 -53
  46. package/build/lib/components/Table/PopoverSetColumns/index.js +9 -45
  47. package/build/lib/components/Table/PopoverSetColumns/styles.js +3 -4
  48. package/build/lib/components/Table/ResizableColumns/index.js +4 -38
  49. package/build/lib/components/Table/index.js +8 -44
  50. package/build/lib/components/TagGroup/index.js +35 -0
  51. package/build/lib/hooks/useSearchParams/index.js +36 -18
  52. package/build/lib/hooks/useTable/index.js +30 -14
  53. package/build/lib/index.d.ts +9 -7
  54. package/build/package.json +13 -12
  55. package/build/types/components/AntdApp/index.d.ts +1 -2
  56. package/build/types/components/CheckboxValue/index.d.ts +1 -1
  57. package/build/types/components/ConfigProvider/index.d.ts +1 -1
  58. package/build/types/components/GlobalLoading/index.d.ts +1 -2
  59. package/build/types/components/IntlProvider/index.d.ts +1 -1
  60. package/build/types/components/SearchArea/Item/index.d.ts +2 -2
  61. package/build/types/components/SearchArea/ToggleButton/index.d.ts +1 -2
  62. package/build/types/components/SwitchValue/index.d.ts +1 -1
  63. package/build/types/components/Table/Footer/index.d.ts +1 -2
  64. package/build/types/components/Table/PopoverSetColumns/index.d.ts +1 -2
  65. package/build/types/components/Table/PopoverSetColumns/styles.d.ts +0 -4
  66. package/build/types/components/TagGroup/index.d.ts +40 -0
  67. package/package.json +13 -12
@@ -1,62 +1,13 @@
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
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var no;function dl(){if(no)return Jt;no=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,a,o){var i=null;if(o!==void 0&&(i=""+o),a.key!==void 0&&(i=""+a.key),"key"in a){o={};for(var s in a)s!=="key"&&(o[s]=a[s])}else o=a;return a=o.ref,{$$typeof:e,type:n,key:i,ref:a!==void 0?a:null,props:o}}return Jt.Fragment=t,Jt.jsx=r,Jt.jsxs=r,Jt}var Zt={};/**
10
- * @license React
11
- * react-jsx-runtime.development.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
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(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:
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));let l=require(`react`);l=c(l);let u=require(`antd`),d=require(`react-transition-group`),f=require(`lodash-es`),p=require(`ahooks`),m=require(`@ant-design/icons`),h=require(`react-router-dom`);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(null,arguments)}var _=!1;function v(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 y(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 b=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!_:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(y(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=v(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),x=`-ms-`,S=`-moz-`,C=`-webkit-`,w=`comm`,T=`rule`,E=`decl`,D=`@import`,O=`@keyframes`,k=`@layer`,A=Math.abs,j=String.fromCharCode,M=Object.assign;function N(e,t){return R(e,0)^45?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}function P(e){return e.trim()}function F(e,t){return(e=t.exec(e))?e[0]:e}function I(e,t,n){return e.replace(t,n)}function L(e,t){return e.indexOf(t)}function R(e,t){return e.charCodeAt(t)|0}function z(e,t,n){return e.slice(t,n)}function B(e){return e.length}function ee(e){return e.length}function V(e,t){return t.push(e),e}function te(e,t){return e.map(t).join(``)}var H=1,U=1,ne=0,W=0,G=0,K=``;function re(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:H,column:U,length:o,return:``}}function ie(e,t){return M(re(``,null,null,``,null,null,0),e,{length:-e.length},t)}function ae(){return G}function oe(){return G=W>0?R(K,--W):0,U--,G===10&&(U=1,H--),G}function q(){return G=W<ne?R(K,W++):0,U++,G===10&&(U=1,H++),G}function J(){return R(K,W)}function se(){return W}function ce(e,t){return z(K,e,t)}function le(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 ue(e){return H=U=1,ne=B(K=e),W=0,[]}function de(e){return K=``,e}function fe(e){return P(ce(W-1,he(e===91?e+2:e===40?e+1:e)))}function pe(e){for(;(G=J())&&G<33;)q();return le(e)>2||le(G)>3?``:` `}function me(e,t){for(;--t&&q()&&!(G<48||G>102||G>57&&G<65||G>70&&G<97););return ce(e,se()+(t<6&&J()==32&&q()==32))}function he(e){for(;q();)switch(G){case e:return W;case 34:case 39:e!==34&&e!==39&&he(G);break;case 40:e===41&&he(e);break;case 92:q();break}return W}function ge(e,t){for(;q()&&e+G!==57&&!(e+G===84&&J()===47););return`/*`+ce(t,W-1)+`*`+j(e===47?e:q())}function _e(e){for(;!le(J());)q();return ce(e,W)}function ve(e){return de(ye(``,null,null,null,[``],e=ue(e),0,[0],e))}function ye(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=q()){case 40:if(m!=108&&R(C,d-1)==58){L(C+=I(fe(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=fe(v);break;case 9:case 10:case 13:case 32:C+=pe(m);break;case 92:C+=me(se()-1,7);continue;case 47:switch(J()){case 42:case 47:V(xe(ge(q(),se()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=B(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=I(C,/\f/g,``)),p>0&&B(C)-d&&V(p>32?Se(C+`;`,r,n,d-1):Se(I(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(V(S=be(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)ye(C,t,S,S,b,a,d,s,x);else switch(f===99&&R(C,3)===110?100:f){case 100:case 108:case 109:case 115:ye(e,S,S,r&&V(be(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:ye(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+B(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&oe()==125)continue}switch(C+=j(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(B(C)-1)*_,_=1;break;case 64:J()===45&&(C+=fe(q())),f=J(),u=d=B(y=C+=_e(se())),v++;break;case 45:m===45&&B(C)==2&&(h=0)}}return a}function be(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=ee(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=z(e,d+1,d=A(h=o[m])),y=e;_<p;++_)(y=P(h>0?f[_]+` `+v:I(v,/&\f/g,f[_])))&&(c[g++]=y);return re(e,t,n,i===0?T:s,c,l,u)}function xe(e,t,n){return re(e,t,n,w,j(ae()),z(e,2,-2),0)}function Se(e,t,n,r){return re(e,t,n,E,z(e,0,r),z(e,r+1,-1),r)}function Y(e,t){for(var n=``,r=ee(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Ce(e,t,n,r){switch(e.type){case k:if(e.children.length)break;case D:case E:return e.return=e.return||e.value;case w:return``;case O:return e.return=e.value+`{`+Y(e.children,r)+`}`;case T:e.value=e.props.join(`,`)}return B(n=Y(e.children,r))?e.return=e.value+`{`+n+`}`:``}function we(e){var t=ee(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Te(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ee(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var De=function(e,t,n){for(var r=0,i=0;r=i,i=J(),r===38&&i===12&&(t[n]=1),!le(i);)q();return ce(e,W)},Oe=function(e,t){var n=-1,r=44;do switch(le(r)){case 0:r===38&&J()===12&&(t[n]=1),e[n]+=De(W-1,t,n);break;case 2:e[n]+=fe(r);break;case 4:if(r===44){e[++n]=J()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=j(r)}while(r=q());return e},ke=function(e,t){return de(Oe(ue(e),t))},Ae=new WeakMap,je=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Ae.get(n))&&!r){Ae.set(e,!0);for(var i=[],a=ke(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},Me=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function Ne(e,t){switch(N(e,t)){case 5103:return C+`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 C+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return C+e+S+e+x+e+e;case 6828:case 4268:return C+e+x+e+e;case 6165:return C+e+x+`flex-`+e+e;case 5187:return C+e+I(e,/(\w+).+(:[^]+)/,C+`box-$1$2`+x+`flex-$1$2`)+e;case 5443:return C+e+x+`flex-item-`+I(e,/flex-|-self/,``)+e;case 4675:return C+e+x+`flex-line-pack`+I(e,/align-content|flex-|-self/,``)+e;case 5548:return C+e+x+I(e,`shrink`,`negative`)+e;case 5292:return C+e+x+I(e,`basis`,`preferred-size`)+e;case 6060:return C+`box-`+I(e,`-grow`,``)+C+e+x+I(e,`grow`,`positive`)+e;case 4554:return C+I(e,/([^-])(transform)/g,`$1`+C+`$2`)+e;case 6187:return I(I(I(e,/(zoom-|grab)/,C+`$1`),/(image-set)/,C+`$1`),e,``)+e;case 5495:case 3959:return I(e,/(image-set\([^]*)/,C+"$1$`$1");case 4968:return I(I(e,/(.+:)(flex-)?(.*)/,C+`box-pack:$3`+x+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+C+e+e;case 4095:case 3583:case 4068:case 2532:return I(e,/(.+)-inline(.+)/,C+`$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(B(e)-1-t>6)switch(R(e,t+1)){case 109:if(R(e,t+4)!==45)break;case 102:return I(e,/(.+:)(.+)-([^]+)/,`$1`+C+`$2-$3$1`+S+(R(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~L(e,`stretch`)?Ne(I(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(R(e,t+1)!==115)break;case 6444:switch(R(e,B(e)-3-(~L(e,`!important`)&&10))){case 107:return I(e,`:`,`:`+C)+e;case 101:return I(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+C+(R(e,14)===45?`inline-`:``)+`box$3$1`+C+`$2$3$1`+x+`$2box$3`)+e}break;case 5936:switch(R(e,t+11)){case 114:return C+e+x+I(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return C+e+x+I(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return C+e+x+I(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return C+e+x+e+e}return e}var Pe=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case E:e.return=Ne(e.value,e.length);break;case O:return Y([ie(e,{value:I(e.value,`@`,`@`+C)})],r);case T:if(e.length)return te(e.props,function(t){switch(F(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Y([ie(e,{props:[I(t,/:(read-\w+)/,`:`+S+`$1`)]})],r);case`::placeholder`:return Y([ie(e,{props:[I(t,/:(plac\w+)/,`:`+C+`input-$1`)]}),ie(e,{props:[I(t,/:(plac\w+)/,`:`+S+`$1`)]}),ie(e,{props:[I(t,/:(plac\w+)/,x+`input-$1`)]})],r)}return``})}}],Fe=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||Pe,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[je,Me],l,u=[Ce,Te(function(e){l.insert(e)})],d=we(c.concat(r,u)),f=function(e){return Y(ve(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new b({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},Ie=o((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),Le=o((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,j=r,M=o,N=a,P=f,F=!1;function I(e){return F||(F=!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.`)),L(e)||x(e)===l}function L(e){return x(e)===u}function R(e){return x(e)===c}function z(e){return x(e)===s}function B(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function ee(e){return x(e)===d}function V(e){return x(e)===i}function te(e){return x(e)===h}function H(e){return x(e)===m}function U(e){return x(e)===r}function ne(e){return x(e)===o}function W(e){return x(e)===a}function G(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=O,e.Lazy=k,e.Memo=A,e.Portal=j,e.Profiler=M,e.StrictMode=N,e.Suspense=P,e.isAsyncMode=I,e.isConcurrentMode=L,e.isContextConsumer=R,e.isContextProvider=z,e.isElement=B,e.isForwardRef=ee,e.isFragment=V,e.isLazy=te,e.isMemo=H,e.isPortal=U,e.isProfiler=ne,e.isStrictMode=W,e.isSuspense=G,e.isValidElementType=b,e.typeOf=x})()})),Re=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=Ie():t.exports=Le()})),ze=o(((e,t)=>{var n=Re(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),Be=!0;function Ve(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var He=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||Be===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},Ue=function(e,t,n){He(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function We(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 Ge={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},Ke=!1,qe=/[A-Z]|^ms/g,Je=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ye=function(e){return e.charCodeAt(1)===45},Xe=function(e){return e!=null&&typeof e!=`boolean`},Ze=Ee(function(e){return Ye(e)?e:e.replace(qe,`-$&`).toLowerCase()}),Qe=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(Je,function(e,t,n){return X={name:t,styles:n,next:X},t})}return Ge[e]!==1&&!Ye(e)&&typeof t==`number`&&t!==0?t+`px`:t},$e=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function et(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return X={name:i.name,styles:i.styles,next:X},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)X={name:o.name,styles:o.styles,next:X},o=o.next;return a.styles+`;`}return tt(e,t,n);case`function`:if(e!==void 0){var s=X,c=n(e);return X=s,et(e,t,c)}break}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function tt(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=et(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Xe(s)&&(r+=Ze(a)+`:`+Qe(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&Ke)throw Error($e);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Xe(o[c])&&(r+=Ze(a)+`:`+Qe(a,o[c])+`;`);else{var l=et(e,t,o);switch(a){case`animation`:case`animationName`:r+=Ze(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}}return r}var nt=/label:\s*([^\s;{]+)\s*(;|$)/g,X;function rt(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;X=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=et(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=et(n,t,e[o]),r&&(i+=a[o]);nt.lastIndex=0;for(var s=``,c;(c=nt.exec(i))!==null;)s+=`-`+c[1];return{name:We(i)+s,styles:i,next:X}}var it=function(e){return e()},at=l.useInsertionEffect?l.useInsertionEffect:!1,ot=at||it,st=at||l.useLayoutEffect,ct=l.createContext(typeof HTMLElement<`u`?Fe({key:`css`}):null);ct.Provider;var lt=function(e){return(0,l.forwardRef)(function(t,n){return e(t,(0,l.useContext)(ct),n)})},ut=l.createContext({}),dt={}.hasOwnProperty,ft=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,pt=function(e,t){var n={};for(var r in t)dt.call(t,r)&&(n[r]=t[r]);return n[ft]=e,n},mt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return He(t,n,r),ot(function(){return Ue(t,n,r)}),null},ht=lt(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[ft],a=[r],o=``;typeof e.className==`string`?o=Ve(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=rt(a,void 0,l.useContext(ut));o+=t.key+`-`+s.name;var c={};for(var u in e)dt.call(e,u)&&u!==`css`&&u!==ft&&(c[u]=e[u]);return c.className=o,n&&(c.ref=n),l.createElement(l.Fragment,null,l.createElement(mt,{cache:t,serialized:s,isStringTag:typeof i==`string`}),l.createElement(i,c))});ze();var gt=function(e,t){var n=arguments;if(t==null||!dt.call(t,`css`))return l.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=ht,i[1]=pt(e,t);for(var a=2;a<r;a++)i[a]=n[a];return l.createElement.apply(null,i)};(function(e){var t;(function(e){})(t||=e.JSX||={})})(gt||={});var _t=lt(function(e,t){var n=e.styles,r=rt([n],void 0,l.useContext(ut)),i=l.useRef();return st(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),st(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&Ue(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function vt(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return rt(t)}function yt(){var e=vt.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 bt=/^((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)-.*))$/,xt=Ee(function(e){return bt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),St=!1,Ct=xt,wt=function(e){return e!==`theme`},Tt=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?Ct:wt},Et=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},Dt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return He(t,n,r),ot(function(){return Ue(t,n,r)}),null},Ot=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=Et(t,n,r),c=s||Tt(i),u=!c(`as`);return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push(`label:`+a+`;`),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{var p=d[0];f.push(p[0]);for(var m=d.length,h=1;h<m;h++)f.push(d[h],p[h])}var _=lt(function(e,t,n){var r=u&&e.as||i,a=``,d=[],p=e;if(e.theme==null){for(var m in p={},e)p[m]=e[m];p.theme=l.useContext(ut)}typeof e.className==`string`?a=Ve(t.registered,d,e.className):e.className!=null&&(a=e.className+` `);var h=rt(f.concat(d),t.registered,p);a+=t.key+`-`+h.name,o!==void 0&&(a+=` `+o);var g=u&&s===void 0?Tt(r):c,_={};for(var v in e)u&&v===`as`||g(v)&&(_[v]=e[v]);return _.className=a,n&&(_.ref=n),l.createElement(l.Fragment,null,l.createElement(Dt,{cache:t,serialized:h,isStringTag:typeof r==`string`}),l.createElement(r,_))});return _.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=i,_.__emotion_styles=f,_.__emotion_forwardProp=s,Object.defineProperty(_,`toString`,{value:function(){return o===void 0&&St?`NO_COMPONENT_SELECTOR`:`.`+o}}),_.withComponent=function(t,r){return e(t,g({},n,r,{shouldForwardProp:Et(_,r,!0)})).apply(void 0,f)},_}},kt=`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`.split(`.`),Z=Ot.bind(null);kt.forEach(function(e){Z[e]=Z(e)});var At=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),jt=o((e=>{process.env.NODE_ENV!==`production`&&(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===O?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=k.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(A.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){N||(N=!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)",t))}n.isReactWarning=!0,Object.defineProperty(e,`key`,{get:n,configurable:!0})}function l(){var e=t(this.type);return P[e]||(P[e]=!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.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,`ref`,{enumerable:!1,value:null}):Object.defineProperty(e,`ref`,{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,`validated`,{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,`_debugInfo`,{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,`_debugStack`,{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,`_debugTask`,{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(j(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}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 f(p);if(A.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,L[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
18
2
  let props = %s;
19
3
  <%s {...props} />
20
4
  React keys must be passed directly to JSX without using spread:
21
5
  let props = %s;
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
- * react-is.production.min.js
24
- *
25
- * Copyright (c) Facebook, Inc. and its affiliates.
26
- *
27
- * This source code is licensed under the MIT license found in the
28
- * LICENSE file in the root directory of this source tree.
29
- */var io;function ml(){if(io)return me;io=1;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(p){if(typeof p=="object"&&p!==null){var x=p.$$typeof;switch(x){case t:switch(p=p.type,p){case l:case u:case n:case o:case a:case d:return p;default:switch(p=p&&p.$$typeof,p){case s:case m:case w:case y:case i:return p;default:return x}}case r:return x}}}function v(p){return g(p)===u}return me.AsyncMode=l,me.ConcurrentMode=u,me.ContextConsumer=s,me.ContextProvider=i,me.Element=t,me.ForwardRef=m,me.Fragment=n,me.Lazy=w,me.Memo=y,me.Portal=r,me.Profiler=o,me.StrictMode=a,me.Suspense=d,me.isAsyncMode=function(p){return v(p)||g(p)===l},me.isConcurrentMode=v,me.isContextConsumer=function(p){return g(p)===s},me.isContextProvider=function(p){return g(p)===i},me.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},me.isForwardRef=function(p){return g(p)===m},me.isFragment=function(p){return g(p)===n},me.isLazy=function(p){return g(p)===w},me.isMemo=function(p){return g(p)===y},me.isPortal=function(p){return g(p)===r},me.isProfiler=function(p){return g(p)===o},me.isStrictMode=function(p){return g(p)===a},me.isSuspense=function(p){return g(p)===d},me.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===u||p===o||p===a||p===d||p===b||typeof p=="object"&&p!==null&&(p.$$typeof===w||p.$$typeof===y||p.$$typeof===i||p.$$typeof===s||p.$$typeof===m||p.$$typeof===S||p.$$typeof===h||p.$$typeof===c||p.$$typeof===E)},me.typeOf=g,me}var ge={};/** @license React v16.13.1
30
- * react-is.development.js
31
- *
32
- * Copyright (c) Facebook, Inc. and its affiliates.
33
- *
34
- * This source code is licensed under the MIT license found in the
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,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
- object-assign
38
- (c) Sindre Sorhus
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(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
- * react-is.production.min.js
43
- *
44
- * Copyright (c) Facebook, Inc. and its affiliates.
45
- *
46
- * This source code is licensed under the MIT license found in the
47
- * LICENSE file in the root directory of this source tree.
48
- */var So;function nu(){if(So)return ve;So=1;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(p){if(typeof p=="object"&&p!==null){var x=p.$$typeof;switch(x){case t:switch(p=p.type,p){case l:case u:case n:case o:case a:case d:return p;default:switch(p=p&&p.$$typeof,p){case s:case m:case w:case y:case i:return p;default:return x}}case r:return x}}}function v(p){return g(p)===u}return ve.AsyncMode=l,ve.ConcurrentMode=u,ve.ContextConsumer=s,ve.ContextProvider=i,ve.Element=t,ve.ForwardRef=m,ve.Fragment=n,ve.Lazy=w,ve.Memo=y,ve.Portal=r,ve.Profiler=o,ve.StrictMode=a,ve.Suspense=d,ve.isAsyncMode=function(p){return v(p)||g(p)===l},ve.isConcurrentMode=v,ve.isContextConsumer=function(p){return g(p)===s},ve.isContextProvider=function(p){return g(p)===i},ve.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===t},ve.isForwardRef=function(p){return g(p)===m},ve.isFragment=function(p){return g(p)===n},ve.isLazy=function(p){return g(p)===w},ve.isMemo=function(p){return g(p)===y},ve.isPortal=function(p){return g(p)===r},ve.isProfiler=function(p){return g(p)===o},ve.isStrictMode=function(p){return g(p)===a},ve.isSuspense=function(p){return g(p)===d},ve.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===n||p===u||p===o||p===a||p===d||p===b||typeof p=="object"&&p!==null&&(p.$$typeof===w||p.$$typeof===y||p.$$typeof===i||p.$$typeof===s||p.$$typeof===m||p.$$typeof===S||p.$$typeof===h||p.$$typeof===c||p.$$typeof===E)},ve.typeOf=g,ve}var ye={};/** @license React v16.13.1
49
- * react-is.development.js
50
- *
51
- * Copyright (c) Facebook, Inc. and its affiliates.
52
- *
53
- * This source code is licensed under the MIT license found in the
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,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`
6
+ <%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=require(`react`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),Q=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=At():t.exports=jt()}))(),Mt=e=>{console.warn(`GlobalLoading 未被引入,你可以直接使用 App 组件,或直接引用 GlobalLoading 组件到项目中!`)},Nt=yt`
56
7
  0% { transform: rotate(0deg) translateX(35px) rotate(0deg); }
57
8
  50% { transform: rotate(360deg) translateX(35px) rotate(-360deg); }
58
9
  100% { transform: rotate(360deg) translateX(35px) rotate(-360deg); }
59
- `,Tu=Ne.div`
10
+ `,Pt=Z.div`
60
11
  position: fixed;
61
12
  top: 0;
62
13
  left: 0;
@@ -81,7 +32,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var C=Ae(H,se,W,ee,te+".
81
32
  &.global-loading-transition-exit-active {
82
33
  opacity: 0;
83
34
  }
84
- `,Cu=Ne.div`
35
+ `,Ft=Z.div`
85
36
  width: 120px;
86
37
  height: 120px;
87
38
  position: relative;
@@ -91,15 +42,11 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var C=Ae(H,se,W,ee,te+".
91
42
  display: flex;
92
43
  justify-content: center;
93
44
  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=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:`
45
+ `,It=Z.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:`${Nt} 4s ease-in-out infinite`,animationDelay:t||`0s`}));function Lt(){let e=(0,l.useRef)(null),[t,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{Mt=e=>{n(e)}},[]),(0,Q.jsx)(d.CSSTransition,{in:t,nodeRef:e,timeout:500,classNames:`global-loading-transition`,unmountOnExit:!0,children:()=>(0,Q.jsxs)(Pt,{ref:e,className:`global-loading`,children:[(0,Q.jsxs)(Ft,{className:`global-loading-container`,children:[(0,Q.jsx)(It,{className:`dot dot-1`,size:15,delay:`0.0s`}),(0,Q.jsx)(It,{className:`dot dot-2`,size:13,delay:`0.2s`}),(0,Q.jsx)(It,{className:`dot dot-3`,size:11,delay:`0.4s`}),(0,Q.jsx)(It,{className:`dot dot-4`,size:9,delay:`0.6s`}),(0,Q.jsx)(It,{className:`dot dot-5`,size:7,delay:`0.8s`})]}),(0,Q.jsx)(`svg`,{style:{visibility:`hidden`,position:`absolute`},children:(0,Q.jsx)(`defs`,{children:(0,Q.jsxs)(`filter`,{id:`goo`,children:[(0,Q.jsx)(`feGaussianBlur`,{in:`SourceGraphic`,stdDeviation:`3`,result:`blur`}),(0,Q.jsx)(`feColorMatrix`,{in:`blur`,type:`matrix`,values:`
95
46
  1 0 0 0 0
96
47
  0 1 0 0 0
97
48
  0 0 1 0 0
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
- Copyright (c) 2018 Jed Watson.
100
- Licensed under the MIT License (MIT), see
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=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)`
49
+ 0 0 0 18 -6`}),(0,Q.jsx)(`feComposite`,{in:`SourceGraphic`,in2:`goo`,operator:`atop`})]})})})]})})}var Rt={zh:{"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}条`},en:{"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`}},zt=({messages:e,locale:t})=>({id:n,defaultMessage:r,values:i})=>{let a=e?.[t]?.[n]||r;return typeof i==`object`&&Object.keys(i).forEach(e=>{a=a.replace(`{${e}}`,i[e])}),a};function Bt(){let{messages:e,locale:t}=(0,l.useContext)(Ht);return{$t:({id:n,defaultMessage:r},i)=>zt({messages:e,locale:t})({id:n,defaultMessage:r,values:i}),formatMessage:zt({messages:e,locale:t})}}function $({id:e,defaultMessage:t,values:n}){let{messages:r,locale:i}=(0,l.useContext)(Ht);return zt({messages:r,locale:i})({id:e,defaultMessage:t,values:n})}var Vt={locale:`zh`,messages:Rt},Ht=l.default.createContext(Vt);function Ut({children:e,config:t}){return(0,Q.jsx)(Ht.Provider,{value:{locale:t.locale,messages:Rt},children:e})}function Wt(e,t){let n={...e};for(let r in t)t[r]!==void 0&&(t[r]&&typeof t[r]==`object`&&!Array.isArray(t[r])?n[r]=Wt(e[r]||{},t[r]):n[r]=t[r]);return n}var Gt={iconButton:{size:`small`,render:({children:e})=>e},iconFont:{},locale:`zh`,useSearchParams:{storage:`state`,stateKey:`__searchParams__`}},Kt=l.default.createContext(Gt);function qt({children:e,config:t}){let n=Wt(Gt,t);return(0,Q.jsx)(Kt.Provider,{value:n,children:(0,Q.jsx)(Ut,{config:{locale:t.locale,messages:Rt},children:e})})}var Jt=u.message,Yt=u.notification,Xt=u.Modal;function Zt({children:e}){let t=u.App.useApp();return Jt=t.message,Xt=t.modal,Yt=t.notification,e||``}function Qt({children:e,config:t,...n}){return(0,Q.jsx)(qt,{config:t||{},children:(0,Q.jsxs)(u.App,{...n,children:[(0,Q.jsx)(Lt,{}),(0,Q.jsx)(Zt,{children:e})]})})}var $t=c(o(((e,t)=>{(function(){"use strict";var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()}))(),1),en=(0,l.forwardRef)(({type:e=``,className:t=``,symbol:n=!1,style:r,...i},a)=>{let{iconFont:o}=(0,l.useContext)(Kt);return n?(0,Q.jsx)(`svg`,{className:(0,$t.default)([`iconfont-symbol`,o.className||``,e,t]),"aria-hidden":`true`,ref:a,style:{...o.style,...r||{}},...i,children:(0,Q.jsx)(`use`,{xlinkHref:`#${e}`})}):(0,Q.jsx)(`i`,{className:(0,$t.default)([`iconfont`,o.className||``,e,t]),ref:a,style:{...o.style,...r||{}},...i})}),tn=({checked:e,onChange:t,trueValue:n=!0,falseValue:r=!1,trueLabel:i=``,falseLabel:a=``,children:o,...s})=>{let c=e===n;return(0,Q.jsx)(u.Checkbox,{checked:c,onChange:e=>{t?.(e.target.checked?n:r,e)},...s,children:o||(c?i:a)})},nn=({checked:e,onChange:t,trueValue:n=!0,falseValue:r=!1,...i})=>{let a=e===n;return(0,Q.jsx)(u.Switch,{checked:a,onChange:(e,i)=>{t?.(e?n:r,i)},...i})},rn=Z(l.default.forwardRef((e,t)=>(0,Q.jsx)(u.Button,{ref:t,...e})))`
103
50
  &&.icon-button {
104
51
  font-size: 18px;
105
52
  color: var(--color-primary);
@@ -118,14 +65,14 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var C=Ae(H,se,W,ee,te+".
118
65
  background: var(--color-primary-bg);
119
66
  }
120
67
  }
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`
68
+ `,an=({children:e,tooltipDisabled:t,disabled:n,disabledReason:r,title:i,...a})=>t?e:(0,Q.jsx)(u.Tooltip,{title:n&&r||i,...a,children:e}),on=(0,l.forwardRef)((e,t)=>{let{iconButton:n}=(0,l.useContext)(Kt),{icon:r,tooltipDisabled:i=!1,title:a,hide:o=!1,disabledReason:s,onClick:c=f.noop,disabled:u,size:d=n.size||`small`,style:p={},className:m,loading:h=!1,...g}=e,_=()=>(0,f.isString)(r)?(0,Q.jsx)(en,{type:r}):r,v=n.render;return r||console.warn(`Icon props not found`),(0,Q.jsx)(v,{...e,children:(0,Q.jsx)(an,{tooltipDisabled:i,hide:o,disabled:u,disabledReason:s,title:a,...g,children:(0,Q.jsx)(rn,{ref:t,icon:_(),size:d,className:(0,$t.default)([`icon-button`,n.className,m]),disabled:u,style:{...n.style,...p},loading:h,onClick:c})})})}),sn=yt`
122
69
  from {
123
70
  margin-top: 0;
124
71
  }
125
72
  to {
126
73
  margin-top: 32px;
127
74
  }
128
- `,af=Oa`
75
+ `,cn=yt`
129
76
  from {
130
77
  margin-top: 32px;
131
78
  margin-bottom: 0;
@@ -134,24 +81,18 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var C=Ae(H,se,W,ee,te+".
134
81
  margin-top: 0;
135
82
  margin-bottom: 32px;
136
83
  }
137
- `;Ne.div`
138
- .ant-popover-inner-content {
139
- max-height: 360px;
140
- padding: 0;
141
- overflow-y: auto;
142
- }
143
- `;const of=Ne.ul`
84
+ `,ln=Z.ul`
144
85
  padding: 10px 0;
145
86
 
146
87
  .drag-up {
147
88
  border: solid 2px #ccc;
148
- animation: ${nf} ease 0.2s 1;
89
+ animation: ${sn} ease 0.2s 1;
149
90
  animation-fill-mode: forwards;
150
91
  }
151
92
 
152
93
  .drag-down {
153
94
  border: solid 2px #ccc;
154
- animation: ${af} ease 0.2s 1;
95
+ animation: ${cn} ease 0.2s 1;
155
96
  animation-fill-mode: forwards;
156
97
  }
157
98
 
@@ -182,13 +123,13 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var C=Ae(H,se,W,ee,te+".
182
123
  background-color: #f0f0f0;
183
124
  }
184
125
  }
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]},styles:{body:{padding:0}},children:$.jsx(Ca,{type:"icon-setting",style:{float:"right",fontSize:"17px",lineHeight:1,marginTop:"2px",fontWeight:500}})})}const lf=Ne.div`
126
+ `;function un({order:e,visibleItems:t,columns:n=[],onChangeOrder:r,columnsVisible:i,columnsSort:a,onChangeVisible:o}){let s=(0,l.useRef)(null),c=(0,l.useRef)(null),d=e=>{s.current=e.currentTarget},f=t=>{if(!c.current||!s.current)return;s.current.style.display=`block`,t.currentTarget.classList.remove(`drag-up`),c.current.classList.remove(`drag-up`),t.currentTarget.classList.remove(`drag-down`),c.current.classList.remove(`drag-down`);let n=[...e],i=Number(s.current.dataset.index),a=Number(c.current.dataset.index);n.splice(a,0,n.splice(i,1)[0]),r(n)},p=e=>{if(e.preventDefault(),!s.current)return;s.current.style.display=`none`;let t=e.target;if(t.tagName!==`LI`)return;let n=s.current.dataset.index,r=t.dataset.index,i=t.dataset.id;if(!i||g.includes(i)||!n||!r)return;let a=n>r?`drag-up`:`drag-down`;c.current&&t.dataset.index!==c.current.dataset.index&&c.current.classList.remove(`drag-up`,`drag-down`),t.classList.contains(a)||(t.classList.add(a),c.current=t)},h=({target:{checked:e}},{dataIndex:n})=>{if(t.length===1&&!e){Jt.error((0,Q.jsx)($,{id:`component.table.visibleError`,defaultMessage:`列表最少保留一个字段`}));return}let r=Array.isArray(n)?n.join(`,`):n,i=[...t];e?i.push(r):i.splice(i.indexOf(r),1),o(i)},g=(0,l.useMemo)(()=>{let e=[];for(let t of n)if(t.columnSortDisabled&&`dataIndex`in t){let n;n=Array.isArray(t.dataIndex)?t.dataIndex.join(`,`):t.dataIndex,e.push(n)}return e},[n]);return(0,Q.jsx)(u.Popover,{overlayClassName:`table-columns-setting-popover`,content:(0,Q.jsx)(ln,{onDragOver:p,children:(0,l.useMemo)(()=>e.map((e,r)=>{let o;for(let t of n)if(`dataIndex`in t){let n;if(n=Array.isArray(t.dataIndex)?t.dataIndex.join(`,`):t.dataIndex,e===n){o=t;break}}if(!o||!(`dataIndex`in o))return``;let s=a&&o&&!o.columnSortDisabled,c;o&&Array.isArray(o.dataIndex)?c=o.dataIndex.join(`,`):o&&(c=o.dataIndex);let l=typeof c==`string`&&t.includes(c);return o?(0,Q.jsxs)(`li`,{draggable:s,onDragEnd:f,onDragStart:d,"data-index":r,"data-id":Array.isArray(o.dataIndex)?o.dataIndex.join(`,`):String(o.dataIndex),children:[a&&(0,Q.jsx)(m.HolderOutlined,{className:`icon-drag`}),i&&(0,Q.jsx)(u.Checkbox,{style:{marginRight:`10px`},checked:!!l,disabled:o.columnVisibleDisabled,onChange:e=>{h(e,o)}}),typeof o.title==`function`?o.title({}):o.title]},Array.isArray(o.dataIndex)?o.dataIndex.join(`,`):String(o.dataIndex)):null}),[e,t,n,a,i])}),trigger:`click`,align:{offset:[-60,-14]},styles:{container:{padding:0}},children:(0,Q.jsx)(en,{type:`icon-setting`,style:{float:`right`,fontSize:`17px`,lineHeight:1,marginTop:`2px`,fontWeight:500}})})}var dn=Z.div`
186
127
  position: absolute;
187
128
  left: 8px;
188
- `,uf=Ne.span`
129
+ `,fn=Z.span`
189
130
  font-size: 14px;
190
131
  color: #666;
191
- `;Ne.div`
132
+ `;Z.div`
192
133
  position: fixed;
193
134
  right: 0;
194
135
  bottom: 30px;
@@ -211,7 +152,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var C=Ae(H,se,W,ee,te+".
211
152
  border-color: #d9d9d9;
212
153
  }
213
154
  }
214
- `;const cf=Ne(Ee.Row)`
155
+ `;var pn=Z(u.Row)`
215
156
  position: fixed;
216
157
  right: 0;
217
158
  bottom: 30px;
@@ -234,7 +175,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var C=Ae(H,se,W,ee,te+".
234
175
  border-color: #d9d9d9;
235
176
  }
236
177
  }
237
- `,ff=Ne.span`
178
+ `,mn=Z.span`
238
179
  margin-left: 20px;
239
180
  cursor: pointer;
240
181
  opacity: 0.5;
@@ -243,7 +184,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var C=Ae(H,se,W,ee,te+".
243
184
  &:hover {
244
185
  opacity: 1;
245
186
  }
246
- `,df={enter:"zoom-enter",enterActive:"zoom-enter-active",leaveActive:"zoom-leave-active"},pf=`
187
+ `,hn={enter:`zoom-enter`,enterActive:`zoom-enter-active`,leaveActive:`zoom-leave-active`},gn=`
247
188
  .zoom-enter {
248
189
  transform: scale(0);
249
190
  }
@@ -255,9 +196,11 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var C=Ae(H,se,W,ee,te+".
255
196
  .zoom-leave-active {
256
197
  transform: scale(0);
257
198
  }
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`
199
+ `;function _n(e){let t=(0,l.useRef)(null),{pagination:n,rowSelection:r={selectedRowKeys:[],onChange:()=>{}},dataSource:i=[],selectionPopover:a=!1}=e,o=({target:{checked:t}})=>{let{rowKey:n=`id`}=e;if(!(!r||!r.onChange))if(t){let{getCheckboxProps:e}=r,t=i;e&&(t=i.filter(t=>!e(t).disabled));let a=typeof n==`function`?n:e=>e[n];r.onChange(Array.from(t.map(a)),Array.from(t),{type:`none`})}else r.onChange([],[],{type:`none`})},s=(0,l.useMemo)(()=>{let{getCheckboxProps:e}=r,t=i;return e&&(t=i.filter(t=>!e(t).disabled)),t.length},[i,r]),c=(0,l.useMemo)(()=>{let e=r.selectedRowKeys??[];return e.length>0&&e.length<s},[r.selectedRowKeys,s]),f=(0,l.useMemo)(()=>{let e=r.selectedRowKeys??[];return e.length>0&&e.length===s},[r.selectedRowKeys,s]);return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(_t,{styles:gn}),(0,Q.jsxs)(dn,{children:[(0,Q.jsx)(d.CSSTransition,{in:!!(e.rowSelection&&e.selectionPopover&&(f||c)),nodeRef:t,classNames:hn,unmountOnExit:!0,timeout:300,children:()=>(0,Q.jsxs)(pn,{ref:t,justify:`space-between`,children:[(0,Q.jsx)(u.Col,{style:{display:`flex`,alignItems:`center`},children:(0,Q.jsx)(u.Checkbox,{checked:f,indeterminate:c,onChange:o,children:(0,Q.jsx)($,{id:`component.table.selected`,defaultMessage:`已选{length}条`,values:{length:r.selectedRowKeys?.length??0}})})}),(0,Q.jsxs)(u.Col,{style:{display:`flex`,alignItems:`center`},children:[a,(0,Q.jsx)(mn,{onClick:()=>{o({target:{checked:!1}})},children:(0,Q.jsx)(m.CloseOutlined,{})})]})]})}),n&&(0,Q.jsx)(fn,{children:n.showTotal?n.showTotal(n.total??0,[0,0]):null})]})]})}var vn=o((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),yn=o((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,j=r,M=o,N=a,P=f,F=!1;function I(e){return F||(F=!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.`)),L(e)||x(e)===l}function L(e){return x(e)===u}function R(e){return x(e)===c}function z(e){return x(e)===s}function B(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function ee(e){return x(e)===d}function V(e){return x(e)===i}function te(e){return x(e)===h}function H(e){return x(e)===m}function U(e){return x(e)===r}function ne(e){return x(e)===o}function W(e){return x(e)===a}function G(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=O,e.Lazy=k,e.Memo=A,e.Portal=j,e.Profiler=M,e.StrictMode=N,e.Suspense=P,e.isAsyncMode=I,e.isConcurrentMode=L,e.isContextConsumer=R,e.isContextProvider=z,e.isElement=B,e.isForwardRef=ee,e.isFragment=V,e.isLazy=te,e.isMemo=H,e.isPortal=U,e.isProfiler=ne,e.isStrictMode=W,e.isSuspense=G,e.isValidElementType=b,e.typeOf=x})()})),bn=o(((e,t)=>{process.env.NODE_ENV===`production`?t.exports=vn():t.exports=yn()})),xn=o(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]),o)r.call(o,u)&&(s[u]=o[u]);if(n){c=n(o);for(var d=0;d<c.length;d++)i.call(o,c[d])&&(s[c[d]]=o[c[d]])}}return s}})),Sn=o(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Cn=o(((e,t)=>{t.exports=Function.call.bind(Object.prototype.hasOwnProperty)})),wn=o(((e,t)=>{var n=function(){};if(process.env.NODE_ENV!==`production`){var r=Sn(),i={},a=Cn();n=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}}}function o(e,t,o,s,c){if(process.env.NODE_ENV!==`production`){for(var l in e)if(a(e,l)){var u;try{if(typeof e[l]!=`function`){var d=Error((s||`React class`)+`: `+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name=`Invariant Violation`,d}u=e[l](t,l,s,o,null,r)}catch(e){u=e}if(u&&!(u instanceof Error)&&n((s||`React class`)+`: type specification of `+o+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+`. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).`),u instanceof Error&&!(u.message in i)){i[u.message]=!0;var f=c?c():``;n(`Failed `+o+` type: `+u.message+(f??``))}}}}o.resetWarningCache=function(){process.env.NODE_ENV!==`production`&&(i={})},t.exports=o})),Tn=o(((e,t)=>{var n=bn(),r=xn(),i=Sn(),a=Cn(),o=wn(),s=function(){};process.env.NODE_ENV!==`production`&&(s=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}});function c(){return null}t.exports=function(e,t){var l=typeof Symbol==`function`&&Symbol.iterator,u=`@@iterator`;function d(e){var t=e&&(l&&e[l]||e[u]);if(typeof t==`function`)return t}var f=`<<anonymous>>`,p={array:_(`array`),bigint:_(`bigint`),bool:_(`boolean`),func:_(`function`),number:_(`number`),object:_(`object`),string:_(`string`),symbol:_(`symbol`),any:v(),arrayOf:y,element:b(),elementType:x(),instanceOf:S,node:E(),objectOf:w,oneOf:C,oneOfType:T,shape:O,exact:k};function m(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function h(e,t){this.message=e,this.data=t&&typeof t==`object`?t:{},this.stack=``}h.prototype=Error.prototype;function g(e){if(process.env.NODE_ENV!==`production`)var n={},r=0;function a(a,o,c,l,u,d,p){if(l||=f,d||=c,p!==i){if(t){var m=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name=`Invariant Violation`,m}else if(process.env.NODE_ENV!==`production`&&typeof console<`u`){var g=l+`:`+c;!n[g]&&r<3&&(s("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. 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."),n[g]=!0,r++)}}return o[c]==null?a?o[c]===null?new h(`The `+u+" `"+d+"` is marked as required "+("in `"+l+"`, but its value is `null`.")):new h(`The `+u+" `"+d+"` is marked as required in "+("`"+l+"`, but its value is `undefined`.")):null:e(o,c,l,u,d)}var o=a.bind(null,!1);return o.isRequired=a.bind(null,!0),o}function _(e){function t(t,n,r,i,a,o){var s=t[n];if(M(s)!==e){var c=N(s);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return g(t)}function v(){return g(c)}function y(e){function t(t,n,r,a,o){if(typeof e!=`function`)return new h("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var c=M(s);return new h(`Invalid `+a+" `"+o+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l<s.length;l++){var u=e(s,l,r,a,o+`[`+l+`]`,i);if(u instanceof Error)return u}return null}return g(t)}function b(){function t(t,n,r,i,a){var o=t[n];if(!e(o)){var s=M(o);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}return null}return g(t)}function x(){function e(e,t,r,i,a){var o=e[t];if(!n.isValidElementType(o)){var s=M(o);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected a single ReactElement type."))}return null}return g(e)}function S(e){function t(t,n,r,i,a){if(!(t[n]instanceof e)){var o=e.name||f,s=F(t[n]);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("instance of `"+o+"`."))}return null}return g(t)}function C(e){if(!Array.isArray(e))return process.env.NODE_ENV!==`production`&&(arguments.length>1?s(`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]).`):s(`Invalid argument supplied to oneOf, expected an array.`)),c;function t(t,n,r,i,a){for(var o=t[n],s=0;s<e.length;s++)if(m(o,e[s]))return null;var c=JSON.stringify(e,function(e,t){return N(t)===`symbol`?String(t):t});return new h(`Invalid `+i+" `"+a+"` of value `"+String(o)+"` "+("supplied to `"+r+"`, expected one of "+c+`.`))}return g(t)}function w(e){function t(t,n,r,o,s){if(typeof e!=`function`)return new h("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var c=t[n],l=M(c);if(l!==`object`)return new h(`Invalid `+o+" `"+s+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an object."));for(var u in c)if(a(c,u)){var d=e(c,u,r,o,s+`.`+u,i);if(d instanceof Error)return d}return null}return g(t)}function T(e){if(!Array.isArray(e))return process.env.NODE_ENV!==`production`&&s(`Invalid argument supplied to oneOfType, expected an instance of array.`),c;for(var t=0;t<e.length;t++){var n=e[t];if(typeof n!=`function`)return s(`Invalid argument supplied to oneOfType. Expected an array of check functions, but received `+P(n)+` at index `+t+`.`),c}function r(t,n,r,o,s){for(var c=[],l=0;l<e.length;l++){var u=e[l],d=u(t,n,r,o,s,i);if(d==null)return null;d.data&&a(d.data,`expectedType`)&&c.push(d.data.expectedType)}var f=c.length>0?`, expected one of type [`+c.join(`, `)+`]`:``;return new h(`Invalid `+o+" `"+s+"` supplied to "+("`"+r+"`"+f+`.`))}return g(r)}function E(){function e(e,t,n,r,i){return A(e[t])?null:new h(`Invalid `+r+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return g(e)}function D(e,t,n,r,i){return new h((e||`React class`)+`: `+t+" type `"+n+`.`+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function O(e){function t(t,n,r,a,o){var s=t[n],c=M(s);if(c!==`object`)return new h(`Invalid `+a+" `"+o+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var l in e){var u=e[l];if(typeof u!=`function`)return D(r,a,o,l,N(u));var d=u(s,l,r,a,o+`.`+l,i);if(d)return d}return null}return g(t)}function k(e){function t(t,n,o,s,c){var l=t[n],u=M(l);if(u!==`object`)return new h(`Invalid `+s+" `"+c+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."));for(var d in r({},t[n],e)){var f=e[d];if(a(e,d)&&typeof f!=`function`)return D(o,s,c,d,N(f));if(!f)return new h(`Invalid `+s+" `"+c+"` key `"+d+"` supplied to `"+o+`\`.
200
+ Bad object: `+JSON.stringify(t[n],null,` `)+`
201
+ Valid keys: `+JSON.stringify(Object.keys(e),null,` `));var p=f(l,d,o,s,c+`.`+d,i);if(p)return p}return null}return g(t)}function A(t){switch(typeof t){case`number`:case`string`:case`undefined`:return!0;case`boolean`:return!t;case`object`:if(Array.isArray(t))return t.every(A);if(t===null||e(t))return!0;var n=d(t);if(n){var r=n.call(t),i;if(n!==t.entries){for(;!(i=r.next()).done;)if(!A(i.value))return!1}else for(;!(i=r.next()).done;){var a=i.value;if(a&&!A(a[1]))return!1}}else return!1;return!0;default:return!1}}function j(e,t){return e===`symbol`?!0:t?t[`@@toStringTag`]===`Symbol`||typeof Symbol==`function`&&t instanceof Symbol:!1}function M(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:j(t,e)?`symbol`:t}function N(e){if(e==null)return``+e;var t=M(e);if(t===`object`){if(e instanceof Date)return`date`;if(e instanceof RegExp)return`regexp`}return t}function P(e){var t=N(e);switch(t){case`array`:case`object`:return`an `+t;case`boolean`:case`date`:case`regexp`:return`a `+t;default:return t}}function F(e){return!e.constructor||!e.constructor.name?f:e.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p}})),En=o(((e,t)=>{var n=Sn();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=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 s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Dn=o(((e,t)=>{if(process.env.NODE_ENV!==`production`){var n=bn();t.exports=Tn()(n.isElement,!0)}else t.exports=En()()})),On=o(((e,t)=>{function n(e){var t,r,i=``;if(typeof e==`string`||typeof e==`number`)i+=e;else if(typeof e==`object`)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=n(e[t]))&&(i&&(i+=` `),i+=r)}else for(r in e)e[r]&&(i&&(i+=` `),i+=r);return i}function r(){for(var e,t,r=0,i=``,a=arguments.length;r<a;r++)(e=arguments[r])&&(t=n(e))&&(i&&(i+=` `),i+=t);return i}t.exports=r,t.exports.clsx=r})),kn=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.dontSetMe=a,e.findInArray=t,e.int=i,e.isFunction=n,e.isNum=r;function t(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function n(e){return typeof e==`function`||Object.prototype.toString.call(e)===`[object Function]`}function r(e){return typeof e==`number`&&!isNaN(e)}function i(e){return parseInt(e,10)}function a(e,t,n){if(e[t])return Error(`Invalid prop ${t} passed to ${n} - do not set this, set it on the child.`)}})),An=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.browserPrefixToKey=r,e.browserPrefixToStyle=i,e.default=void 0,e.getPrefix=n;var t=[`Moz`,`Webkit`,`O`,`ms`];function n(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:`transform`;if(typeof window>`u`)return``;let n=window.document?.documentElement?.style;if(!n||e in n)return``;for(let i=0;i<t.length;i++)if(r(e,t[i])in n)return t[i];return``}function r(e,t){return t?`${t}${a(e)}`:e}function i(e,t){return t?`-${t.toLowerCase()}-${e}`:e}function a(e){let t=``,n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):e[r]===`-`?n=!0:t+=e[r];return t}e.default=n()})),jn=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.addClassName=S,e.addEvent=s,e.addUserSelectStyles=y,e.createCSSTransform=m,e.createSVGTransform=h,e.getTouch=_,e.getTouchIdentifier=v,e.getTranslation=g,e.innerHeight=d,e.innerWidth=f,e.matchesSelector=a,e.matchesSelectorAndParentsTo=o,e.offsetXYFromParent=p,e.outerHeight=l,e.outerWidth=u,e.removeClassName=C,e.removeEvent=c,e.scheduleRemoveUserSelectStyles=b;var t=kn(),n=r(An());function r(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,i=new WeakMap;return(r=function(e,t){if(!t&&e&&e.__esModule)return e;var r,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(r=t?i:n){if(r.has(e))return r.get(e);r.set(e,o)}for(let t in e)t!==`default`&&{}.hasOwnProperty.call(e,t)&&((a=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?r(o,t,a):o[t]=e[t]);return o})(e,t)}var i=``;function a(e,n){return i||=(0,t.findInArray)([`matches`,`webkitMatchesSelector`,`mozMatchesSelector`,`msMatchesSelector`,`oMatchesSelector`],function(n){return(0,t.isFunction)(e[n])}),(0,t.isFunction)(e[i])?e[i](n):!1}function o(e,t,n){let r=e;do{if(a(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function s(e,t,n,r){if(!e)return;let i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent(`on`+t,n):e[`on`+t]=n}function c(e,t,n,r){if(!e)return;let i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent(`on`+t,n):e[`on`+t]=null}function l(e){let n=e.clientHeight,r=e.ownerDocument.defaultView.getComputedStyle(e);return n+=(0,t.int)(r.borderTopWidth),n+=(0,t.int)(r.borderBottomWidth),n}function u(e){let n=e.clientWidth,r=e.ownerDocument.defaultView.getComputedStyle(e);return n+=(0,t.int)(r.borderLeftWidth),n+=(0,t.int)(r.borderRightWidth),n}function d(e){let n=e.clientHeight,r=e.ownerDocument.defaultView.getComputedStyle(e);return n-=(0,t.int)(r.paddingTop),n-=(0,t.int)(r.paddingBottom),n}function f(e){let n=e.clientWidth,r=e.ownerDocument.defaultView.getComputedStyle(e);return n-=(0,t.int)(r.paddingLeft),n-=(0,t.int)(r.paddingRight),n}function p(e,t,n){let r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/n,y:(e.clientY+t.scrollTop-r.top)/n}}function m(e,t){let r=g(e,t,`px`);return{[(0,n.browserPrefixToKey)(`transform`,n.default)]:r}}function h(e,t){return g(e,t,``)}function g(e,t,n){let{x:r,y:i}=e,a=`translate(${r}${n},${i}${n})`;return t&&(a=`translate(${`${typeof t.x==`string`?t.x:t.x+n}`}, ${`${typeof t.y==`string`?t.y:t.y+n}`})`+a),a}function _(e,n){return e.targetTouches&&(0,t.findInArray)(e.targetTouches,e=>n===e.identifier)||e.changedTouches&&(0,t.findInArray)(e.changedTouches,e=>n===e.identifier)}function v(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function y(e){if(!e)return;let t=e.getElementById(`react-draggable-style-el`);t||(t=e.createElement(`style`),t.type=`text/css`,t.id=`react-draggable-style-el`,t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
202
+ `,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
203
+ `,e.getElementsByTagName(`head`)[0].appendChild(t)),e.body&&S(e.body,`react-draggable-transparent-selection`)}function b(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{x(e)}):x(e)}function x(e){if(e)try{if(e.body&&C(e.body,`react-draggable-transparent-selection`),e.selection)e.selection.empty();else{let t=(e.defaultView||window).getSelection();t&&t.type!==`Caret`&&t.removeAllRanges()}}catch{}}function S(e,t){e.classList?e.classList.add(t):e.className.match(RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function C(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(RegExp(`(?:^|\\s)${t}(?!\\S)`,`g`),``)}})),Mn=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.canDragX=a,e.canDragY=o,e.createCoreData=c,e.createDraggableData=l,e.getBoundPosition=r,e.getControlPosition=s,e.snapToGrid=i;var t=kn(),n=jn();function r(e,r,i){if(!e.props.bounds)return[r,i];let{bounds:a}=e.props;a=typeof a==`string`?a:u(a);let o=d(e);if(typeof a==`string`){let{ownerDocument:e}=o,r=e.defaultView,i;if(i=a===`parent`?o.parentNode:o.getRootNode().querySelector(a),!(i instanceof r.HTMLElement))throw Error(`Bounds selector "`+a+`" could not find an element.`);let s=i,c=r.getComputedStyle(o),l=r.getComputedStyle(s);a={left:-o.offsetLeft+(0,t.int)(l.paddingLeft)+(0,t.int)(c.marginLeft),top:-o.offsetTop+(0,t.int)(l.paddingTop)+(0,t.int)(c.marginTop),right:(0,n.innerWidth)(s)-(0,n.outerWidth)(o)-o.offsetLeft+(0,t.int)(l.paddingRight)-(0,t.int)(c.marginRight),bottom:(0,n.innerHeight)(s)-(0,n.outerHeight)(o)-o.offsetTop+(0,t.int)(l.paddingBottom)-(0,t.int)(c.marginBottom)}}return(0,t.isNum)(a.right)&&(r=Math.min(r,a.right)),(0,t.isNum)(a.bottom)&&(i=Math.min(i,a.bottom)),(0,t.isNum)(a.left)&&(r=Math.max(r,a.left)),(0,t.isNum)(a.top)&&(i=Math.max(i,a.top)),[r,i]}function i(e,t,n){return[Math.round(t/e[0])*e[0],Math.round(n/e[1])*e[1]]}function a(e){return e.props.axis===`both`||e.props.axis===`x`}function o(e){return e.props.axis===`both`||e.props.axis===`y`}function s(e,t,r){let i=typeof t==`number`?(0,n.getTouch)(e,t):null;if(typeof t==`number`&&!i)return null;let a=d(r),o=r.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,n.offsetXYFromParent)(i||e,o,r.props.scale)}function c(e,n,r){let i=!(0,t.isNum)(e.lastX),a=d(e);return i?{node:a,deltaX:0,deltaY:0,lastX:n,lastY:r,x:n,y:r}:{node:a,deltaX:n-e.lastX,deltaY:r-e.lastY,lastX:e.lastX,lastY:e.lastY,x:n,y:r}}function l(e,t){let n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function u(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function d(e){let t=e.findDOMNode();if(!t)throw Error(`<DraggableCore>: Unmounted during event!`);return t}})),Nn=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=t;function t(){}})),Pn=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=void 0;var t=l(require(`react`)),n=c(Dn()),r=c(require(`react-dom`)),i=jn(),a=Mn(),o=kn(),s=c(Nn());function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,r=new WeakMap;return(l=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(let t in e)t!==`default`&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}function u(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=f(e,`string`);return typeof t==`symbol`?t:t+``}function f(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var p={touch:{start:`touchstart`,move:`touchmove`,stop:`touchend`},mouse:{start:`mousedown`,move:`mousemove`,stop:`mouseup`}},m=p.mouse,h=class extends t.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`,e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&typeof e.button==`number`&&e.button!==0)return!1;let t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw Error(`<DraggableCore> not mounted on DragStart!`);let{ownerDocument:n}=t;if(this.props.disabled||!(e.target instanceof n.defaultView.Node)||this.props.handle&&!(0,i.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,i.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;e.type===`touchstart`&&!this.props.allowMobileScroll&&e.preventDefault();let r=(0,i.getTouchIdentifier)(e);this.touchIdentifier=r;let o=(0,a.getControlPosition)(e,r,this);if(o==null)return;let{x:c,y:l}=o,u=(0,a.createCoreData)(this,c,l);(0,s.default)(`DraggableCore: handleDragStart: %j`,u),(0,s.default)(`calling`,this.props.onStart),!(this.props.onStart(e,u)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,i.addUserSelectStyles)(n),this.dragging=!0,this.lastX=c,this.lastY=l,(0,i.addEvent)(n,m.move,this.handleDrag),(0,i.addEvent)(n,m.stop,this.handleDragStop))}),u(this,`handleDrag`,e=>{let t=(0,a.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX,t=r-this.lastY;if([e,t]=(0,a.snapToGrid)(this.props.grid,e,t),!e&&!t)return;n=this.lastX+e,r=this.lastY+t}let i=(0,a.createCoreData)(this,n,r);if((0,s.default)(`DraggableCore: handleDrag: %j`,i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent(`mouseup`))}catch{let e=document.createEvent(`MouseEvents`);e.initMouseEvent(`mouseup`,!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(e)}return}this.lastX=n,this.lastY=r}),u(this,`handleDragStop`,e=>{if(!this.dragging)return;let t=(0,a.getControlPosition)(e,this.touchIdentifier,this);if(t==null)return;let{x:n,y:r}=t;if(Array.isArray(this.props.grid)){let e=n-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,a.snapToGrid)(this.props.grid,e,t),n=this.lastX+e,r=this.lastY+t}let o=(0,a.createCoreData)(this,n,r);if(this.props.onStop(e,o)===!1||this.mounted===!1)return!1;let c=this.findDOMNode();c&&this.props.enableUserSelectHack&&(0,i.scheduleRemoveUserSelectStyles)(c.ownerDocument),(0,s.default)(`DraggableCore: handleDragStop: %j`,o),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,c&&((0,s.default)(`DraggableCore: Removing handlers`),(0,i.removeEvent)(c.ownerDocument,m.move,this.handleDrag),(0,i.removeEvent)(c.ownerDocument,m.stop,this.handleDragStop))}),u(this,`onMouseDown`,e=>(m=p.mouse,this.handleDragStart(e))),u(this,`onMouseUp`,e=>(m=p.mouse,this.handleDragStop(e))),u(this,`onTouchStart`,e=>(m=p.touch,this.handleDragStart(e))),u(this,`onTouchEnd`,e=>(m=p.touch,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;let e=this.findDOMNode();e&&(0,i.addEvent)(e,p.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;let e=this.findDOMNode();if(e){let{ownerDocument:t}=e;(0,i.removeEvent)(t,p.mouse.move,this.handleDrag),(0,i.removeEvent)(t,p.touch.move,this.handleDrag),(0,i.removeEvent)(t,p.mouse.stop,this.handleDragStop),(0,i.removeEvent)(t,p.touch.stop,this.handleDragStop),(0,i.removeEvent)(e,p.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,i.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:r.default.findDOMNode(this)}render(){return t.cloneElement(t.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};e.default=h,u(h,`displayName`,`DraggableCore`),u(h,`propTypes`,{allowAnyClick:n.default.bool,allowMobileScroll:n.default.bool,children:n.default.node.isRequired,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw Error(`Draggable's offsetParent must be a DOM Node.`)},grid:n.default.arrayOf(n.default.number),handle:n.default.string,cancel:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number,className:o.dontSetMe,style:o.dontSetMe,transform:o.dontSetMe}),u(h,`defaultProps`,{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})})),Fn=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),Object.defineProperty(e,`DraggableCore`,{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var t=d(require(`react`)),n=u(Dn()),r=u(require(`react-dom`)),i=On(),a=jn(),o=Mn(),s=kn(),c=u(Pn()),l=u(Nn());function u(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(typeof WeakMap==`function`)var n=new WeakMap,r=new WeakMap;return(d=function(e,t){if(!t&&e&&e.__esModule)return e;var i,a,o={__proto__:null,default:e};if(e===null||typeof e!=`object`&&typeof e!=`function`)return o;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,o)}for(let t in e)t!==`default`&&{}.hasOwnProperty.call(e,t)&&((a=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(a.get||a.set)?i(o,t,a):o[t]=e[t]);return o})(e,t)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(null,arguments)}function p(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=h(e,`string`);return typeof t==`symbol`?t:t+``}function h(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var g=class extends t.Component{static getDerivedStateFromProps(e,t){let{position:n}=e,{prevPropsPosition:r}=t;return n&&(!r||n.x!==r.x||n.y!==r.y)?((0,l.default)(`Draggable: getDerivedStateFromProps %j`,{position:n,prevPropsPosition:r}),{x:n.x,y:n.y,prevPropsPosition:{...n}}):null}constructor(e){super(e),p(this,`onDragStart`,(e,t)=>{if((0,l.default)(`Draggable: onDragStart: %j`,t),this.props.onStart(e,(0,o.createDraggableData)(this,t))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),p(this,`onDrag`,(e,t)=>{if(!this.state.dragging)return!1;(0,l.default)(`Draggable: onDrag: %j`,t);let n=(0,o.createDraggableData)(this,t),r={x:n.x,y:n.y,slackX:0,slackY:0};if(this.props.bounds){let{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;let[i,a]=(0,o.getBoundPosition)(this,r.x,r.y);r.x=i,r.y=a,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),n.x=r.x,n.y=r.y,n.deltaX=r.x-this.state.x,n.deltaY=r.y-this.state.y}if(this.props.onDrag(e,n)===!1)return!1;this.setState(r)}),p(this,`onDragStop`,(e,t)=>{if(!this.state.dragging||this.props.onStop(e,(0,o.createDraggableData)(this,t))===!1)return!1;(0,l.default)(`Draggable: onDragStop: %j`,t);let n={dragging:!1,slackX:0,slackY:0};if(this.props.position){let{x:e,y:t}=this.props.position;n.x=e,n.y=t}this.setState(n)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.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(){window.SVGElement!==void 0&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??r.default.findDOMNode(this)}render(){let{axis:e,bounds:n,children:r,defaultPosition:s,defaultClassName:l,defaultClassNameDragging:u,defaultClassNameDragged:d,position:p,positionOffset:m,scale:h,...g}=this.props,_={},v=null,y=!p||this.state.dragging,b=p||s,x={x:(0,o.canDragX)(this)&&y?this.state.x:b.x,y:(0,o.canDragY)(this)&&y?this.state.y:b.y};this.state.isElementSVG?v=(0,a.createSVGTransform)(x,m):_=(0,a.createCSSTransform)(x,m);let S=(0,i.clsx)(r.props.className||``,l,{[u]:this.state.dragging,[d]:this.state.dragged});return t.createElement(c.default,f({},g,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(r),{className:S,style:{...r.props.style,..._},transform:v}))}};e.default=g,p(g,`displayName`,`Draggable`),p(g,`propTypes`,{...c.default.propTypes,axis:n.default.oneOf([`both`,`x`,`y`,`none`]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:s.dontSetMe,style:s.dontSetMe,transform:s.dontSetMe}),p(g,`defaultProps`,{...c.default.defaultProps,axis:`both`,bounds:!1,defaultClassName:`react-draggable`,defaultClassNameDragging:`react-draggable-dragging`,defaultClassNameDragged:`react-draggable-dragged`,defaultPosition:{x:0,y:0},scale:1})})),In=o(((e,t)=>{var{default:n,DraggableCore:r}=Fn();t.exports=n,t.exports.default=n,t.exports.DraggableCore=r})),Ln=o((e=>{e.__esModule=!0,e.cloneElement=c;var t=n(require(`react`));function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?r(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(e,t,n){return t=o(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){var t=s(e,`string`);return typeof t==`symbol`?t:String(t)}function s(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function c(e,n){return n.style&&e.props.style&&(n.style=i(i({},e.props.style),n.style)),n.className&&e.props.className&&(n.className=e.props.className+` `+n.className),t.default.cloneElement(e,n)}})),Rn=o((e=>{e.__esModule=!0,e.resizableProps=void 0;var t=n(Dn());In();function n(e){return e&&e.__esModule?e:{default:e}}e.resizableProps={axis:t.default.oneOf([`both`,`x`,`y`,`none`]),className:t.default.string,children:t.default.element.isRequired,draggableOpts:t.default.shape({allowAnyClick:t.default.bool,cancel:t.default.string,children:t.default.node,disabled:t.default.bool,enableUserSelectHack:t.default.bool,offsetParent:t.default.node,grid:t.default.arrayOf(t.default.number),handle: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}),height:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0];if(i.axis===`both`||i.axis===`y`){var a;return(a=t.default.number).isRequired.apply(a,n)}return t.default.number.apply(t.default,n)},handle:t.default.oneOfType([t.default.node,t.default.func]),handleSize:t.default.arrayOf(t.default.number),lockAspectRatio:t.default.bool,maxConstraints:t.default.arrayOf(t.default.number),minConstraints:t.default.arrayOf(t.default.number),onResizeStop:t.default.func,onResizeStart:t.default.func,onResize:t.default.func,resizeHandles:t.default.arrayOf(t.default.oneOf([`s`,`w`,`e`,`n`,`sw`,`nw`,`se`,`ne`])),transformScale:t.default.number,width:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0];if(i.axis===`both`||i.axis===`x`){var a;return(a=t.default.number).isRequired.apply(a,n)}return t.default.number.apply(t.default,n)}}})),zn=o((e=>{e.__esModule=!0,e.default=void 0;var t=s(require(`react`)),n=In(),r=Ln(),i=Rn(),a=[`children`,`className`,`draggableOpts`,`width`,`height`,`handle`,`handleSize`,`lockAspectRatio`,`axis`,`minConstraints`,`maxConstraints`,`onResize`,`onResizeStop`,`onResizeStart`,`resizeHandles`,`transformScale`];function o(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(o=function(e){return e?n:t})(e)}function s(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!=`object`&&typeof e!=`function`)return{default:e};var n=o(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!==`default`&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function l(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return t=p(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=m(e,`string`);return typeof t==`symbol`?t:String(t)}function m(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function h(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,g(e,t)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}var _=function(e){h(i,e);function i(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.handleRefs={},t.lastHandleRect=null,t.slack=null,t}var o=i.prototype;return o.componentWillUnmount=function(){this.resetData()},o.resetData=function(){this.lastHandleRect=this.slack=null},o.runConstraints=function(e,t){var n=this.props,r=n.minConstraints,i=n.maxConstraints,a=n.lockAspectRatio;if(!r&&!i&&!a)return[e,t];if(a){var o=this.props.width/this.props.height,s=e-this.props.width,c=t-this.props.height;Math.abs(s)>Math.abs(c*o)?t=e/o:e=t*o}var l=e,u=t,d=this.slack||[0,0],f=d[0],p=d[1];return e+=f,t+=p,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),i&&(e=Math.min(i[0],e),t=Math.min(i[1],t)),this.slack=[f+(l-e),p+(u-t)],[e,t]},o.resizeHandler=function(e,t){var n=this;return function(r,i){var a=i.node,o=i.deltaX,s=i.deltaY;e===`onResizeStart`&&n.resetData();var c=(n.props.axis===`both`||n.props.axis===`x`)&&t!==`n`&&t!==`s`,l=(n.props.axis===`both`||n.props.axis===`y`)&&t!==`e`&&t!==`w`;if(!(!c&&!l)){var u=t[0],d=t[t.length-1],f=a.getBoundingClientRect();if(n.lastHandleRect!=null){if(d===`w`){var p=f.left-n.lastHandleRect.left;o+=p}if(u===`n`){var m=f.top-n.lastHandleRect.top;s+=m}}n.lastHandleRect=f,d===`w`&&(o=-o),u===`n`&&(s=-s);var h=n.props.width+(c?o/n.props.transformScale:0),g=n.props.height+(l?s/n.props.transformScale:0),_=n.runConstraints(h,g);h=_[0],g=_[1];var v=h!==n.props.width||g!==n.props.height,y=typeof n.props[e]==`function`?n.props[e]:null;y&&!(e===`onResize`&&!v)&&(r.persist==null||r.persist(),y(r,{node:a,size:{width:h,height:g},handle:t})),e===`onResizeStop`&&n.resetData()}}},o.renderResizeHandle=function(e,n){var r=this.props.handle;if(!r)return t.createElement(`span`,{className:`react-resizable-handle react-resizable-handle-`+e,ref:n});if(typeof r==`function`)return r(e,n);var i=typeof r.type==`string`,a=d({ref:n},i?{}:{handleAxis:e});return t.cloneElement(r,a)},o.render=function(){var e=this,i=this.props,o=i.children,s=i.className,u=i.draggableOpts;i.width,i.height,i.handle,i.handleSize,i.lockAspectRatio,i.axis,i.minConstraints,i.maxConstraints,i.onResize,i.onResizeStop,i.onResizeStart;var f=i.resizeHandles;i.transformScale;var p=l(i,a);return(0,r.cloneElement)(o,d(d({},p),{},{className:(s?s+` `:``)+`react-resizable`,children:[].concat(o.props.children,f.map(function(r){var i=e.handleRefs[r]??(e.handleRefs[r]=t.createRef());return t.createElement(n.DraggableCore,c({},u,{nodeRef:i,key:`resizableHandle-`+r,onStop:e.resizeHandler(`onResizeStop`,r),onStart:e.resizeHandler(`onResizeStart`,r),onDrag:e.resizeHandler(`onResize`,r)}),e.renderResizeHandle(r,i))}))}))},i}(t.Component);e.default=_,_.propTypes=i.resizableProps,_.defaultProps={axis:`both`,handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:[`se`],transformScale:1}})),Bn=o((e=>{e.__esModule=!0,e.default=void 0;var t=c(require(`react`)),n=o(Dn()),r=o(zn()),i=Rn(),a=[`handle`,`handleSize`,`onResize`,`onResizeStart`,`onResizeStop`,`draggableOpts`,`minConstraints`,`maxConstraints`,`lockAspectRatio`,`axis`,`width`,`height`,`resizeHandles`,`style`,`transformScale`];function o(e){return e&&e.__esModule?e:{default:e}}function s(e){if(typeof WeakMap!=`function`)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}function c(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!=`object`&&typeof e!=`function`)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!==`default`&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?u(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function f(e,t,n){return t=p(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){var t=m(e,`string`);return typeof t==`symbol`?t:String(t)}function m(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function h(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function g(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_(e,t)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}var v=function(e){g(n,e);function n(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.state={width:t.props.width,height:t.props.height,propsWidth:t.props.width,propsHeight:t.props.height},t.onResize=function(e,n){var r=n.size;t.props.onResize?(e.persist==null||e.persist(),t.setState(r,function(){return t.props.onResize&&t.props.onResize(e,n)})):t.setState(r)},t}n.getDerivedStateFromProps=function(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null};var i=n.prototype;return i.render=function(){var e=this.props,n=e.handle,i=e.handleSize;e.onResize;var o=e.onResizeStart,s=e.onResizeStop,c=e.draggableOpts,u=e.minConstraints,f=e.maxConstraints,p=e.lockAspectRatio,m=e.axis;e.width,e.height;var g=e.resizeHandles,_=e.style,v=e.transformScale,y=h(e,a);return t.createElement(r.default,{axis:m,draggableOpts:c,handle:n,handleSize:i,height:this.state.height,lockAspectRatio:p,maxConstraints:f,minConstraints:u,onResizeStart:o,onResize:this.onResize,onResizeStop:s,resizeHandles:g,transformScale:v,width:this.state.width},t.createElement(`div`,l({},y,{style:d(d({},_),{},{width:this.state.width+`px`,height:this.state.height+`px`})})))},n}(t.Component);e.default=v,v.propTypes=d(d({},i.resizableProps),{},{children:n.default.element})})),Vn=o(((e,t)=>{t.exports=function(){throw Error(`Don't instantiate Resizable directly! Use require('react-resizable').Resizable`)},t.exports.Resizable=zn().default,t.exports.ResizableBox=Bn().default}))(),Hn=e=>e?Array.isArray(e)?e.join(`.`):e:``,Un=Z.span`
261
204
  position: absolute;
262
205
  top: 0;
263
206
  right: 0;
@@ -286,7 +229,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var C=Ae(H,se,W,ee,te+".
286
229
  display: inline-block;
287
230
  transform: rotateZ(90deg) scale(0.3);
288
231
  }
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`
232
+ `,Wn=e=>{let{onResize:t,width:n,...r}=e,[i,a]=(0,l.useState)(!1);return n?(0,Q.jsx)(Vn.Resizable,{width:n,height:0,handle:(0,Q.jsx)(Un,{className:i?`resizing`:``,onClick:e=>e.stopPropagation(),children:(0,Q.jsx)(m.MenuOutlined,{className:`react-resizable-handle-icon`})}),onResize:t,onResizeStart:e=>{a(!0)},onResizeStop:e=>{a(!1)},draggableOpts:{enableUserSelectHack:!1},children:(0,Q.jsx)(`th`,{...r})}):(0,Q.jsx)(`th`,{...r})},Gn=(e,t)=>{let[n,r]=(0,p.useLocalStorageState)(`table-resizable_`+t,{}),i=e=>(t,{size:n})=>{let i=Hn(e?.dataIndex);r(e=>({...e,[i]:n.width}))};return(0,l.useMemo)(()=>e.map(e=>{let t=e.dataIndex;t=Array.isArray(e.dataIndex)?e.dataIndex.join(`.`):e.dataIndex;let r=n?.[t]||e.width;return{...e,width:r,onHeaderCell:e=>({width:e.width,onResize:i(e)})}}),[e,n])},Kn=Z.div`
290
233
  position: relative;
291
234
 
292
235
  .ant-pagination-options {
@@ -294,7 +237,7 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var C=Ae(H,se,W,ee,te+".
294
237
  width: auto !important;
295
238
  }
296
239
  }
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)`
240
+ `;function qn(e,t){let{columns:n=[],columnsSort:r,columnsVisible:i,tableId:a=``,pagination:o,dataSource:s,columnsResizable:c}=e,[d,f]=(0,p.useLocalStorageState)(`TABLE_`+(location.pathname+a),{defaultValue:null}),[h,g]=(0,l.useState)([]),[_,v]=(0,l.useState)([]),y=(0,l.useRef)(null),b=e=>{g(e),S(e,_)},x=e=>{v(e),S(h,e)},S=(e,t)=>{f({order:e,visibleItems:t})},C=()=>{if(d)g(d.order),v(d.visibleItems);else{let e=[],t=[];for(let r of n){let n;`dataIndex`in r&&(n=Array.isArray(r.dataIndex)?r.dataIndex.join(`,`):r.dataIndex,e.push(n),`columnVisible`in r&&!r.columnVisible||t.push(n))}g(e),v(t)}},w=e=>{let t={...e},a=e=>(0,Q.jsxs)(`span`,{children:[e,(0,Q.jsx)(un,{onChangeOrder:b,onChangeVisible:x,order:h,columnsSort:r,visibleItems:_,columns:n,columnsVisible:i})]});return typeof e.title==`function`?t.title=t=>a(e.title(t)):t.title=a(e.title),t},T=e=>e!=null&&e!==``?(0,Q.jsx)(u.Tooltip,{title:e,placement:`topLeft`,children:(0,Q.jsx)(`span`,{className:`column-ellipsis`,children:e})}):`-`,E=(0,l.useMemo)(()=>{let e=n;if(!r&&!i)e=n;else{let t=[];h.filter(e=>_.includes(e)).forEach((e,a,o)=>{for(let s of n)if(`dataIndex`in s){let n;if(n=Array.isArray(s.dataIndex)?s.dataIndex.join(`,`):s.dataIndex,e===n){(r||i)&&a===o.length-1?t.push(w(s)):t.push(s);break}}}),e=t}return e.map(e=>(e.filters&&!e.filterIcon&&(e.filterIcon=(0,Q.jsx)(m.DownOutlined,{type:`icon-xiajiantou`,style:{fontWeight:500}})),e.ellipsis===!1?e.ellipsis=!1:(e.ellipsis={showTitle:!1,...e.ellipsis||{}},e.render||=T),e))},[h,_,n]),D=(0,l.useMemo)(()=>e.pagination?{...o||{},showTotal:()=>s&&s.length>0&&(0,Q.jsx)(_n,{...e})}:!1,[o]);return(0,l.useEffect)(()=>{C()},[]),(0,Q.jsx)(Kn,{ref:t,children:(0,Q.jsx)(u.Table,{ref:y,scroll:{x:900},components:{header:{cell:c?Wn:void 0}},...e,pagination:D,columns:c?Gn(E,a):E})})}var Jn=(0,l.forwardRef)(qn),Yn=Z(u.Form.Item)`
298
241
  .search-item__label {
299
242
  position: relative;
300
243
  display: inline-flex;
@@ -315,14 +258,14 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var C=Ae(H,se,W,ee,te+".
315
258
  .search-item__content {
316
259
  flex: 1;
317
260
  }
318
- `;function jf({children:e,...t}){return $.jsx(Df,{...t,children:e})}const Nf=Ne(qt.CaretUpOutlined,{shouldForwardProp:e=>e!=="show"})`
261
+ `;function Xn({children:e,...t}){return(0,Q.jsx)(Yn,{...t,children:e})}var Zn=Z(m.CaretUpOutlined,{shouldForwardProp:e=>e!==`show`})`
319
262
  transition: transform 0.3s ease-in-out;
320
- transform: rotate(${e=>e.show?"0deg":"180deg"});
321
- `;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"})`
263
+ transform: rotate(${e=>e.show?`0deg`:`180deg`});
264
+ `;function Qn({panel:e,onChange:t}){let n=(0,l.useMemo)(()=>e?.show,[e]);return(0,Q.jsxs)(u.Button,{type:`link`,style:{paddingLeft:0,paddingRight:0},onClick:(0,l.useCallback)(()=>{e?.toggle(),t?.(!e?.show)},[e]),children:[(0,Q.jsx)($,{id:`comgponent.searcharea.togle`,defaultMessage:`高级搜索`}),(0,Q.jsx)(Zn,{show:n})]})}var $n=Z(`div`,{shouldForwardProp:e=>e!==`show`})`
322
265
  overflow: hidden;
323
266
  transition: max-height 0.4s ease-in-out;
324
- max-height: ${e=>e.show?"450px":"0"};
325
- `,If=Ne(Ee.Form)`
267
+ max-height: ${e=>e.show?`450px`:`0`};
268
+ `,er=Z(u.Form)`
326
269
  &.ant-form {
327
270
  padding: 20px;
328
271
  padding-bottom: 0;
@@ -334,30 +277,9 @@ Valid keys: `+JSON.stringify(Object.keys(N),null," "));var C=Ae(H,se,W,ee,te+".
334
277
  margin-bottom: 20px;
335
278
  }
336
279
  }
337
- `,kf=Ne.div`
280
+ `,tr=Z.div`
338
281
  gap: 10px;
339
282
  display: flex;
340
283
  justify-content: flex-end;
341
284
  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]=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
- * @remix-run/router v1.23.2
344
- *
345
- * Copyright (c) Remix Software Inc.
346
- *
347
- * This source code is licensed under the MIT license found in the
348
- * LICENSE.md file in the root directory of this source tree.
349
- *
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(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,e.history)===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,e.history);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))&&lt(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,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(ka.test(e)){let o=e,i=o.startsWith("//")?new URL(t.protocol+o):new URL(o);if(a.includes(i.protocol))throw new Error("Invalid redirect location");let s=_t(i.pathname,r)!=null;if(i.origin===t.origin&&s)return i.pathname+i.search+i.hash}try{let o=n.createURL(e);if(a.includes(o.protocol))throw new Error("Invalid redirect location")}catch{}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
- * React Router v6.30.3
354
- *
355
- * Copyright (c) Remix Software Inc.
356
- *
357
- * This source code is licensed under the MIT license found in the
358
- * LICENSE.md file in the root directory of this source tree.
359
- *
360
- * @license MIT
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
-
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};window.routerHistory=window.routerHistory||new Map;const 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"){const v=Li(g);u(v);let p="";for(const x in v){const f=v[x];p+=`${x}=${f}&`}p=p.slice(0,-1),window.routerHistory.set(s.pathname,{path:`${s.pathname}?${p}`,replace:!0});return}window.routerHistory.set(s.pathname,{path:s.pathname,replace:!0,state:{...s.state||{},[a]:g}}),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;if(!p)return;const 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;
285
+ `;function nr({children:e,onSearch:t,onClose:n,onReset:r,resetFieldsValue:i,col:a={},row:o={},loading:s=!1,instance:c,...d}){let[f]=u.Form.useForm(),[p,h]=(0,l.useState)(c?.show??!1),g=(0,l.useMemo)(()=>c?.show??p,[c,p]),_=(0,l.useCallback)(()=>{typeof c?.toggle==`function`?c?.toggle?.():h(e=>!e)},[c,p]),v=()=>{let e=f.getFieldsValue();t?.(e)},y=()=>{i?f.setFieldsValue(i):f.resetFields(),v(),r?.()},b=()=>{_(),n?.()};return(0,Q.jsx)($n,{show:g,children:(0,Q.jsx)(er,{form:f,labelCol:{flex:`70px`},wrapperCol:{flex:`1`,style:{maxWidth:`280px`}},...d,children:(0,Q.jsxs)(u.Row,{gutter:10,justify:`space-between`,...o,children:[Array.isArray(e)?e.map(e=>(0,l.createElement)(u.Col,{span:6,xxl:6,xl:8,lg:12,xs:24,key:e.props.name||e.key||e.props.label,...a},e)):e,(0,Q.jsx)(u.Col,{flex:1,children:(0,Q.jsxs)(tr,{children:[(0,Q.jsx)(u.Button,{loading:s,type:`primary`,onClick:v,children:(0,Q.jsx)($,{id:`component.searcharea.submit`,defaultMessage:`筛选`})}),(0,Q.jsx)(u.Button,{loading:s,onClick:y,children:(0,Q.jsx)($,{id:`component.searcharea.reset`,defaultMessage:`重置`})}),(0,Q.jsxs)(u.Button,{type:`link`,style:{paddingLeft:0,paddingRight:0},onClick:b,children:[(0,Q.jsx)($,{id:`component.searcharea.close`,defaultMessage:`收起`}),(0,Q.jsx)(m.UpOutlined,{})]})]})})]})})})}var rr=nr;function ir(e){let[t,n]=(0,l.useState)(e??!1);return{show:t,toggle:()=>{n(e=>!e)}}}rr.useSearchArea=ir,rr.Item=Xn,rr.ToggleButton=Qn;function ar(e,t,n){let r=(0,p.useRequest)(e,{...t,onError(e,n){(t?.errorMessage??!0)&&Jt.error(e.message),t?.onError?.(e,n)}},n),i=r.data&&typeof r.data==`object`&&`data`in r.data?r.data.data:r.data;return{...r,data:i}}var or={ascend:`ASC`,descend:`DESC`},sr={rowKey:`id`,interval:!1,immediate:!0,defaultPagination:{current:1,pageSize:10},showRowSelection:!1,multiPageSelection:!1,onBeforeRequest:async e=>void 0,onAfterRequest:async e=>void 0};function cr(e,t={}){let n=Bt(),{rowKey:r,interval:i,immediate:a,defaultPagination:o,showRowSelection:s,multiPageSelection:c,onBeforeRequest:u,onAfterRequest:d}={...sr,...t},f=(0,l.useRef)(null),m=(0,l.useRef)(0),[h,g]=(0,l.useState)(!1),[_,v]=(0,l.useState)([]),[y,b]=(0,l.useState)({current:1,pageSize:10,total:0,...o}),[x,S]=(0,l.useState)([]),{current:C}=(0,l.useRef)({pageNum:1,pageSize:10,column:null,order:null}),w=(0,l.useRef)(y);w.current=y;let T=(0,p.useMemoizedFn)(async(t=1,n=10,r)=>{if(r!==`auto`)g(!0),D();else if(x.length!==0){E(t,n);return}let i=++m.current;try{let a={...C,pageNum:Number(t),pageSize:Number(n)},o=await u?.(a),s=await e(o===void 0?a:o),{records:c,total:l,current:f,size:p}=s.data,h=await d?.(s),g=Array.isArray(h)?h:c;if(i!==m.current)return;v(g),b(e=>f===e.current&&p===e.pageSize&&l===e.total?e:{current:f,pageSize:p,total:l}),g.length===0&&f&&f>1&&l&&l>0?T(Math.ceil(l/p),n,r):E(f,p)}catch(e){if(i!==m.current)return;let t=e instanceof Error?e.message:`请求失败`;Jt.error(t)}finally{if(i!==m.current)return;c||S([]),g(!1)}}),E=(0,p.useMemoizedFn)((e,t)=>{i&&(D(),f.current===null&&(f.current=setTimeout(()=>{T(e,t,`auto`)},i)))}),D=(0,l.useCallback)(()=>{f.current&&=(clearTimeout(f.current),null)},[]),O=(0,l.useCallback)((e,t,n)=>{S(t)},[]),k=(0,l.useCallback)((e={})=>{let t={pageNum:1,pageSize:y.pageSize,column:C.column,order:C.order};Object.keys(C).forEach(e=>{e!==`column`&&e!==`order`&&e!==`pageNum`&&e!==`pageSize`&&Reflect.deleteProperty(C,e)}),Object.assign(C,t,e),T(1,y.pageSize)},[y.pageSize,T,C]),A=(0,l.useCallback)(e=>{if(e){let t={column:C.column,order:C.order};e?.pageSize&&b({...y,pageSize:e.pageSize}),e?.pageNum&&b({...y,current:e.pageNum});for(let e in C)delete C[e];Object.assign(C,t,e),T(e?.pageNum||y.current,e?.pageSize||y.pageSize)}else T(y.current,y.pageSize)},[T,y,C]),j=(0,l.useCallback)((e,t,n,r)=>{Object.entries(t).forEach(([e,t])=>{t&&Array.isArray(t)&&t.length===1?C[e]=t[0]:C[e]=t});let i=Array.isArray(n)?n[0]:n;i?.order?(i?.column?.sort?C.column=i.column.sort:i.field&&(C.column=Array.isArray(i.field)?i.field[0]:i.field),C.order=or[i.order]):(C.column=null,C.order=null);let a=e.current??w.current.current,o=e.pageSize??w.current.pageSize;b(e=>({...e,current:a,pageSize:o})),T(a,o)},[T,C]),M=()=>{S([]),v([]),b({current:1,pageSize:10,total:0,...o}),g(!1),C.pageNum=1,C.pageSize=o?.pageSize||10};return(0,l.useEffect)(()=>(a&&T(w.current.current,w.current.pageSize),()=>{D()}),[a,T,D]),{loading:h,tableProps:{rowKey:String(r),loading:h,dataSource:_,...s?{rowSelection:{selectedRowKeys:x.map(e=>e[r]),onChange:O}}:{},onChange:j,pagination:{showQuickJumper:!0,showSizeChanger:!0,showTotal:e=>n.$t({id:`component.table.total`,defaultMessage:`共{total}条`},{total:e}),...y}},search:{pagination:y,params:C,submit:k,refresh:A,reset:M},rowSelection:{selectedRows:x,selectedRowKeys:x.map(e=>e[r])}}}var lr={Array:`a`,Boolean:`b`,Number:`n`,String:`s`,Undefined:`u`,Null:`N`},ur=(e,t)=>{let n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Array`)return e.length?`${lr[n]}${ur(e[0],e)}`:`u_u`;let r=t||[e];return n===`Boolean`?`${lr[n]}_${r.map(e=>e?1:0).join()}`:n===`String`?`${lr[n]}_${r.join()}`:n===`Null`?`${lr[n]}_${r.map(()=>`n`).join()}`:n===`Number`?`${lr[n]}_${r.join()}`:`u_${r.map(()=>`u`).join()}`},dr=e=>{e=decodeURIComponent(e);let t=e.slice(0,1)===`a`,n=t?e.slice(1,2):e.slice(0,1),r=t?e.slice(3).split(`,`):e.slice(2);return n===`b`?(0,f.isArray)(r)?r.map(e=>e===`1`):r===`1`:n===`s`?r:n===`n`?(0,f.isArray)(r)?r.map(e=>(0,f.toNumber)(e)):(0,f.toNumber)(r):n===`u`?(0,f.isArray)(r)?r.map(()=>void 0):void 0:n===`N`?(0,f.isArray)(r)?r.map(()=>null):null:r},fr=e=>Object.entries({...e}).reduce((e,[t,n])=>(e[t]=ur(n),e),{}),pr=e=>Object.entries({...e}).reduce((e,[t,n])=>(e[t]=dr(n),e),{});window.routerHistory=window.routerHistory||new Map;var mr=(e,t)=>{let{useSearchParams:n}=(0,l.useContext)(Kt),{storage:r=n?.storage||`state`,stateKey:i=n?.stateKey||`__searchParams__`}=t||n||{},a=(0,p.useUpdate)(),o=(0,h.useNavigate)(),s=(0,h.useLocation)(),[c,u]=(0,h.useSearchParams)(),d=(0,l.useMemo)(()=>{let e={};return c.forEach((t,n)=>{e[n]=t}),e},[c]),m=(0,l.useCallback)(e=>{let t=new URLSearchParams(c);Object.entries(e).forEach(([e,n])=>{n==null||n===``?t.delete(e):t.set(e,String(n))}),u(t,{replace:!0})},[c,u]),g=r===`url`?pr(d):s.state?.[i]||{},{current:_}=(0,l.useRef)({...e,...g}),v=e=>{typeof e==`function`?Object.assign(_,e(_)):Object.assign(_,e),a()},y=async e=>{let t={...e,y:window.scrollY};if(r===`url`){let e=fr(t);m(e);let n=new URLSearchParams;for(let[t,r]of Object.entries(e))r!=null&&r!==``&&n.set(t,String(r));let r=n.toString();window.routerHistory.set(s.pathname,{path:r?`${s.pathname}?${r}`:s.pathname,replace:!0});return}window.routerHistory.set(s.pathname,{path:s.pathname,replace:!0,state:{...s.state||{},[i]:t}}),o(s.pathname,{replace:!0,state:{...s.state,[i]:t}})},b=()=>{if(r!==`url`)return;let e=pr(d);Object.keys(e).forEach(t=>{e[t]=void 0}),m(e)};(0,l.useEffect)(()=>{r===`url`&&d?b():r===`state`&&y({}).catch(f.noop)},[]);let x=(0,l.useRef)(null),S=(0,l.useRef)(!1);return(0,h.useBlocker)(({currentLocation:e,nextLocation:t,historyAction:n})=>n===`POP`?!1:e.pathname===t.pathname?t.pathname===e.pathname&&x.current!==null&&(r===`url`&&t.search!==e.search||r===`state`&&!S.current)?(setTimeout(()=>{let e=x.current;e&&(o(`${e.pathname}${e.search}`,{replace:e.historyAction!==`PUSH`,state:e.state}),S.current=!1,x.current=null)},0),S.current=!0,!1):!1:r===`url`?e.search?!1:(x.current={...t,historyAction:n},y(_).catch(f.noop),!0):S.current?!1:(x.current={...t,historyAction:n},y(_).catch(f.noop),!0)),{searchParams:_,setSearchParams:v}};exports.App=Qt,exports.CheckboxValue=tn,exports.ConfigContext=Kt,exports.ConfigProvider=qt,exports.GlobalLoading=Lt,exports.IconButton=on,exports.IconFont=en,exports.SearchArea=rr,exports.SwitchValue=nn,exports.Table=Jn,Object.defineProperty(exports,`message`,{enumerable:!0,get:function(){return Jt}}),Object.defineProperty(exports,`modal`,{enumerable:!0,get:function(){return Xt}}),Object.defineProperty(exports,`notification`,{enumerable:!0,get:function(){return Yt}}),Object.defineProperty(exports,`setGlobalLoading`,{enumerable:!0,get:function(){return Mt}}),exports.useRequest=ar,exports.useSearchParams=mr,exports.useTable=cr;