@abtnode/blocklet-services 1.16.37-beta-20250106-134442-ea92021c → 1.16.37-beta-20250108-010153-e4bcd256
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/libs/connect/session.js +2 -1
- package/api/routes/oauth.js +2 -2
- package/api/routes/user.js +2 -1
- package/api/socket/channel/did.js +3 -0
- package/api/socket/util.js +2 -0
- package/api/util/index.js +0 -25
- package/dist/assets/Add-WwBlcqNF.js +1 -0
- package/dist/assets/{ArrowDropDown-BpEWICfl.js → ArrowDropDown-B6VSNrNX.js} +1 -1
- package/dist/assets/CheckCircle-n23HoB1l.js +1 -0
- package/dist/assets/ChevronLeft-DV-sPxhr.js +1 -0
- package/dist/assets/ChevronRight-UF0hSKpL.js +1 -0
- package/dist/assets/DeleteOutline-1Utxk_IX.js +1 -0
- package/dist/assets/Done-BbnQSLvu.js +1 -0
- package/dist/assets/Download-DRJvwpLt.js +1 -0
- package/dist/assets/{EditIcon-tG6wkTV8.js → EditIcon-DDucSncy.js} +1 -1
- package/dist/assets/{Error-DJ3gIUKv.js → Error-CL8m4Xu6.js} +1 -1
- package/dist/assets/{Google-xPNZ3SW6.js → Google-CSKRQW0F.js} +1 -1
- package/dist/assets/{InfoOutlined-C68E276M.js → InfoOutlined-7hC78o3_.js} +1 -1
- package/dist/assets/{Launch-BGwEi50t.js → Launch-D9iyATKb.js} +1 -1
- package/dist/assets/LaunchOutlined-D37WOXmf.js +1 -0
- package/dist/assets/{LockIcon-DkGeStY0.js → LockIcon-BIlUQ2kd.js} +1 -1
- package/dist/assets/{Loop-BGNTppkv.js → Loop-Clmz6DRv.js} +1 -1
- package/dist/assets/MoreHoriz-CtnQ7uqf.js +1 -0
- package/dist/assets/{PlayArrow-D2eSJrmH.js → PlayArrow-IJdeSlbo.js} +1 -1
- package/dist/assets/{QuestionMarkCircle-CRU8b9ID.js → QuestionMarkCircle-2fDrHopp.js} +1 -1
- package/dist/assets/{ServerLogo-2zkqpStV.js → ServerLogo-DsurTeGQ.js} +1 -1
- package/dist/assets/{ViewList-3IpnvMH9.js → ViewList-B-HVv7GT.js} +1 -1
- package/dist/assets/_createAggregator-BgG70oKG.js +1 -0
- package/dist/assets/{access-control-Cc5_tP4v.js → access-control-BP0rhxZ_.js} +1 -1
- package/dist/assets/{actions-DfuRxUKW.js → actions-DsY16tuf.js} +1 -1
- package/dist/assets/{add-component-core-CMZl0Aw9.js → add-component-core-C8hvHJq0.js} +12 -12
- package/dist/assets/{add-resource-DNWGI5Hi.js → add-resource-DZFTdNIy.js} +1 -1
- package/dist/assets/{addon-VajLOBqQ.js → addon-DUnQ9eC0.js} +1 -1
- package/dist/assets/{analytics-DjT9BDYe.js → analytics-Cym7YiQM.js} +3 -3
- package/dist/assets/{audit-logs-DXIS1eea.js → audit-logs-DtJdynVz.js} +1 -1
- package/dist/assets/base32-DZ5GWnEl.js +1 -0
- package/dist/assets/{branding-DP6PFXBo.js → branding-DEKXfpdd.js} +2 -2
- package/dist/assets/{bundle-avatar-CzB889SV.js → bundle-avatar-CtN88KlG.js} +1 -1
- package/dist/assets/button-CPeDg26t.js +1 -0
- package/dist/assets/{click-to-copy-oC180fIr.js → click-to-copy-D-rDpTU1.js} +1 -1
- package/dist/assets/{complete-Ck7c7oAE.js → complete-DfhluUOU.js} +1 -1
- package/dist/assets/{component-BZTnOYBQ.js → component-DET9TWBv.js} +1 -1
- package/dist/assets/{config-C-7B0ly9.js → config-Bh1NLHps.js} +1 -1
- package/dist/assets/{config-B592SaBl.js → config-Dx3rVqe3.js} +2 -2
- package/dist/assets/{config-navigation-BVFjfkWf.js → config-navigation-Cn0fwBBG.js} +5 -5
- package/dist/assets/{config-space-D5tEidjS.js → config-space-CT9a0s7Q.js} +1 -1
- package/dist/assets/{confirm-vgd_1-1V.js → confirm-DhCXP8vW.js} +1 -1
- package/dist/assets/connect-CA2-olTo.js +5 -0
- package/dist/assets/connect-GHQ2pLWc.js +1 -0
- package/dist/assets/connect-to-kYFiSkqc.js +1 -0
- package/dist/assets/{content-layout-D25Q_vVO.js → content-layout-C8ThavEP.js} +1 -1
- package/dist/assets/{dashboard-BgW0SYmh.js → dashboard-B3UhGh-u.js} +7 -7
- package/dist/assets/{did-address-DAnP601f.js → did-address-B-umhomj.js} +1 -1
- package/dist/assets/{domain-b6cmz4S4.js → domain-DzFcoe7i.js} +1 -1
- package/dist/assets/{domain-list-DLXeNUEV.js → domain-list-C9eJrdcx.js} +2 -2
- package/dist/assets/email-BEr-8TYu.js +18 -0
- package/dist/assets/{exchange-passport-Ah6Oc4Hf.js → exchange-passport-DGUT_ZCy.js} +1 -1
- package/dist/assets/{form-text-input-f773Hgdy.js → form-text-input-E0Z0s35O.js} +1 -1
- package/dist/assets/{fuel-D2M3FXAV.js → fuel-alylOU0b.js} +1 -1
- package/dist/assets/{fullpage-Dpka7-iX.js → fullpage-DZPI7F_L.js} +1 -1
- package/dist/assets/{get-safe-url-6EgCrTPK.js → get-safe-url-ByH0hntp.js} +1 -1
- package/dist/assets/{get-safe-url-BBLBic7f.js → get-safe-url-yHkHYeNB.js} +1 -1
- package/dist/assets/{home-DYkbr7a5.js → home-DG81Vlwd.js} +1 -1
- package/dist/assets/{iframe-Dh23G9Wt.js → iframe-BB-pL0gd.js} +1 -1
- package/dist/assets/{index-YMnfgOF9.js → index-7gknQYQQ.js} +1 -1
- package/dist/assets/{index-DTOMtrZi.js → index-B-0OFwWF.js} +1 -1
- package/dist/assets/{index-DPVdZRyD.js → index-B8B9jSby.js} +8 -8
- package/dist/assets/{index-CeXw2vcO.js → index-BRPzwIuP.js} +1 -1
- package/dist/assets/index-BaA1-UNL.js +1 -0
- package/dist/assets/{index-CqdCpHy-.js → index-CEyrfuix.js} +1 -1
- package/dist/assets/{index-BxUQG_ZS.js → index-CU_Y2Ics.js} +39 -39
- package/dist/assets/{index-B_nW8jWg.js → index-CYh2QqLk.js} +1 -1
- package/dist/assets/{index-f88YxSnq.js → index-CcsFwEG1.js} +1 -1
- package/dist/assets/{index-BUoBUFo9.js → index-CxWy6IEg.js} +1 -1
- package/dist/assets/{index-Cy5HwFoQ.js → index-DHmJ4NAw.js} +8 -8
- package/dist/assets/{index-BodKukbo.js → index-DNd_40WG.js} +2 -2
- package/dist/assets/{index-CDceAH6O.js → index-DjDooCTg.js} +3 -3
- package/dist/assets/{index-C6UmPiZc.js → index-Dk8-Ibsd.js} +1 -1
- package/dist/assets/{index-8-kTmhK2.js → index-SrY9WLdy.js} +1 -1
- package/dist/assets/{index-BEcpBIIf.js → index-e4kRKwa5.js} +1 -1
- package/dist/assets/index-jViTGvBx.js +5 -0
- package/dist/assets/{index-_s_fLZnI.js → index-tDqjC_e2.js} +38 -38
- package/dist/assets/{invitation-CxB-x_xn.js → invitation-BNOVM03D.js} +7 -7
- package/dist/assets/invite-CDXZxcmB.js +5 -0
- package/dist/assets/issue-passport-1v1d15DW.js +1 -0
- package/dist/assets/{item-6MGDbiPN.js → item-DoetJFaA.js} +1 -1
- package/dist/assets/{launch-result-message-CDh6C7yN.js → launch-result-message-BEuCq9h1.js} +1 -1
- package/dist/assets/{layout-CNG79gdU.js → layout-PlCf3Rtw.js} +1 -1
- package/dist/assets/{list-header-CWds6opx.js → list-header-DdT6PG1D.js} +3 -3
- package/dist/assets/localization-Cm0dNj2B.js +1 -0
- package/dist/assets/{log-BeVAiHHb.js → log-B5iPDWZ_.js} +1 -1
- package/dist/assets/login-DvM79Mfd.js +1 -0
- package/dist/assets/{login-oauth-callback-CBpbmy7Y.js → login-oauth-callback-CO19RzCL.js} +1 -1
- package/dist/assets/{logo-uploader-CC0caghQ.js → logo-uploader-CNnYMPxh.js} +3 -3
- package/dist/assets/{lost-passport-HU2qWAuA.js → lost-passport-DsG6aS5u.js} +2 -2
- package/dist/assets/{open-window-BvQJJhL_.js → open-window-Km_9DMrz.js} +1 -1
- package/dist/assets/overview-Dc_26DuW.js +12 -0
- package/dist/assets/{page-header-1PJsLh7u.js → page-header-B3m4UCOV.js} +1 -1
- package/dist/assets/{permission-BBg-Yh9T.js → permission-C7OYX2OJ.js} +1 -1
- package/dist/assets/{preferences-CB5uOidv.js → preferences-Ci4dS6YC.js} +1 -1
- package/dist/assets/publish-resource-BumbS1yx.js +1 -0
- package/dist/assets/{react-beautiful-dnd.esm-CCGMJ6tB.js → react-beautiful-dnd.esm-D6d5Zfr8.js} +4 -4
- package/dist/assets/{relative-time-gSR-I79i.js → relative-time-BHAJs1ji.js} +1 -1
- package/dist/assets/sdk-0UwYHc-i.js +1 -0
- package/dist/assets/session-UImnJahL.js +1 -0
- package/dist/assets/{setup-IWaLQEGW.js → setup-LHpIYQbe.js} +3 -3
- package/dist/assets/{shorten-label-cn1YaOcx.js → shorten-label-CKNjZbhF.js} +1 -1
- package/dist/assets/{simple-select-C05FGhNJ.js → simple-select-BMYrmYam.js} +1 -1
- package/dist/assets/{slicedToArray-DuBRe18s.js → slicedToArray-BPEJIbVV.js} +1 -1
- package/dist/assets/{start-DpxK1ev8.js → start-DxAs4dHz.js} +1 -1
- package/dist/assets/{step-actions-DcWKBXOu.js → step-actions-FdD-71wr.js} +1 -1
- package/dist/assets/{studio-B_CDfqTQ.js → studio-g2uaz9WG.js} +1 -1
- package/dist/assets/{switch-control-VwZyV9qS.js → switch-control-BMO1MVhi.js} +1 -1
- package/dist/assets/{toUpper-CD1KHWl4.js → toUpper-DUImrX4s.js} +1 -1
- package/dist/assets/{transfer-BjIffkrb.js → transfer-Bq5kjW_S.js} +1 -1
- package/dist/assets/{unsubscribe-BdE7c0PR.js → unsubscribe-DUmfJRPR.js} +1 -1
- package/dist/assets/{use-mobile-CRGhfnSw.js → use-mobile-DOkke39c.js} +1 -1
- package/dist/assets/{useAsync-Barwm_ml.js → useAsync-BfmmMB4I.js} +1 -1
- package/dist/assets/{useAsyncRetry-VpCDo2sM.js → useAsyncRetry-m5oMMmVh.js} +1 -1
- package/dist/assets/{useLocalStorage-DTPZT3h6.js → useLocalStorage-ganqTrK6.js} +1 -1
- package/dist/assets/user-center-CYnDNkIf.js +202 -0
- package/dist/assets/{util-D-lyK2FV.js → util-CmcVraD_.js} +1 -1
- package/dist/assets/{vendor-arcblock-DrV4Yh4h.js → vendor-arcblock-Dn16DH88.js} +131 -128
- package/dist/assets/{vendor-hooks-DHHsWSqV.js → vendor-hooks-DzETutIU.js} +1 -1
- package/dist/assets/{vendor-mui-core-BHQ3rDZc.js → vendor-mui-core-COxJgW9_.js} +1 -1
- package/dist/assets/{vendor-mui-x-CYVoSAR5.js → vendor-mui-x-Be0GxtOJ.js} +1 -1
- package/dist/assets/{wrap-locale-Brk8trIp.js → wrap-locale-DTO386nY.js} +1 -1
- package/dist/index.html +4 -4
- package/dist/service-worker.js +1 -1
- package/package.json +39 -39
- package/dist/assets/Add-BWCYHsqO.js +0 -1
- package/dist/assets/CheckCircle-CwD9Ke3p.js +0 -1
- package/dist/assets/ChevronLeft-DSkEbRl3.js +0 -1
- package/dist/assets/ChevronRight-D0L8yvDK.js +0 -1
- package/dist/assets/DeleteOutline-CXidpj4T.js +0 -1
- package/dist/assets/Done-C64D3evS.js +0 -1
- package/dist/assets/Download-Dw32CPvU.js +0 -1
- package/dist/assets/LaunchOutlined-Ca3gdurT.js +0 -1
- package/dist/assets/MoreHoriz-ByYwcz4x.js +0 -1
- package/dist/assets/_createAggregator-CTc4wR3U.js +0 -1
- package/dist/assets/base32-DpVKJ4W_.js +0 -1
- package/dist/assets/button-D3f-aYWj.js +0 -1
- package/dist/assets/connect-LMZbP6sp.js +0 -5
- package/dist/assets/connect-gaOu1HRw.js +0 -1
- package/dist/assets/connect-to-D-QS37Vn.js +0 -1
- package/dist/assets/email-KHVOUytb.js +0 -18
- package/dist/assets/index-BCJq3WNv.js +0 -5
- package/dist/assets/index-CgyFjfCK.js +0 -1
- package/dist/assets/invite-DBeeLtl3.js +0 -5
- package/dist/assets/issue-passport-DDvmexL3.js +0 -1
- package/dist/assets/localization--GnHWBZu.js +0 -1
- package/dist/assets/login-A-Fb7Rrc.js +0 -1
- package/dist/assets/overview-DIREa8hS.js +0 -12
- package/dist/assets/publish-resource-CmcZx-V_.js +0 -1
- package/dist/assets/sdk-BKgHFqrA.js +0 -1
- package/dist/assets/session-DjolhruE.js +0 -1
- package/dist/assets/user-center-DNT8JJcs.js +0 -202
|
@@ -4,4 +4,4 @@ import{g as B,e as Z,r as v,a as Ft}from"./vendor-react-D-afvo_7.js";import{d as
|
|
|
4
4
|
*
|
|
5
5
|
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
|
|
6
6
|
* Released under the MIT license
|
|
7
|
-
*/(function(e,t){(function(r){var n;if(e.exports=r(),n=!0,!n){var i=window.Cookies,o=window.Cookies=r();o.noConflict=function(){return window.Cookies=i,o}}})(function(){function r(){for(var o=0,a={};o<arguments.length;o++){var u=arguments[o];for(var f in u)a[f]=u[f]}return a}function n(o){return o.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(o){function a(){}function u(c,l,s){if(!(typeof document>"u")){s=r({path:"/"},a.defaults,s),typeof s.expires=="number"&&(s.expires=new Date(new Date*1+s.expires*864e5)),s.expires=s.expires?s.expires.toUTCString():"";try{var p=JSON.stringify(l);/^[\{\[]/.test(p)&&(l=p)}catch{}l=o.write?o.write(l,c):encodeURIComponent(String(l)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var d="";for(var h in s)s[h]&&(d+="; "+h,s[h]!==!0&&(d+="="+s[h].split(";")[0]));return document.cookie=c+"="+l+d}}function f(c,l){if(!(typeof document>"u")){for(var s={},p=document.cookie?document.cookie.split("; "):[],d=0;d<p.length;d++){var h=p[d].split("="),m=h.slice(1).join("=");!l&&m.charAt(0)==='"'&&(m=m.slice(1,-1));try{var g=n(h[0]);if(m=(o.read||o)(m,g)||n(m),l)try{m=JSON.parse(m)}catch{}if(s[g]=m,c===g)break}catch{}}return c?s[c]:s}}return a.set=u,a.get=function(c){return f(c,!1)},a.getJSON=function(c){return f(c,!0)},a.remove=function(c,l){u(c,"",r(l,{expires:-1}))},a.defaults={},a.withConverter=i,a}return i(function(){})})})(Ve);var yr=Ve.exports;const xi=B(yr);var br=/\s/;function wr(e){for(var t=e.length;t--&&br.test(e.charAt(t)););return t}var _r=wr,Er=_r,Or=/^\s+/;function Sr(e){return e&&e.slice(0,Er(e)+1).replace(Or,"")}var Rr=Sr,Tr=Rr,Me=oe,jr=mr,De=NaN,Cr=/^[-+]0x[0-9a-f]+$/i,Pr=/^0b[01]+$/i,xr=/^0o[0-7]+$/i,Ar=parseInt;function Mr(e){if(typeof e=="number")return e;if(jr(e))return De;if(Me(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Me(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Tr(e);var r=Pr.test(e);return r||xr.test(e)?Ar(e.slice(2),r?2:8):Cr.test(e)?De:+e}var Dr=Mr;function Lr(e,t){return function(r){return e(t(r))}}var $r=Lr,Ir=$r,Fr=Ir(Object.getPrototypeOf,Object),zr=Fr,Br=qe,Wr=zr,Hr=Ke,Nr="[object Object]",Gr=Function.prototype,Ur=Object.prototype,Je=Gr.toString,kr=Ur.hasOwnProperty,qr=Je.call(Object);function Kr(e){if(!Hr(e)||Br(e)!=Nr)return!1;var t=Wr(e);if(t===null)return!0;var r=kr.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Je.call(r)==qr}var Vr=Kr;const Jr=B(Vr);var Yr=function(e){return function(t,r){var n=v.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},ge=function(e,t){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ge(e,t)};function Ye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ge(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var j=function(){return j=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},j.apply(this,arguments)};function ae(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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Xe(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function Qe(e,t){return function(r,n){t(r,n,e)}}function Ze(e,t,r,n,i,o){function a(_){if(_!==void 0&&typeof _!="function")throw new TypeError("Function expected");return _}for(var u=n.kind,f=u==="getter"?"get":u==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,l=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),s,p=!1,d=r.length-1;d>=0;d--){var h={};for(var m in n)h[m]=m==="access"?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(_){if(p)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(_||null))};var g=(0,r[d])(u==="accessor"?{get:l.get,set:l.set}:l[f],h);if(u==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(s=a(g.get))&&(l.get=s),(s=a(g.set))&&(l.set=s),(s=a(g.init))&&i.unshift(s)}else(s=a(g))&&(u==="field"?i.unshift(s):l[f]=s)}c&&Object.defineProperty(c,n.name,l),p=!0}function et(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function tt(e){return typeof e=="symbol"?e:"".concat(e)}function rt(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function nt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Y(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(l){try{c(n.next(l))}catch(s){a(s)}}function f(l){try{c(n.throw(l))}catch(s){a(s)}}function c(l){l.done?o(l.value):i(l.value).then(u,f)}c((n=n.apply(e,t||[])).next())})}function X(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(c){return function(l){return f([c,l])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var ue=Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function it(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ue(t,e,r)}function I(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function ot(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function at(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)n[i]=o[a];return n}function E(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;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))}function G(e){return this instanceof G?(this.v=e,this):new G(e)}function ut(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(d){return function(h){return Promise.resolve(h).then(d,s)}}function u(d,h){n[d]&&(i[d]=function(m){return new Promise(function(g,_){o.push([d,m,g,_])>1||f(d,m)})},h&&(i[d]=h(i[d])))}function f(d,h){try{c(n[d](h))}catch(m){p(o[0][3],m)}}function c(d){d.value instanceof G?Promise.resolve(d.value.v).then(l,s):p(o[0][2],d)}function l(d){f("next",d)}function s(d){f("throw",d)}function p(d,h){d(h),o.shift(),o.length&&f(o[0][0],o[0][1])}}function ct(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,o){t[i]=e[i]?function(a){return(r=!r)?{value:G(e[i](a)),done:!1}:o?o(a):a}:o}}function ft(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof I=="function"?I(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(u,f){a=e[o](a),i(u,f,a.done,a.value)})}}function i(o,a,u,f){Promise.resolve(f).then(function(c){o({value:c,done:u})},a)}}function st(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Xr=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},ye=function(e){return ye=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},ye(e)};function lt(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ye(e),n=0;n<r.length;n++)r[n]!=="default"&&ue(t,e,r[n]);return Xr(t,e),t}function dt(e){return e&&e.__esModule?e:{default:e}}function vt(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function ht(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function pt(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function mt(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var Qr=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function gt(e){function t(o){e.error=e.hasError?new Qr(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function yt(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,a){return n?t?".jsx":".js":i&&(!o||!a)?r:i+o+"."+a.toLowerCase()+"js"}):e}const Zr={__extends:Ye,__assign:j,__rest:ae,__decorate:Xe,__param:Qe,__esDecorate:Ze,__runInitializers:et,__propKey:tt,__setFunctionName:rt,__metadata:nt,__awaiter:Y,__generator:X,__createBinding:ue,__exportStar:it,__values:I,__read:y,__spread:ot,__spreadArrays:at,__spreadArray:E,__await:G,__asyncGenerator:ut,__asyncDelegator:ct,__asyncValues:ft,__makeTemplateObject:st,__importStar:lt,__importDefault:dt,__classPrivateFieldGet:vt,__classPrivateFieldSet:ht,__classPrivateFieldIn:pt,__addDisposableResource:mt,__disposeResources:gt,__rewriteRelativeImportExtension:yt},en=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:mt,get __assign(){return j},__asyncDelegator:ct,__asyncGenerator:ut,__asyncValues:ft,__await:G,__awaiter:Y,__classPrivateFieldGet:vt,__classPrivateFieldIn:pt,__classPrivateFieldSet:ht,__createBinding:ue,__decorate:Xe,__disposeResources:gt,__esDecorate:Ze,__exportStar:it,__extends:Ye,__generator:X,__importDefault:dt,__importStar:lt,__makeTemplateObject:st,__metadata:nt,__param:Qe,__propKey:tt,__read:y,__rest:ae,__rewriteRelativeImportExtension:yt,__runInitializers:et,__setFunctionName:rt,__spread:ot,__spreadArray:E,__spreadArrays:at,__values:I,default:Zr},Symbol.toStringTag,{value:"Module"}));var F=function(e){return typeof e=="function"},tn=function(e){return typeof e=="string"},ce=function(e){return typeof e=="number"},rn=function(e){return typeof e>"u"};function D(e){var t=v.useRef(e);t.current=v.useMemo(function(){return e},[e]);var r=v.useRef();return r.current||(r.current=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t.current.apply(this,n)}),r.current}const J=Yr(v.useEffect);var bt=function(e,t){var r=t.manual,n=t.ready,i=n===void 0?!0:n,o=t.defaultParams,a=o===void 0?[]:o,u=t.refreshDeps,f=u===void 0?[]:u,c=t.refreshDepsAction,l=v.useRef(!1);return l.current=!1,J(function(){!r&&i&&(l.current=!0,e.run.apply(e,E([],y(a),!1)))},[i]),J(function(){l.current||r||(l.current=!0,c?c():e.refresh())},E([],y(f),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};bt.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function be(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}function Oe(e,t){var r=v.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!be(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function L(e){var t=v.useRef(e);return t.current=e,t}var W=function(e){var t=L(e);v.useEffect(function(){return function(){t.current()}},[])},te=new Map,nn=function(e,t,r){var n=te.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var i=void 0;t>-1&&(i=setTimeout(function(){te.delete(e)},t)),te.set(e,j(j({},r),{timer:i}))},on=function(e){return te.get(e)},re=new Map,an=function(e){return re.get(e)},un=function(e,t){re.set(e,t),t.then(function(r){return re.delete(e),r}).catch(function(){re.delete(e)})},$={},cn=function(e,t){$[e]&&$[e].forEach(function(r){return r(t)})},he=function(e,t){return $[e]||($[e]=[]),$[e].push(t),function(){var n=$[e].indexOf(t);$[e].splice(n,1)}},fn=function(e,t){var r=t.cacheKey,n=t.cacheTime,i=n===void 0?5*60*1e3:n,o=t.staleTime,a=o===void 0?0:o,u=t.setCache,f=t.getCache,c=v.useRef(),l=v.useRef(),s=function(d,h){u?u(h):nn(d,i,h),cn(d,h.data)},p=function(d,h){return h===void 0&&(h=[]),f?f(h):on(d)};return Oe(function(){if(r){var d=p(r);d&&Object.hasOwnProperty.call(d,"data")&&(e.state.data=d.data,e.state.params=d.params,(a===-1||new Date().getTime()-d.time<=a)&&(e.state.loading=!1)),c.current=he(r,function(h){e.setState({data:h})})}},[]),W(function(){var d;(d=c.current)===null||d===void 0||d.call(c)}),r?{onBefore:function(d){var h=p(r,d);return!h||!Object.hasOwnProperty.call(h,"data")?{}:a===-1||new Date().getTime()-h.time<=a?{loading:!1,data:h==null?void 0:h.data,error:void 0,returnNow:!0}:{data:h==null?void 0:h.data,error:void 0}},onRequest:function(d,h){var m=an(r);return m&&m!==l.current?{servicePromise:m}:(m=d.apply(void 0,E([],y(h),!1)),l.current=m,un(r,m),{servicePromise:m})},onSuccess:function(d,h){var m;r&&((m=c.current)===null||m===void 0||m.call(c),s(r,{data:d,params:h,time:new Date().getTime()}),c.current=he(r,function(g){e.setState({data:g})}))},onMutate:function(d){var h;r&&((h=c.current)===null||h===void 0||h.call(c),s(r,{data:d,params:e.state.params,time:new Date().getTime()}),c.current=he(r,function(m){e.setState({data:m})}))}}:{}},sn=Ge,ln=function(){return sn.Date.now()},dn=ln,vn=oe,pe=dn,Le=Dr,hn="Expected a function",pn=Math.max,mn=Math.min;function gn(e,t,r){var n,i,o,a,u,f,c=0,l=!1,s=!1,p=!0;if(typeof e!="function")throw new TypeError(hn);t=Le(t)||0,vn(r)&&(l=!!r.leading,s="maxWait"in r,o=s?pn(Le(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function d(w){var T=n,O=i;return n=i=void 0,c=w,a=e.apply(O,T),a}function h(w){return c=w,u=setTimeout(_,t),l?d(w):a}function m(w){var T=w-f,O=w-c,x=t-T;return s?mn(x,o-O):x}function g(w){var T=w-f,O=w-c;return f===void 0||T>=t||T<0||s&&O>=o}function _(){var w=pe();if(g(w))return b(w);u=setTimeout(_,m(w))}function b(w){return u=void 0,p&&n?d(w):(n=i=void 0,a)}function R(){u!==void 0&&clearTimeout(u),c=0,n=f=i=u=void 0}function P(){return u===void 0?a:b(pe())}function S(){var w=pe(),T=g(w);if(n=arguments,i=this,f=w,T){if(u===void 0)return h(f);if(s)return clearTimeout(u),u=setTimeout(_,t),d(f)}return u===void 0&&(u=setTimeout(_,t)),a}return S.cancel=R,S.flush=P,S}var wt=gn;const _t=B(wt);var yn=function(e,t){var r=t.debounceWait,n=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,a=v.useRef(),u=v.useMemo(function(){var f={};return n!==void 0&&(f.leading=n),i!==void 0&&(f.trailing=i),o!==void 0&&(f.maxWait=o),f},[n,i,o]);return v.useEffect(function(){if(r){var f=e.runAsync.bind(e);return a.current=_t(function(c){c()},r,u),e.runAsync=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new Promise(function(s,p){var d;(d=a.current)===null||d===void 0||d.call(a,function(){f.apply(void 0,E([],y(c),!1)).then(s).catch(p)})})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=f}}},[r,u]),r?{onCancel:function(){var f;(f=a.current)===null||f===void 0||f.cancel()}}:{}},bn=function(e,t){var r=t.loadingDelay,n=t.ready,i=v.useRef();if(!r)return{};var o=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return o(),n!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},H=!!(typeof window<"u"&&window.document&&window.document.createElement);function Se(){return H?document.visibilityState!=="hidden":!0}var K=[];function wn(e){return K.push(e),function(){var r=K.indexOf(e);K.splice(r,1)}}if(H){var _n=function(){if(Se())for(var e=0;e<K.length;e++){var t=K[e];t()}};window.addEventListener("visibilitychange",_n,!1)}var En=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,i=n===void 0?!0:n,o=t.pollingErrorRetryCount,a=o===void 0?-1:o,u=v.useRef(),f=v.useRef(),c=v.useRef(0),l=function(){var s;u.current&&clearTimeout(u.current),(s=f.current)===null||s===void 0||s.call(f)};return J(function(){r||l()},[r]),r?{onBefore:function(){l()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){a===-1||a!==-1&&c.current<=a?u.current=setTimeout(function(){!i&&!Se()?f.current=wn(function(){e.refresh()}):e.refresh()},r):c.current=0},onCancel:function(){l()}}:{}};function On(e,t){var r=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(r=!0,e.apply(void 0,E([],y(n),!1)),setTimeout(function(){r=!1},t))}}function Sn(){return H&&typeof navigator.onLine<"u"?navigator.onLine:!0}var V=[];function Rn(e){return V.push(e),function(){var r=V.indexOf(e);r>-1&&V.splice(r,1)}}if(H){var $e=function(){if(!(!Se()||!Sn()))for(var e=0;e<V.length;e++){var t=V[e];t()}};window.addEventListener("visibilitychange",$e,!1),window.addEventListener("focus",$e,!1)}var Tn=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,i=n===void 0?5e3:n,o=v.useRef(),a=function(){var u;(u=o.current)===null||u===void 0||u.call(o)};return v.useEffect(function(){if(r){var u=On(e.refresh.bind(e),i);o.current=Rn(function(){u()})}return function(){a()}},[r,i]),W(function(){a()}),{}},jn=function(e,t){var r=t.retryInterval,n=t.retryCount,i=v.useRef(),o=v.useRef(0),a=v.useRef(!1);return n?{onBefore:function(){a.current||(o.current=0),a.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,n===-1||o.current<=n){var u=r??Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){a.current=!0,e.refresh()},u)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},Cn=wt,Pn=oe,xn="Expected a function";function An(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(xn);return Pn(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Cn(e,t,{leading:n,maxWait:t,trailing:i})}var Mn=An;const Et=B(Mn);var Dn=function(e,t){var r=t.throttleWait,n=t.throttleLeading,i=t.throttleTrailing,o=v.useRef(),a={};return n!==void 0&&(a.leading=n),i!==void 0&&(a.trailing=i),v.useEffect(function(){if(r){var u=e.runAsync.bind(e);return o.current=Et(function(f){f()},r,a),e.runAsync=function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];return new Promise(function(l,s){var p;(p=o.current)===null||p===void 0||p.call(o,function(){u.apply(void 0,E([],y(f),!1)).then(l).catch(s)})})},function(){var f;e.runAsync=u,(f=o.current)===null||f===void 0||f.cancel()}}},[r,n,i]),r?{onCancel:function(){var u;(u=o.current)===null||u===void 0||u.cancel()}}:{}},Ln=function(e){v.useEffect(function(){e==null||e()},[])},Ot=function(){var e=y(v.useState({}),2),t=e[1];return v.useCallback(function(){return t({})},[])},$n=function(){function e(t,r,n,i){i===void 0&&(i={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=j(j(j({},this.state),{loading:!r.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=j(j({},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 i=this.pluginImpls.map(function(o){var a;return(a=o[t])===null||a===void 0?void 0:a.call.apply(a,E([o],y(r),!1))}).filter(Boolean);return Object.assign.apply(Object,E([{}],y(i),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Y(this,void 0,void 0,function(){var n,i,o,a,u,f,c,l,s,p,d,h,m,g,_,b,R,P,S,w,T;return X(this,function(O){switch(O.label){case 0:if(this.count+=1,n=this.count,i=this.runPluginHandler("onBefore",t),o=i.stopNow,a=o===void 0?!1:o,u=i.returnNow,f=u===void 0?!1:u,c=ae(i,["stopNow","returnNow"]),a)return[2,new Promise(function(){})];if(this.setState(j({loading:!0,params:t},c)),f)return[2,Promise.resolve(c.data)];(m=(h=this.options).onBefore)===null||m===void 0||m.call(h,t),O.label=1;case 1:return O.trys.push([1,3,,4]),l=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,l||(l=(d=this.serviceRef).current.apply(d,E([],y(t),!1))),[4,l];case 2:return s=O.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:s,error:void 0,loading:!1}),(_=(g=this.options).onSuccess)===null||_===void 0||_.call(g,s,t),this.runPluginHandler("onSuccess",s,t),(R=(b=this.options).onFinally)===null||R===void 0||R.call(b,t,s,void 0),n===this.count&&this.runPluginHandler("onFinally",t,s,void 0),[2,s]);case 3:if(p=O.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:p,loading:!1}),(S=(P=this.options).onError)===null||S===void 0||S.call(P,p,t),this.runPluginHandler("onError",p,t),(T=(w=this.options).onFinally)===null||T===void 0||T.call(w,t,void 0,p),n===this.count&&this.runPluginHandler("onFinally",t,void 0,p),p;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,E([],y(r),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,E([],y(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,E([],y(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=F(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function In(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,i=n===void 0?!1:n,o=t.ready,a=o===void 0?!0:o,u=ae(t,["manual","ready"]),f=j({manual:i,ready:a},u),c=L(e),l=Ot(),s=Oe(function(){var p=r.map(function(d){var h;return(h=d==null?void 0:d.onInit)===null||h===void 0?void 0:h.call(d,f)}).filter(Boolean);return new $n(c,f,l,Object.assign.apply(Object,E([{}],y(p),!1)))},[]);return s.options=f,s.pluginImpls=r.map(function(p){return p(s,f)}),Ln(function(){if(!i&&a){var p=s.state.params||t.defaultParams||[];s.run.apply(s,E([],y(p),!1))}}),W(function(){s.cancel()}),{loading:s.state.loading,data:s.state.data,error:s.state.error,params:s.state.params||[],cancel:D(s.cancel.bind(s)),refresh:D(s.refresh.bind(s)),refreshAsync:D(s.refreshAsync.bind(s)),run:D(s.run.bind(s)),runAsync:D(s.runAsync.bind(s)),mutate:D(s.mutate.bind(s))}}function Fn(e,t,r){return In(e,t,E(E([],y([]),!1),[yn,bn,En,Tn,Dn,bt,fn,jn],!1))}function zn(e){return F(e[Symbol.asyncIterator])}function Ai(e,t){v.useEffect(function(){var r=e(),n=!1;function i(){return Y(this,void 0,void 0,function(){var o;return X(this,function(a){switch(a.label){case 0:if(!zn(r))return[3,4];a.label=1;case 1:return[4,r.next()];case 2:return o=a.sent(),o.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:a.sent(),a.label=6;case 6:return[2]}})})}return i(),function(){n=!0}},t)}function Bn(e,t){var r=y(v.useState(e),2),n=r[0],i=r[1],o=v.useMemo(function(){var a=!e,u=function(){return i(function(s){return s===e?a:e})},f=function(s){return i(s)},c=function(){return i(e)},l=function(){return i(a)};return{toggle:u,set:f,setLeft:c,setRight:l}},[]);return[n,o]}function Mi(e){var t=y(Bn(!!e),2),r=t[0],n=t[1],i=n.toggle,o=n.set,a=v.useMemo(function(){var u=function(){return o(!0)},f=function(){return o(!1)};return{toggle:i,set:function(c){return o(!!c)},setTrue:u,setFalse:f}},[]);return[r,a]}function z(e,t){if(H){if(!e)return t;var r;return F(e)?r=e():"current"in e?r=e.current:r=e,r}}var St=function(e){var t=function(r,n,i){var o=v.useRef(!1),a=v.useRef([]),u=v.useRef([]),f=v.useRef();e(function(){var c,l=Array.isArray(i)?i:[i],s=l.map(function(p){return z(p)});if(!o.current){o.current=!0,a.current=s,u.current=n,f.current=r();return}(s.length!==a.current.length||!be(a.current,s)||!be(u.current,n))&&((c=f.current)===null||c===void 0||c.call(f),a.current=s,u.current=n,f.current=r())}),W(function(){var c;(c=f.current)===null||c===void 0||c.call(f),o.current=!1})};return t},Re=St(v.useEffect),me=function(e){if(!e)return 0;var t=zt(e).valueOf()-Date.now();return t<0?0:t},Wn=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},Di=function(e){e===void 0&&(e={});var t=e||{},r=t.leftTime,n=t.targetDate,i=t.interval,o=i===void 0?1e3:i,a=t.onEnd,u=v.useMemo(function(){return ce(r)&&r>0?Date.now()+r:void 0},[r]),f="leftTime"in e?u:n,c=y(v.useState(function(){return me(f)}),2),l=c[0],s=c[1],p=L(a);v.useEffect(function(){if(!f){s(0);return}s(me(f));var h=setInterval(function(){var m,g=me(f);s(g),g===0&&(clearInterval(h),(m=p.current)===null||m===void 0||m.call(p))},o);return function(){return clearInterval(h)}},[f,o]);var d=v.useMemo(function(){return Wn(l)},[l]);return[l,d]};function Hn(e,t){var r,n=L(e),i=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,o=v.useMemo(function(){return _t(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,E([],y(a),!1))},i,t)},[]);return W(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}function Li(e,t){var r=y(v.useState(e),2),n=r[0],i=r[1],o=Hn(function(){i(e)},t).run;return v.useEffect(function(){o()},[e]),n}var Nn=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),Ut(e,t)};function we(e,t,r){r===void 0&&(r={});var n=r.enable,i=n===void 0?!0:n,o=L(t);Re(function(){if(i){var a=z(r.target,window);if(a!=null&&a.addEventListener){var u=function(c){return o.current(c)},f=Array.isArray(e)?e:[e];return f.forEach(function(c){a.addEventListener(c,u,{capture:r.capture,once:r.once,passive:r.passive})}),function(){f.forEach(function(c){a.removeEventListener(c,u,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,i],r.target)}function $i(e){var t=y(v.useState(e),2),r=t[0],n=t[1],i=L(r),o=v.useCallback(function(){return i.current},[]);return[r,n,o]}var Gn=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Ie=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Un=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Ii=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,o=i===void 0?100:i,a=t.direction,u=a===void 0?"bottom":a,f=t.reloadDeps,c=f===void 0?[]:f,l=t.manual,s=t.onBefore,p=t.onSuccess,d=t.onError,h=t.onFinally,m=y(v.useState(),2),g=m[0],_=m[1],b=y(v.useState(!1),2),R=b[0],P=b[1],S=u==="top",w=v.useRef(),T=v.useRef(0),O=v.useMemo(function(){return n?n(g):!1},[g]),x=Fn(function(A){return Y(void 0,void 0,void 0,function(){var C,M,N,k;return X(this,function(Ce){switch(Ce.label){case 0:return[4,e(A)];case 1:return C=Ce.sent(),_(A?j(j({},C),{list:S?E(E([],y(C.list),!1),y((N=A.list)!==null&&N!==void 0?N:[]),!1):E(E([],y((k=A.list)!==null&&k!==void 0?k:[]),!1),y(C.list),!1)}):j(j({},C),{list:E([],y((M=C.list)!==null&&M!==void 0?M:[]),!1)})),[2,C]}})})},{manual:l,onFinally:function(A,C,M){P(!1),h==null||h(C,M)},onBefore:function(){return s==null?void 0:s()},onSuccess:function(A){setTimeout(function(){if(S){var C=z(r);if(C=C===document?document.documentElement:C,C){var M=Ie(C);C.scrollTo(0,M-T.current)}}else je()}),p==null||p(A)},onError:function(A){return d==null?void 0:d(A)}}),Q=x.loading,se=x.error,le=x.run,Te=x.runAsync,Dt=x.cancel,de=D(function(){O||(P(!0),le(g))}),Lt=D(function(){return O?Promise.reject():(P(!0),Te(g))}),$t=function(){return P(!1),le()},It=function(){return P(!1),Te()},je=function(){var A=z(r);if(A){var C=A===document?document.documentElement:A,M=Gn(C),N=Ie(C),k=Un(C);S?(w.current!==void 0&&w.current>M&&M<=o&&de(),w.current=M,T.current=N-M):N-M<=k+o&&de()}};return we("scroll",function(){Q||R||je()},{target:r}),J(function(){le()},E([],y(c),!1)),{data:g,loading:!R&&Q,error:se,loadingMore:R,noMore:O,loadMore:de,loadMoreAsync:Lt,reload:D($t),reloadAsync:D(It),mutate:_,cancel:Dt}},Fi=function(e,t,r){r===void 0&&(r={});var n=D(e),i=v.useRef(null),o=v.useCallback(function(){i.current&&clearInterval(i.current)},[]);return v.useEffect(function(){if(!(!ce(t)||t<0))return r.immediate&&n(),i.current=setInterval(n,t),o},[t,r.immediate]),o},kn=function(e,t,r){var n=v.useRef(),i=v.useRef(0);Nn(t,n.current)||(i.current+=1),n.current=t,Re(e,[i.current],r)},qn=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),Rt={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:qn?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},_e={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?Rt.meta.includes(e.keyCode):e.metaKey}};function Tt(e){return tn(e)||ce(e)}function Kn(e){var t=Object.keys(_e).reduce(function(r,n){return _e[n](e)?r+1:r},0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function Fe(e,t,r){var n,i;if(!e.key)return!1;if(ce(t))return e.keyCode===t?t:!1;var o=t.split("."),a=0;try{for(var u=I(o),f=u.next();!f.done;f=u.next()){var c=f.value,l=_e[c],s=Rt[c.toLowerCase()];(l&&l(e)||s&&s===e.keyCode)&&a++}}catch(p){n={error:p}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return r?a===o.length&&Kn(e)===o.length?t:!1:a===o.length?t:!1}function Vn(e,t){return F(e)?e:Tt(e)?function(r){return Fe(r,e,t)}:Array.isArray(e)?function(r){return e.find(function(n){return Fe(r,n,t)})}:function(){return!!e}}var Jn=["keydown"];function zi(e,t,r){var n=r||{},i=n.events,o=i===void 0?Jn:i,a=n.target,u=n.exactMatch,f=u===void 0?!1:u,c=n.useCapture,l=c===void 0?!1:c,s=L(t),p=L(e);kn(function(){var d,h,m,g=z(a,window);if(g){var _=function(S){var w,T=Vn(p.current,f),O=T(S),x=Tt(O)?O:S.key;if(O)return(w=s.current)===null||w===void 0?void 0:w.call(s,S,x)};try{for(var b=I(o),R=b.next();!R.done;R=b.next()){var P=R.value;(m=g==null?void 0:g.addEventListener)===null||m===void 0||m.call(g,P,_,l)}}catch(S){d={error:S}}finally{try{R&&!R.done&&(h=b.return)&&h.call(b)}finally{if(d)throw d.error}}return function(){var S,w,T;try{for(var O=I(o),x=O.next();!x.done;x=O.next()){var Q=x.value;(T=g==null?void 0:g.removeEventListener)===null||T===void 0||T.call(g,Q,_,l)}}catch(se){S={error:se}}finally{try{x&&!x.done&&(w=O.return)&&w.call(O)}finally{if(S)throw S.error}}}}},[o],a)}var ze="AHOOKS_SYNC_STORAGE_EVENT_NAME";function Yn(e){function t(r,n){n===void 0&&(n={});var i,o=n.listenStorageChange,a=o===void 0?!1:o,u=n.onError,f=u===void 0?function(b){console.error(b)}:u;try{i=e()}catch(b){f(b)}var c=function(b){return n.serializer?n.serializer(b):JSON.stringify(b)},l=function(b){return n.deserializer?n.deserializer(b):JSON.parse(b)};function s(){try{var b=i==null?void 0:i.getItem(r);if(b)return l(b)}catch(R){f(R)}return F(n.defaultValue)?n.defaultValue():n.defaultValue}var p=y(v.useState(s),2),d=p[0],h=p[1];J(function(){h(s())},[r]);var m=function(b){var R=F(b)?b(d):b;a||h(R);try{var P=void 0,S=i==null?void 0:i.getItem(r);rn(R)?(P=null,i==null||i.removeItem(r)):(P=c(R),i==null||i.setItem(r,P)),dispatchEvent(new CustomEvent(ze,{detail:{key:r,newValue:P,oldValue:S,storageArea:i}}))}catch(w){f(w)}},g=function(b){b.key!==r||b.storageArea!==i||h(s())},_=function(b){g(b.detail)};return we("storage",g,{enable:a}),we(ze,_,{enable:a}),[d,D(m)]}return t}var Bi=Yn(function(){return H?localStorage:void 0});function Xn(e){var t=v.useRef(0),r=y(v.useState(e),2),n=r[0],i=r[1],o=v.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(a)})},[]);return W(function(){cancelAnimationFrame(t.current)}),[n,o]}var Qn=function(e,t){return!Object.is(e,t)};function Wi(e,t){t===void 0&&(t=Qn);var r=v.useRef(),n=v.useRef();return t(n.current,e)&&(r.current=n.current,n.current=e),r.current}var Be=new WeakMap,We=new WeakMap;function jt(e,t){var r=Be.get(e);if(r)return r;if(We.has(e))return e;var n=new Proxy(e,{get:function(i,o,a){var u=Reflect.get(i,o,a),f=Reflect.getOwnPropertyDescriptor(i,o);return!(f!=null&&f.configurable)&&!(f!=null&&f.writable)?u:Jr(u)||Array.isArray(u)?jt(u,t):u},set:function(i,o,a){var u=Reflect.set(i,o,a);return t(),u},deleteProperty:function(i,o){var a=Reflect.deleteProperty(i,o);return t(),a}});return Be.set(e,n),We.set(n,e),n}function Hi(e){var t=Ot(),r=v.useRef(e),n=Oe(function(){return jt(r.current,function(){t()})},[]);return n}var Ni=function(e){var t=y(v.useState(e),2),r=t[0],n=t[1],i=D(function(o){n(function(a){var u=F(o)?o(a):o;return u?j(j({},a),u):a})});return[r,i]},Ct=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];r.call(n,a[1],a[0])}},t}()}(),Ee=typeof window<"u"&&typeof document<"u"&&window.document===document,ne=function(){return typeof ve<"u"&&ve.Math===Math?ve:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Zn=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ne):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),ei=2;function ti(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&u()}function a(){Zn(o)}function u(){var f=Date.now();if(r){if(f-i<ei)return;n=!0}else r=!0,n=!1,setTimeout(a,t);i=f}return u}var ri=20,ni=["top","right","bottom","left","width","height","size","weight"],ii=typeof MutationObserver<"u",oi=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ti(this.refresh.bind(this),ri)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Ee||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ii?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ee||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=ni.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Pt=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},U=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ne},xt=fe(0,0,0,0);function ie(e){return parseFloat(e)||0}function He(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+ie(o)},0)}function ai(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],a=e["padding-"+o];r[o]=ie(a)}return r}function ui(e){var t=e.getBBox();return fe(0,0,t.width,t.height)}function ci(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return xt;var n=U(e).getComputedStyle(e),i=ai(n),o=i.left+i.right,a=i.top+i.bottom,u=ie(n.width),f=ie(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=He(n,"left","right")+o),Math.round(f+a)!==r&&(f-=He(n,"top","bottom")+a)),!si(e)){var c=Math.round(u+o)-t,l=Math.round(f+a)-r;Math.abs(c)!==1&&(u-=c),Math.abs(l)!==1&&(f-=l)}return fe(i.left,i.top,u,f)}var fi=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof U(e).SVGGraphicsElement}:function(e){return e instanceof U(e).SVGElement&&typeof e.getBBox=="function"}}();function si(e){return e===U(e).document.documentElement}function li(e){return Ee?fi(e)?ui(e):ci(e):xt}function di(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Pt(a,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),a}function fe(e,t,r,n){return{x:e,y:t,width:r,height:n}}var vi=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=fe(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=li(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),hi=function(){function e(t,r){var n=di(r);Pt(this,{target:t,contentRect:n})}return e}(),pi=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Ct,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof U(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new vi(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof U(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new hi(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),At=typeof WeakMap<"u"?new WeakMap:new Ct,Mt=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=oi.getInstance(),n=new pi(t,r,this);At.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Mt.prototype[e]=function(){var t;return(t=At.get(this))[e].apply(t,arguments)}});var mi=function(){return typeof ne.ResizeObserver<"u"?ne.ResizeObserver:Mt}(),gi=St(v.useLayoutEffect),yi=H?gi:Re;function Gi(e){var t=y(Xn(function(){var i=z(e);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),r=t[0],n=t[1];return yi(function(){var i=z(e);if(i){var o=new mi(function(a){a.forEach(function(u){var f=u.target,c=f.clientWidth,l=f.clientHeight;n({width:c,height:l})})});return o.observe(i),function(){o.disconnect()}}},[],e),r}function Ui(e,t){var r,n=L(e),i=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,o=v.useMemo(function(){return Et(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,E([],y(a),!1))},i,t)},[]);return W(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}var bi=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}},wi=bi,Ne={"text/plain":"Text","text/html":"Url",default:"Text"},_i="Copy to clipboard: #{key}, Enter";function Ei(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Oi(e,t){var r,n,i,o,a,u,f=!1;t||(t={}),r=t.debug||!1;try{i=wi(),o=document.createRange(),a=document.getSelection(),u=document.createElement("span"),u.textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(l){if(l.stopPropagation(),t.format)if(l.preventDefault(),typeof l.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=Ne[t.format]||Ne.default;window.clipboardData.setData(s,e)}else l.clipboardData.clearData(),l.clipboardData.setData(t.format,e);t.onCopy&&(l.preventDefault(),t.onCopy(l.clipboardData))}),document.body.appendChild(u),o.selectNodeContents(u),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");f=!0}catch(l){r&&console.error("unable to copy using execCommand: ",l),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(s){r&&console.error("unable to copy using clipboardData: ",s),r&&console.error("falling back to prompt"),n=Ei("message"in t?t.message:_i),window.prompt(n,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),u&&document.body.removeChild(u),i()}return f}var Si=Oi;const ki=B(Si),qi=Ft(en);function Ri(){var e=v.useRef(!1),t=v.useCallback(function(){return e.current},[]);return v.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}function Ti(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=v.useRef(0),i=Ri(),o=v.useState(r),a=o[0],u=o[1],f=v.useCallback(function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];var s=++n.current;return a.loading||u(function(p){return j(j({},p),{loading:!0})}),e.apply(void 0,c).then(function(p){return i()&&s===n.current&&u({value:p,loading:!1}),p},function(p){return i()&&s===n.current&&u({error:p,loading:!1}),p})},t);return[a,f]}function Ki(e,t){t===void 0&&(t=[]);var r=Ti(e,t,{loading:!0}),n=r[0],i=r[1];return v.useEffect(function(){i()},[i]),n}export{J as A,Fn as B,xi as C,W as D,L as E,Ui as F,_r as G,Di as H,Ni as I,qi as J,Ii as K,Ki as L,Ot as M,wt as N,zi as O,Mi as P,_t as Q,Et as R,$i as S,qe as _,mr as a,oe as b,Ge as c,Ue as d,zr as e,Ke as f,qt as g,Vr as h,Ut as i,$r as j,Hi as k,Pi as l,Xe as m,ki as n,Gi as o,Oe as p,Hn as q,Rr as r,Fi as s,Dr as t,D as u,Li as v,Ai as w,Bi as x,Ln as y,Wi as z};
|
|
7
|
+
*/(function(e,t){(function(r){var n;if(e.exports=r(),n=!0,!n){var i=window.Cookies,o=window.Cookies=r();o.noConflict=function(){return window.Cookies=i,o}}})(function(){function r(){for(var o=0,a={};o<arguments.length;o++){var u=arguments[o];for(var f in u)a[f]=u[f]}return a}function n(o){return o.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(o){function a(){}function u(c,l,s){if(!(typeof document>"u")){s=r({path:"/"},a.defaults,s),typeof s.expires=="number"&&(s.expires=new Date(new Date*1+s.expires*864e5)),s.expires=s.expires?s.expires.toUTCString():"";try{var p=JSON.stringify(l);/^[\{\[]/.test(p)&&(l=p)}catch{}l=o.write?o.write(l,c):encodeURIComponent(String(l)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),c=encodeURIComponent(String(c)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var d="";for(var h in s)s[h]&&(d+="; "+h,s[h]!==!0&&(d+="="+s[h].split(";")[0]));return document.cookie=c+"="+l+d}}function f(c,l){if(!(typeof document>"u")){for(var s={},p=document.cookie?document.cookie.split("; "):[],d=0;d<p.length;d++){var h=p[d].split("="),m=h.slice(1).join("=");!l&&m.charAt(0)==='"'&&(m=m.slice(1,-1));try{var g=n(h[0]);if(m=(o.read||o)(m,g)||n(m),l)try{m=JSON.parse(m)}catch{}if(s[g]=m,c===g)break}catch{}}return c?s[c]:s}}return a.set=u,a.get=function(c){return f(c,!1)},a.getJSON=function(c){return f(c,!0)},a.remove=function(c,l){u(c,"",r(l,{expires:-1}))},a.defaults={},a.withConverter=i,a}return i(function(){})})})(Ve);var yr=Ve.exports;const xi=B(yr);var br=/\s/;function wr(e){for(var t=e.length;t--&&br.test(e.charAt(t)););return t}var _r=wr,Er=_r,Or=/^\s+/;function Sr(e){return e&&e.slice(0,Er(e)+1).replace(Or,"")}var Rr=Sr,Tr=Rr,Me=oe,jr=mr,De=NaN,Cr=/^[-+]0x[0-9a-f]+$/i,Pr=/^0b[01]+$/i,xr=/^0o[0-7]+$/i,Ar=parseInt;function Mr(e){if(typeof e=="number")return e;if(jr(e))return De;if(Me(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Me(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Tr(e);var r=Pr.test(e);return r||xr.test(e)?Ar(e.slice(2),r?2:8):Cr.test(e)?De:+e}var Dr=Mr;function Lr(e,t){return function(r){return e(t(r))}}var $r=Lr,Ir=$r,Fr=Ir(Object.getPrototypeOf,Object),zr=Fr,Br=qe,Wr=zr,Hr=Ke,Nr="[object Object]",Gr=Function.prototype,Ur=Object.prototype,Je=Gr.toString,kr=Ur.hasOwnProperty,qr=Je.call(Object);function Kr(e){if(!Hr(e)||Br(e)!=Nr)return!1;var t=Wr(e);if(t===null)return!0;var r=kr.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Je.call(r)==qr}var Vr=Kr;const Jr=B(Vr);var Yr=function(e){return function(t,r){var n=v.useRef(!1);e(function(){return function(){n.current=!1}},[]),e(function(){if(!n.current)n.current=!0;else return t()},r)}},ge=function(e,t){return ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ge(e,t)};function Ye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ge(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var j=function(){return j=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},j.apply(this,arguments)};function ae(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 i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Xe(e,t,r,n){var i=arguments.length,o=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(a=e[u])&&(o=(i<3?a(o):i>3?a(t,r,o):a(t,r))||o);return i>3&&o&&Object.defineProperty(t,r,o),o}function Qe(e,t){return function(r,n){t(r,n,e)}}function Ze(e,t,r,n,i,o){function a(_){if(_!==void 0&&typeof _!="function")throw new TypeError("Function expected");return _}for(var u=n.kind,f=u==="getter"?"get":u==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,l=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),s,p=!1,d=r.length-1;d>=0;d--){var h={};for(var m in n)h[m]=m==="access"?{}:n[m];for(var m in n.access)h.access[m]=n.access[m];h.addInitializer=function(_){if(p)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(_||null))};var g=(0,r[d])(u==="accessor"?{get:l.get,set:l.set}:l[f],h);if(u==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(s=a(g.get))&&(l.get=s),(s=a(g.set))&&(l.set=s),(s=a(g.init))&&i.unshift(s)}else(s=a(g))&&(u==="field"?i.unshift(s):l[f]=s)}c&&Object.defineProperty(c,n.name,l),p=!0}function et(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function tt(e){return typeof e=="symbol"?e:"".concat(e)}function rt(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function nt(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Y(e,t,r,n){function i(o){return o instanceof r?o:new r(function(a){a(o)})}return new(r||(r=Promise))(function(o,a){function u(l){try{c(n.next(l))}catch(s){a(s)}}function f(l){try{c(n.throw(l))}catch(s){a(s)}}function c(l){l.done?o(l.value):i(l.value).then(u,f)}c((n=n.apply(e,t||[])).next())})}function X(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,i,o,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=u(0),a.throw=u(1),a.return=u(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(c){return function(l){return f([c,l])}}function f(c){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(r=0)),r;)try{if(n=1,i&&(o=c[0]&2?i.return:c[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;switch(i=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(l){c=[6,l],i=0}finally{n=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var ue=Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function it(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ue(t,e,r)}function I(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)o.push(i.value)}catch(u){a={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return o}function ot(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(y(arguments[t]));return e}function at(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,u=o.length;a<u;a++,i++)n[i]=o[a];return n}function E(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;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))}function G(e){return this instanceof G?(this.v=e,this):new G(e)}function ut(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",a),i[Symbol.asyncIterator]=function(){return this},i;function a(d){return function(h){return Promise.resolve(h).then(d,s)}}function u(d,h){n[d]&&(i[d]=function(m){return new Promise(function(g,_){o.push([d,m,g,_])>1||f(d,m)})},h&&(i[d]=h(i[d])))}function f(d,h){try{c(n[d](h))}catch(m){p(o[0][3],m)}}function c(d){d.value instanceof G?Promise.resolve(d.value.v).then(l,s):p(o[0][2],d)}function l(d){f("next",d)}function s(d){f("throw",d)}function p(d,h){d(h),o.shift(),o.length&&f(o[0][0],o[0][1])}}function ct(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,o){t[i]=e[i]?function(a){return(r=!r)?{value:G(e[i](a)),done:!1}:o?o(a):a}:o}}function ft(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof I=="function"?I(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(o){r[o]=e[o]&&function(a){return new Promise(function(u,f){a=e[o](a),i(u,f,a.done,a.value)})}}function i(o,a,u,f){Promise.resolve(f).then(function(c){o({value:c,done:u})},a)}}function st(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var Xr=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},ye=function(e){return ye=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},ye(e)};function lt(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=ye(e),n=0;n<r.length;n++)r[n]!=="default"&&ue(t,e,r[n]);return Xr(t,e),t}function dt(e){return e&&e.__esModule?e:{default:e}}function vt(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function ht(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function pt(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function mt(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,i;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(i=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");i&&(n=function(){try{i.call(this)}catch(o){return Promise.reject(o)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var Qr=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function gt(e){function t(o){e.error=e.hasError?new Qr(o,e.error,"An error was suppressed during disposal."):o,e.hasError=!0}var r,n=0;function i(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(i);if(r.dispose){var o=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(o).then(i,function(a){return t(a),i()})}else n|=1}catch(a){t(a)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function yt(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,i,o,a){return n?t?".jsx":".js":i&&(!o||!a)?r:i+o+"."+a.toLowerCase()+"js"}):e}const Zr={__extends:Ye,__assign:j,__rest:ae,__decorate:Xe,__param:Qe,__esDecorate:Ze,__runInitializers:et,__propKey:tt,__setFunctionName:rt,__metadata:nt,__awaiter:Y,__generator:X,__createBinding:ue,__exportStar:it,__values:I,__read:y,__spread:ot,__spreadArrays:at,__spreadArray:E,__await:G,__asyncGenerator:ut,__asyncDelegator:ct,__asyncValues:ft,__makeTemplateObject:st,__importStar:lt,__importDefault:dt,__classPrivateFieldGet:vt,__classPrivateFieldSet:ht,__classPrivateFieldIn:pt,__addDisposableResource:mt,__disposeResources:gt,__rewriteRelativeImportExtension:yt},en=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:mt,get __assign(){return j},__asyncDelegator:ct,__asyncGenerator:ut,__asyncValues:ft,__await:G,__awaiter:Y,__classPrivateFieldGet:vt,__classPrivateFieldIn:pt,__classPrivateFieldSet:ht,__createBinding:ue,__decorate:Xe,__disposeResources:gt,__esDecorate:Ze,__exportStar:it,__extends:Ye,__generator:X,__importDefault:dt,__importStar:lt,__makeTemplateObject:st,__metadata:nt,__param:Qe,__propKey:tt,__read:y,__rest:ae,__rewriteRelativeImportExtension:yt,__runInitializers:et,__setFunctionName:rt,__spread:ot,__spreadArray:E,__spreadArrays:at,__values:I,default:Zr},Symbol.toStringTag,{value:"Module"}));var F=function(e){return typeof e=="function"},tn=function(e){return typeof e=="string"},ce=function(e){return typeof e=="number"},rn=function(e){return typeof e>"u"};function D(e){var t=v.useRef(e);t.current=v.useMemo(function(){return e},[e]);var r=v.useRef();return r.current||(r.current=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t.current.apply(this,n)}),r.current}const J=Yr(v.useEffect);var bt=function(e,t){var r=t.manual,n=t.ready,i=n===void 0?!0:n,o=t.defaultParams,a=o===void 0?[]:o,u=t.refreshDeps,f=u===void 0?[]:u,c=t.refreshDepsAction,l=v.useRef(!1);return l.current=!1,J(function(){!r&&i&&(l.current=!0,e.run.apply(e,E([],y(a),!1)))},[i]),J(function(){l.current||r||(l.current=!0,c?c():e.refresh())},E([],y(f),!1)),{onBefore:function(){if(!i)return{stopNow:!0}}}};bt.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,n=e.manual;return{loading:!n&&r}};function be(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}function Oe(e,t){var r=v.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!be(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj}function L(e){var t=v.useRef(e);return t.current=e,t}var W=function(e){var t=L(e);v.useEffect(function(){return function(){t.current()}},[])},te=new Map,nn=function(e,t,r){var n=te.get(e);n!=null&&n.timer&&clearTimeout(n.timer);var i=void 0;t>-1&&(i=setTimeout(function(){te.delete(e)},t)),te.set(e,j(j({},r),{timer:i}))},on=function(e){return te.get(e)},re=new Map,an=function(e){return re.get(e)},un=function(e,t){re.set(e,t),t.then(function(r){return re.delete(e),r}).catch(function(){re.delete(e)})},$={},cn=function(e,t){$[e]&&$[e].forEach(function(r){return r(t)})},he=function(e,t){return $[e]||($[e]=[]),$[e].push(t),function(){var n=$[e].indexOf(t);$[e].splice(n,1)}},fn=function(e,t){var r=t.cacheKey,n=t.cacheTime,i=n===void 0?5*60*1e3:n,o=t.staleTime,a=o===void 0?0:o,u=t.setCache,f=t.getCache,c=v.useRef(),l=v.useRef(),s=function(d,h){u?u(h):nn(d,i,h),cn(d,h.data)},p=function(d,h){return h===void 0&&(h=[]),f?f(h):on(d)};return Oe(function(){if(r){var d=p(r);d&&Object.hasOwnProperty.call(d,"data")&&(e.state.data=d.data,e.state.params=d.params,(a===-1||new Date().getTime()-d.time<=a)&&(e.state.loading=!1)),c.current=he(r,function(h){e.setState({data:h})})}},[]),W(function(){var d;(d=c.current)===null||d===void 0||d.call(c)}),r?{onBefore:function(d){var h=p(r,d);return!h||!Object.hasOwnProperty.call(h,"data")?{}:a===-1||new Date().getTime()-h.time<=a?{loading:!1,data:h==null?void 0:h.data,error:void 0,returnNow:!0}:{data:h==null?void 0:h.data,error:void 0}},onRequest:function(d,h){var m=an(r);return m&&m!==l.current?{servicePromise:m}:(m=d.apply(void 0,E([],y(h),!1)),l.current=m,un(r,m),{servicePromise:m})},onSuccess:function(d,h){var m;r&&((m=c.current)===null||m===void 0||m.call(c),s(r,{data:d,params:h,time:new Date().getTime()}),c.current=he(r,function(g){e.setState({data:g})}))},onMutate:function(d){var h;r&&((h=c.current)===null||h===void 0||h.call(c),s(r,{data:d,params:e.state.params,time:new Date().getTime()}),c.current=he(r,function(m){e.setState({data:m})}))}}:{}},sn=Ge,ln=function(){return sn.Date.now()},dn=ln,vn=oe,pe=dn,Le=Dr,hn="Expected a function",pn=Math.max,mn=Math.min;function gn(e,t,r){var n,i,o,a,u,f,c=0,l=!1,s=!1,p=!0;if(typeof e!="function")throw new TypeError(hn);t=Le(t)||0,vn(r)&&(l=!!r.leading,s="maxWait"in r,o=s?pn(Le(r.maxWait)||0,t):o,p="trailing"in r?!!r.trailing:p);function d(w){var T=n,O=i;return n=i=void 0,c=w,a=e.apply(O,T),a}function h(w){return c=w,u=setTimeout(_,t),l?d(w):a}function m(w){var T=w-f,O=w-c,x=t-T;return s?mn(x,o-O):x}function g(w){var T=w-f,O=w-c;return f===void 0||T>=t||T<0||s&&O>=o}function _(){var w=pe();if(g(w))return b(w);u=setTimeout(_,m(w))}function b(w){return u=void 0,p&&n?d(w):(n=i=void 0,a)}function R(){u!==void 0&&clearTimeout(u),c=0,n=f=i=u=void 0}function P(){return u===void 0?a:b(pe())}function S(){var w=pe(),T=g(w);if(n=arguments,i=this,f=w,T){if(u===void 0)return h(f);if(s)return clearTimeout(u),u=setTimeout(_,t),d(f)}return u===void 0&&(u=setTimeout(_,t)),a}return S.cancel=R,S.flush=P,S}var wt=gn;const _t=B(wt);var yn=function(e,t){var r=t.debounceWait,n=t.debounceLeading,i=t.debounceTrailing,o=t.debounceMaxWait,a=v.useRef(),u=v.useMemo(function(){var f={};return n!==void 0&&(f.leading=n),i!==void 0&&(f.trailing=i),o!==void 0&&(f.maxWait=o),f},[n,i,o]);return v.useEffect(function(){if(r){var f=e.runAsync.bind(e);return a.current=_t(function(c){c()},r,u),e.runAsync=function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];return new Promise(function(s,p){var d;(d=a.current)===null||d===void 0||d.call(a,function(){f.apply(void 0,E([],y(c),!1)).then(s).catch(p)})})},function(){var c;(c=a.current)===null||c===void 0||c.cancel(),e.runAsync=f}}},[r,u]),r?{onCancel:function(){var f;(f=a.current)===null||f===void 0||f.cancel()}}:{}},bn=function(e,t){var r=t.loadingDelay,n=t.ready,i=v.useRef();if(!r)return{};var o=function(){i.current&&clearTimeout(i.current)};return{onBefore:function(){return o(),n!==!1&&(i.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},H=!!(typeof window<"u"&&window.document&&window.document.createElement);function Se(){return H?document.visibilityState!=="hidden":!0}var K=[];function wn(e){return K.push(e),function(){var r=K.indexOf(e);K.splice(r,1)}}if(H){var _n=function(){if(Se())for(var e=0;e<K.length;e++){var t=K[e];t()}};window.addEventListener("visibilitychange",_n,!1)}var En=function(e,t){var r=t.pollingInterval,n=t.pollingWhenHidden,i=n===void 0?!0:n,o=t.pollingErrorRetryCount,a=o===void 0?-1:o,u=v.useRef(),f=v.useRef(),c=v.useRef(0),l=function(){var s;u.current&&clearTimeout(u.current),(s=f.current)===null||s===void 0||s.call(f)};return J(function(){r||l()},[r]),r?{onBefore:function(){l()},onError:function(){c.current+=1},onSuccess:function(){c.current=0},onFinally:function(){a===-1||a!==-1&&c.current<=a?u.current=setTimeout(function(){!i&&!Se()?f.current=wn(function(){e.refresh()}):e.refresh()},r):c.current=0},onCancel:function(){l()}}:{}};function On(e,t){var r=!1;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];r||(r=!0,e.apply(void 0,E([],y(n),!1)),setTimeout(function(){r=!1},t))}}function Sn(){return H&&typeof navigator.onLine<"u"?navigator.onLine:!0}var V=[];function Rn(e){return V.push(e),function(){var r=V.indexOf(e);r>-1&&V.splice(r,1)}}if(H){var $e=function(){if(!(!Se()||!Sn()))for(var e=0;e<V.length;e++){var t=V[e];t()}};window.addEventListener("visibilitychange",$e,!1),window.addEventListener("focus",$e,!1)}var Tn=function(e,t){var r=t.refreshOnWindowFocus,n=t.focusTimespan,i=n===void 0?5e3:n,o=v.useRef(),a=function(){var u;(u=o.current)===null||u===void 0||u.call(o)};return v.useEffect(function(){if(r){var u=On(e.refresh.bind(e),i);o.current=Rn(function(){u()})}return function(){a()}},[r,i]),W(function(){a()}),{}},jn=function(e,t){var r=t.retryInterval,n=t.retryCount,i=v.useRef(),o=v.useRef(0),a=v.useRef(!1);return n?{onBefore:function(){a.current||(o.current=0),a.current=!1,i.current&&clearTimeout(i.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,n===-1||o.current<=n){var u=r??Math.min(1e3*Math.pow(2,o.current),3e4);i.current=setTimeout(function(){a.current=!0,e.refresh()},u)}else o.current=0},onCancel:function(){o.current=0,i.current&&clearTimeout(i.current)}}:{}},Cn=wt,Pn=oe,xn="Expected a function";function An(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(xn);return Pn(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),Cn(e,t,{leading:n,maxWait:t,trailing:i})}var Mn=An;const Et=B(Mn);var Dn=function(e,t){var r=t.throttleWait,n=t.throttleLeading,i=t.throttleTrailing,o=v.useRef(),a={};return n!==void 0&&(a.leading=n),i!==void 0&&(a.trailing=i),v.useEffect(function(){if(r){var u=e.runAsync.bind(e);return o.current=Et(function(f){f()},r,a),e.runAsync=function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];return new Promise(function(l,s){var p;(p=o.current)===null||p===void 0||p.call(o,function(){u.apply(void 0,E([],y(f),!1)).then(l).catch(s)})})},function(){var f;e.runAsync=u,(f=o.current)===null||f===void 0||f.cancel()}}},[r,n,i]),r?{onCancel:function(){var u;(u=o.current)===null||u===void 0||u.cancel()}}:{}},Ln=function(e){v.useEffect(function(){e==null||e()},[])},Ot=function(){var e=y(v.useState({}),2),t=e[1];return v.useCallback(function(){return t({})},[])},$n=function(){function e(t,r,n,i){i===void 0&&(i={}),this.serviceRef=t,this.options=r,this.subscribe=n,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=j(j(j({},this.state),{loading:!r.manual}),i)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=j(j({},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 i=this.pluginImpls.map(function(o){var a;return(a=o[t])===null||a===void 0?void 0:a.call.apply(a,E([o],y(r),!1))}).filter(Boolean);return Object.assign.apply(Object,E([{}],y(i),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Y(this,void 0,void 0,function(){var n,i,o,a,u,f,c,l,s,p,d,h,m,g,_,b,R,P,S,w,T;return X(this,function(O){switch(O.label){case 0:if(this.count+=1,n=this.count,i=this.runPluginHandler("onBefore",t),o=i.stopNow,a=o===void 0?!1:o,u=i.returnNow,f=u===void 0?!1:u,c=ae(i,["stopNow","returnNow"]),a)return[2,new Promise(function(){})];if(this.setState(j({loading:!0,params:t},c)),f)return[2,Promise.resolve(c.data)];(m=(h=this.options).onBefore)===null||m===void 0||m.call(h,t),O.label=1;case 1:return O.trys.push([1,3,,4]),l=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,l||(l=(d=this.serviceRef).current.apply(d,E([],y(t),!1))),[4,l];case 2:return s=O.sent(),n!==this.count?[2,new Promise(function(){})]:(this.setState({data:s,error:void 0,loading:!1}),(_=(g=this.options).onSuccess)===null||_===void 0||_.call(g,s,t),this.runPluginHandler("onSuccess",s,t),(R=(b=this.options).onFinally)===null||R===void 0||R.call(b,t,s,void 0),n===this.count&&this.runPluginHandler("onFinally",t,s,void 0),[2,s]);case 3:if(p=O.sent(),n!==this.count)return[2,new Promise(function(){})];throw this.setState({error:p,loading:!1}),(S=(P=this.options).onError)===null||S===void 0||S.call(P,p,t),this.runPluginHandler("onError",p,t),(T=(w=this.options).onFinally)===null||T===void 0||T.call(w,t,void 0,p),n===this.count&&this.runPluginHandler("onFinally",t,void 0,p),p;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,E([],y(r),!1)).catch(function(i){t.options.onError||console.error(i)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,E([],y(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,E([],y(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=F(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e}();function In(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var n=t.manual,i=n===void 0?!1:n,o=t.ready,a=o===void 0?!0:o,u=ae(t,["manual","ready"]),f=j({manual:i,ready:a},u),c=L(e),l=Ot(),s=Oe(function(){var p=r.map(function(d){var h;return(h=d==null?void 0:d.onInit)===null||h===void 0?void 0:h.call(d,f)}).filter(Boolean);return new $n(c,f,l,Object.assign.apply(Object,E([{}],y(p),!1)))},[]);return s.options=f,s.pluginImpls=r.map(function(p){return p(s,f)}),Ln(function(){if(!i&&a){var p=s.state.params||t.defaultParams||[];s.run.apply(s,E([],y(p),!1))}}),W(function(){s.cancel()}),{loading:s.state.loading,data:s.state.data,error:s.state.error,params:s.state.params||[],cancel:D(s.cancel.bind(s)),refresh:D(s.refresh.bind(s)),refreshAsync:D(s.refreshAsync.bind(s)),run:D(s.run.bind(s)),runAsync:D(s.runAsync.bind(s)),mutate:D(s.mutate.bind(s))}}function Fn(e,t,r){return In(e,t,E(E([],y([]),!1),[yn,bn,En,Tn,Dn,bt,fn,jn],!1))}function zn(e){return F(e[Symbol.asyncIterator])}function Ai(e,t){v.useEffect(function(){var r=e(),n=!1;function i(){return Y(this,void 0,void 0,function(){var o;return X(this,function(a){switch(a.label){case 0:if(!zn(r))return[3,4];a.label=1;case 1:return[4,r.next()];case 2:return o=a.sent(),o.done||n?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,r];case 5:a.sent(),a.label=6;case 6:return[2]}})})}return i(),function(){n=!0}},t)}function Bn(e,t){var r=y(v.useState(e),2),n=r[0],i=r[1],o=v.useMemo(function(){var a=!e,u=function(){return i(function(s){return s===e?a:e})},f=function(s){return i(s)},c=function(){return i(e)},l=function(){return i(a)};return{toggle:u,set:f,setLeft:c,setRight:l}},[]);return[n,o]}function Mi(e){var t=y(Bn(!!e),2),r=t[0],n=t[1],i=n.toggle,o=n.set,a=v.useMemo(function(){var u=function(){return o(!0)},f=function(){return o(!1)};return{toggle:i,set:function(c){return o(!!c)},setTrue:u,setFalse:f}},[]);return[r,a]}function z(e,t){if(H){if(!e)return t;var r;return F(e)?r=e():"current"in e?r=e.current:r=e,r}}var St=function(e){var t=function(r,n,i){var o=v.useRef(!1),a=v.useRef([]),u=v.useRef([]),f=v.useRef();e(function(){var c,l=Array.isArray(i)?i:[i],s=l.map(function(p){return z(p)});if(!o.current){o.current=!0,a.current=s,u.current=n,f.current=r();return}(s.length!==a.current.length||!be(a.current,s)||!be(u.current,n))&&((c=f.current)===null||c===void 0||c.call(f),a.current=s,u.current=n,f.current=r())}),W(function(){var c;(c=f.current)===null||c===void 0||c.call(f),o.current=!1})};return t},Re=St(v.useEffect),me=function(e){if(!e)return 0;var t=zt(e).valueOf()-Date.now();return t<0?0:t},Wn=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},Di=function(e){e===void 0&&(e={});var t=e||{},r=t.leftTime,n=t.targetDate,i=t.interval,o=i===void 0?1e3:i,a=t.onEnd,u=v.useMemo(function(){return ce(r)&&r>0?Date.now()+r:void 0},[r]),f="leftTime"in e?u:n,c=y(v.useState(function(){return me(f)}),2),l=c[0],s=c[1],p=L(a);v.useEffect(function(){if(!f){s(0);return}s(me(f));var h=setInterval(function(){var m,g=me(f);s(g),g===0&&(clearInterval(h),(m=p.current)===null||m===void 0||m.call(p))},o);return function(){return clearInterval(h)}},[f,o]);var d=v.useMemo(function(){return Wn(l)},[l]);return[l,d]};function Hn(e,t){var r,n=L(e),i=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,o=v.useMemo(function(){return _t(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,E([],y(a),!1))},i,t)},[]);return W(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}function Li(e,t){var r=y(v.useState(e),2),n=r[0],i=r[1],o=Hn(function(){i(e)},t).run;return v.useEffect(function(){o()},[e]),n}var Nn=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=[]),Ut(e,t)};function we(e,t,r){r===void 0&&(r={});var n=r.enable,i=n===void 0?!0:n,o=L(t);Re(function(){if(i){var a=z(r.target,window);if(a!=null&&a.addEventListener){var u=function(c){return o.current(c)},f=Array.isArray(e)?e:[e];return f.forEach(function(c){a.addEventListener(c,u,{capture:r.capture,once:r.once,passive:r.passive})}),function(){f.forEach(function(c){a.removeEventListener(c,u,{capture:r.capture})})}}}},[e,r.capture,r.once,r.passive,i],r.target)}function $i(e){var t=y(v.useState(e),2),r=t[0],n=t[1],i=L(r),o=v.useCallback(function(){return i.current},[]);return[r,n,o]}var Gn=function(e){return e===document||e===document.documentElement||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Ie=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},Un=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Ii=function(e,t){t===void 0&&(t={});var r=t.target,n=t.isNoMore,i=t.threshold,o=i===void 0?100:i,a=t.direction,u=a===void 0?"bottom":a,f=t.reloadDeps,c=f===void 0?[]:f,l=t.manual,s=t.onBefore,p=t.onSuccess,d=t.onError,h=t.onFinally,m=y(v.useState(),2),g=m[0],_=m[1],b=y(v.useState(!1),2),R=b[0],P=b[1],S=u==="top",w=v.useRef(),T=v.useRef(0),O=v.useMemo(function(){return n?n(g):!1},[g]),x=Fn(function(A){return Y(void 0,void 0,void 0,function(){var C,M,N,k;return X(this,function(Ce){switch(Ce.label){case 0:return[4,e(A)];case 1:return C=Ce.sent(),_(A?j(j({},C),{list:S?E(E([],y(C.list),!1),y((N=A.list)!==null&&N!==void 0?N:[]),!1):E(E([],y((k=A.list)!==null&&k!==void 0?k:[]),!1),y(C.list),!1)}):j(j({},C),{list:E([],y((M=C.list)!==null&&M!==void 0?M:[]),!1)})),[2,C]}})})},{manual:l,onFinally:function(A,C,M){P(!1),h==null||h(C,M)},onBefore:function(){return s==null?void 0:s()},onSuccess:function(A){setTimeout(function(){if(S){var C=z(r);if(C=C===document?document.documentElement:C,C){var M=Ie(C);C.scrollTo(0,M-T.current)}}else je()}),p==null||p(A)},onError:function(A){return d==null?void 0:d(A)}}),Q=x.loading,se=x.error,le=x.run,Te=x.runAsync,Dt=x.cancel,de=D(function(){O||(P(!0),le(g))}),Lt=D(function(){return O?Promise.reject():(P(!0),Te(g))}),$t=function(){return P(!1),le()},It=function(){return P(!1),Te()},je=function(){var A=z(r);if(A){var C=A===document?document.documentElement:A,M=Gn(C),N=Ie(C),k=Un(C);S?(w.current!==void 0&&w.current>M&&M<=o&&de(),w.current=M,T.current=N-M):N-M<=k+o&&de()}};return we("scroll",function(){Q||R||je()},{target:r}),J(function(){le()},E([],y(c),!1)),{data:g,loading:!R&&Q,error:se,loadingMore:R,noMore:O,loadMore:de,loadMoreAsync:Lt,reload:D($t),reloadAsync:D(It),mutate:_,cancel:Dt}},Fi=function(e,t,r){r===void 0&&(r={});var n=D(e),i=v.useRef(null),o=v.useCallback(function(){i.current&&clearInterval(i.current)},[]);return v.useEffect(function(){if(!(!ce(t)||t<0))return r.immediate&&n(),i.current=setInterval(n,t),o},[t,r.immediate]),o},kn=function(e,t,r){var n=v.useRef(),i=v.useRef(0);Nn(t,n.current)||(i.current+=1),n.current=t,Re(e,[i.current],r)},qn=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),Rt={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:qn?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},_e={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?Rt.meta.includes(e.keyCode):e.metaKey}};function Tt(e){return tn(e)||ce(e)}function Kn(e){var t=Object.keys(_e).reduce(function(r,n){return _e[n](e)?r+1:r},0);return[16,17,18,91,92].includes(e.keyCode)?t:t+1}function Fe(e,t,r){var n,i;if(!e.key)return!1;if(ce(t))return e.keyCode===t?t:!1;var o=t.split("."),a=0;try{for(var u=I(o),f=u.next();!f.done;f=u.next()){var c=f.value,l=_e[c],s=Rt[c.toLowerCase()];(l&&l(e)||s&&s===e.keyCode)&&a++}}catch(p){n={error:p}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return r?a===o.length&&Kn(e)===o.length?t:!1:a===o.length?t:!1}function Vn(e,t){return F(e)?e:Tt(e)?function(r){return Fe(r,e,t)}:Array.isArray(e)?function(r){return e.find(function(n){return Fe(r,n,t)})}:function(){return!!e}}var Jn=["keydown"];function zi(e,t,r){var n=r||{},i=n.events,o=i===void 0?Jn:i,a=n.target,u=n.exactMatch,f=u===void 0?!1:u,c=n.useCapture,l=c===void 0?!1:c,s=L(t),p=L(e);kn(function(){var d,h,m,g=z(a,window);if(g){var _=function(S){var w,T=Vn(p.current,f),O=T(S),x=Tt(O)?O:S.key;if(O)return(w=s.current)===null||w===void 0?void 0:w.call(s,S,x)};try{for(var b=I(o),R=b.next();!R.done;R=b.next()){var P=R.value;(m=g==null?void 0:g.addEventListener)===null||m===void 0||m.call(g,P,_,l)}}catch(S){d={error:S}}finally{try{R&&!R.done&&(h=b.return)&&h.call(b)}finally{if(d)throw d.error}}return function(){var S,w,T;try{for(var O=I(o),x=O.next();!x.done;x=O.next()){var Q=x.value;(T=g==null?void 0:g.removeEventListener)===null||T===void 0||T.call(g,Q,_,l)}}catch(se){S={error:se}}finally{try{x&&!x.done&&(w=O.return)&&w.call(O)}finally{if(S)throw S.error}}}}},[o],a)}var ze="AHOOKS_SYNC_STORAGE_EVENT_NAME";function Yn(e){function t(r,n){n===void 0&&(n={});var i,o=n.listenStorageChange,a=o===void 0?!1:o,u=n.onError,f=u===void 0?function(b){console.error(b)}:u;try{i=e()}catch(b){f(b)}var c=function(b){return n.serializer?n.serializer(b):JSON.stringify(b)},l=function(b){return n.deserializer?n.deserializer(b):JSON.parse(b)};function s(){try{var b=i==null?void 0:i.getItem(r);if(b)return l(b)}catch(R){f(R)}return F(n.defaultValue)?n.defaultValue():n.defaultValue}var p=y(v.useState(s),2),d=p[0],h=p[1];J(function(){h(s())},[r]);var m=function(b){var R=F(b)?b(d):b;a||h(R);try{var P=void 0,S=i==null?void 0:i.getItem(r);rn(R)?(P=null,i==null||i.removeItem(r)):(P=c(R),i==null||i.setItem(r,P)),dispatchEvent(new CustomEvent(ze,{detail:{key:r,newValue:P,oldValue:S,storageArea:i}}))}catch(w){f(w)}},g=function(b){b.key!==r||b.storageArea!==i||h(s())},_=function(b){g(b.detail)};return we("storage",g,{enable:a}),we(ze,_,{enable:a}),[d,D(m)]}return t}var Bi=Yn(function(){return H?localStorage:void 0});function Xn(e){var t=v.useRef(0),r=y(v.useState(e),2),n=r[0],i=r[1],o=v.useCallback(function(a){cancelAnimationFrame(t.current),t.current=requestAnimationFrame(function(){i(a)})},[]);return W(function(){cancelAnimationFrame(t.current)}),[n,o]}var Qn=function(e,t){return!Object.is(e,t)};function Wi(e,t){t===void 0&&(t=Qn);var r=v.useRef(),n=v.useRef();return t(n.current,e)&&(r.current=n.current,n.current=e),r.current}var Be=new WeakMap,We=new WeakMap;function jt(e,t){var r=Be.get(e);if(r)return r;if(We.has(e))return e;var n=new Proxy(e,{get:function(i,o,a){var u=Reflect.get(i,o,a),f=Reflect.getOwnPropertyDescriptor(i,o);return!(f!=null&&f.configurable)&&!(f!=null&&f.writable)?u:Jr(u)||Array.isArray(u)?jt(u,t):u},set:function(i,o,a){var u=Reflect.set(i,o,a);return t(),u},deleteProperty:function(i,o){var a=Reflect.deleteProperty(i,o);return t(),a}});return Be.set(e,n),We.set(n,e),n}function Hi(e){var t=Ot(),r=v.useRef(e),n=Oe(function(){return jt(r.current,function(){t()})},[]);return n}var Ni=function(e){var t=y(v.useState(e),2),r=t[0],n=t[1],i=D(function(o){n(function(a){var u=F(o)?o(a):o;return u?j(j({},a),u):a})});return[r,i]},Ct=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(i,o){return i[0]===r?(n=o,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),i=this.__entries__[n];return i&&i[1]},t.prototype.set=function(r,n){var i=e(this.__entries__,r);~i?this.__entries__[i][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,i=e(n,r);~i&&n.splice(i,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];r.call(n,a[1],a[0])}},t}()}(),Ee=typeof window<"u"&&typeof document<"u"&&window.document===document,ne=function(){return typeof ve<"u"&&ve.Math===Math?ve:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Zn=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ne):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),ei=2;function ti(e,t){var r=!1,n=!1,i=0;function o(){r&&(r=!1,e()),n&&u()}function a(){Zn(o)}function u(){var f=Date.now();if(r){if(f-i<ei)return;n=!0}else r=!0,n=!1,setTimeout(a,t);i=f}return u}var ri=20,ni=["top","right","bottom","left","width","height","size","weight"],ii=typeof MutationObserver<"u",oi=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ti(this.refresh.bind(this),ri)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Ee||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ii?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ee||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=ni.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Pt=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var i=n[r];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},U=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ne},xt=fe(0,0,0,0);function ie(e){return parseFloat(e)||0}function He(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,i){var o=e["border-"+i+"-width"];return n+ie(o)},0)}function ai(e){for(var t=["top","right","bottom","left"],r={},n=0,i=t;n<i.length;n++){var o=i[n],a=e["padding-"+o];r[o]=ie(a)}return r}function ui(e){var t=e.getBBox();return fe(0,0,t.width,t.height)}function ci(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return xt;var n=U(e).getComputedStyle(e),i=ai(n),o=i.left+i.right,a=i.top+i.bottom,u=ie(n.width),f=ie(n.height);if(n.boxSizing==="border-box"&&(Math.round(u+o)!==t&&(u-=He(n,"left","right")+o),Math.round(f+a)!==r&&(f-=He(n,"top","bottom")+a)),!si(e)){var c=Math.round(u+o)-t,l=Math.round(f+a)-r;Math.abs(c)!==1&&(u-=c),Math.abs(l)!==1&&(f-=l)}return fe(i.left,i.top,u,f)}var fi=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof U(e).SVGGraphicsElement}:function(e){return e instanceof U(e).SVGElement&&typeof e.getBBox=="function"}}();function si(e){return e===U(e).document.documentElement}function li(e){return Ee?fi(e)?ui(e):ci(e):xt}function di(e){var t=e.x,r=e.y,n=e.width,i=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Pt(a,{x:t,y:r,width:n,height:i,top:r,right:t+n,bottom:i+r,left:t}),a}function fe(e,t,r,n){return{x:e,y:t,width:r,height:n}}var vi=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=fe(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=li(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),hi=function(){function e(t,r){var n=di(r);Pt(this,{target:t,contentRect:n})}return e}(),pi=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Ct,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof U(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new vi(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof U(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new hi(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),At=typeof WeakMap<"u"?new WeakMap:new Ct,Mt=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=oi.getInstance(),n=new pi(t,r,this);At.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Mt.prototype[e]=function(){var t;return(t=At.get(this))[e].apply(t,arguments)}});var mi=function(){return typeof ne.ResizeObserver<"u"?ne.ResizeObserver:Mt}(),gi=St(v.useLayoutEffect),yi=H?gi:Re;function Gi(e){var t=y(Xn(function(){var i=z(e);return i?{width:i.clientWidth,height:i.clientHeight}:void 0}),2),r=t[0],n=t[1];return yi(function(){var i=z(e);if(i){var o=new mi(function(a){a.forEach(function(u){var f=u.target,c=f.clientWidth,l=f.clientHeight;n({width:c,height:l})})});return o.observe(i),function(){o.disconnect()}}},[],e),r}function Ui(e,t){var r,n=L(e),i=(r=t==null?void 0:t.wait)!==null&&r!==void 0?r:1e3,o=v.useMemo(function(){return Et(function(){for(var a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];return n.current.apply(n,E([],y(a),!1))},i,t)},[]);return W(function(){o.cancel()}),{run:o,cancel:o.cancel,flush:o.flush}}var bi=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}},wi=bi,Ne={"text/plain":"Text","text/html":"Url",default:"Text"},_i="Copy to clipboard: #{key}, Enter";function Ei(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function Oi(e,t){var r,n,i,o,a,u,f=!1;t||(t={}),r=t.debug||!1;try{i=wi(),o=document.createRange(),a=document.getSelection(),u=document.createElement("span"),u.textContent=e,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(l){if(l.stopPropagation(),t.format)if(l.preventDefault(),typeof l.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var s=Ne[t.format]||Ne.default;window.clipboardData.setData(s,e)}else l.clipboardData.clearData(),l.clipboardData.setData(t.format,e);t.onCopy&&(l.preventDefault(),t.onCopy(l.clipboardData))}),document.body.appendChild(u),o.selectNodeContents(u),a.addRange(o);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");f=!0}catch(l){r&&console.error("unable to copy using execCommand: ",l),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(s){r&&console.error("unable to copy using clipboardData: ",s),r&&console.error("falling back to prompt"),n=Ei("message"in t?t.message:_i),window.prompt(n,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(o):a.removeAllRanges()),u&&document.body.removeChild(u),i()}return f}var Si=Oi;const ki=B(Si),qi=Ft(en);function Ri(){var e=v.useRef(!1),t=v.useCallback(function(){return e.current},[]);return v.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}function Ti(e,t,r){t===void 0&&(t=[]),r===void 0&&(r={loading:!1});var n=v.useRef(0),i=Ri(),o=v.useState(r),a=o[0],u=o[1],f=v.useCallback(function(){for(var c=[],l=0;l<arguments.length;l++)c[l]=arguments[l];var s=++n.current;return a.loading||u(function(p){return j(j({},p),{loading:!0})}),e.apply(void 0,c).then(function(p){return i()&&s===n.current&&u({value:p,loading:!1}),p},function(p){return i()&&s===n.current&&u({error:p,loading:!1}),p})},t);return[a,f]}function Ki(e,t){t===void 0&&(t=[]);var r=Ti(e,t,{loading:!0}),n=r[0],i=r[1];return v.useEffect(function(){i()},[i]),n}export{J as A,Fn as B,xi as C,W as D,L as E,Ui as F,_r as G,Di as H,Ni as I,qi as J,Ii as K,Ki as L,Ot as M,wt as N,zi as O,Mi as P,_t as Q,Et as R,$i as S,qe as _,mr as a,oe as b,Ge as c,Ue as d,zr as e,Ke as f,qt as g,Vr as h,Ut as i,$r as j,Hi as k,Xe as l,ki as m,Gi as n,Oe as o,Pi as p,Hn as q,Rr as r,Fi as s,Dr as t,D as u,Li as v,Ai as w,Bi as x,Ln as y,Wi as z};
|
|
@@ -264,4 +264,4 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
264
264
|
* @license MIT
|
|
265
265
|
*/Ih();var Mh=Date.now(),Ni="fnValues"+Mh,ji="fnStyle"+ ++Mh,yA=function(){return{onCreateRule:function(r,o,n){if(typeof o!="function")return null;var a=Uc(r,{},n);return a[ji]=o,a},onProcessStyle:function(r,o){if(Ni in o||ji in o)return r;var n={};for(var a in r){var s=r[a];typeof s=="function"&&(delete r[a],n[a]=s)}return o[Ni]=n,r},onUpdate:function(r,o,n,a){var s=o,i=s[ji];i&&(s.style=i(r)||{});var l=s[Ni];if(l)for(var c in l)s.prop(c,l[c](r),a)}}},no="@global",Sl="@global ",xA=function(){function e(r,o,n){this.type="global",this.at=no,this.isProcessed=!1,this.key=r,this.options=n,this.rules=new hi(u({},n,{parent:this}));for(var a in o)this.rules.add(a,o[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(o){return this.rules.get(o)},t.addRule=function(o,n,a){var s=this.rules.add(o,n,a);return s&&this.options.jss.plugins.onProcessRule(s),s},t.replaceRule=function(o,n,a){var s=this.rules.replace(o,n,a);return s&&this.options.jss.plugins.onProcessRule(s),s},t.indexOf=function(o){return this.rules.indexOf(o)},t.toString=function(o){return this.rules.toString(o)},e}(),CA=function(){function e(r,o,n){this.type="global",this.at=no,this.isProcessed=!1,this.key=r,this.options=n;var a=r.substr(Sl.length);this.rule=n.jss.createRule(a,o,u({},n,{parent:this}))}var t=e.prototype;return t.toString=function(o){return this.rule?this.rule.toString(o):""},e}(),SA=/\s*,\s*/g;function Eh(e,t){for(var r=e.split(SA),o="",n=0;n<r.length;n++)o+=t+" "+r[n].trim(),r[n+1]&&(o+=", ");return o}function $A(e,t){var r=e.options,o=e.style,n=o?o[no]:null;if(n){for(var a in n)t.addRule(a,n[a],u({},r,{selector:Eh(a,e.selector)}));delete o[no]}}function RA(e,t){var r=e.options,o=e.style;for(var n in o)if(!(n[0]!=="@"||n.substr(0,no.length)!==no)){var a=Eh(n.substr(no.length),e.selector);t.addRule(a,o[n],u({},r,{selector:a})),delete o[n]}}function PA(){function e(r,o,n){if(!r)return null;if(r===no)return new xA(r,o,n);if(r[0]==="@"&&r.substr(0,Sl.length)===Sl)return new CA(r,o,n);var a=n.parent;return a&&(a.type==="global"||a.options.parent&&a.options.parent.type==="global")&&(n.scoped=!1),!n.selector&&n.scoped===!1&&(n.selector=r),null}function t(r,o){r.type!=="style"||!o||($A(r,o),RA(r,o))}return{onCreateRule:e,onProcessRule:t}}var gp=/\s*,\s*/g,kA=/&/g,wA=/\$([\w-]+)/g;function TA(){function e(n,a){return function(s,i){var l=n.getRule(i)||a&&a.getRule(i);return l?l.selector:i}}function t(n,a){for(var s=a.split(gp),i=n.split(gp),l="",c=0;c<s.length;c++)for(var d=s[c],f=0;f<i.length;f++){var m=i[f];l&&(l+=", "),l+=m.indexOf("&")!==-1?m.replace(kA,d):d+" "+m}return l}function r(n,a,s){if(s)return u({},s,{index:s.index+1});var i=n.options.nestingLevel;i=i===void 0?1:i+1;var l=u({},n.options,{nestingLevel:i,index:a.indexOf(n)+1});return delete l.name,l}function o(n,a,s){if(a.type!=="style")return n;var i=a,l=i.options.parent,c,d;for(var f in n){var m=f.indexOf("&")!==-1,b=f[0]==="@";if(!(!m&&!b)){if(c=r(i,l,c),m){var v=t(f,i.selector);d||(d=e(l,s)),v=v.replace(wA,d);var h=i.key+"-"+f;"replaceRule"in l?l.replaceRule(h,n[f],u({},c,{selector:v})):l.addRule(h,n[f],u({},c,{selector:v}))}else b&&l.addRule(f,{},c).addRule(i.key,n[f],{selector:i.selector});delete n[f]}}return n}return{onProcessStyle:o}}var IA=/[A-Z]/g,OA=/^ms-/,zi={};function MA(e){return"-"+e.toLowerCase()}function Lh(e){if(zi.hasOwnProperty(e))return zi[e];var t=e.replace(IA,MA);return zi[e]=OA.test(t)?"-"+t:t}function bs(e){var t={};for(var r in e){var o=r.indexOf("--")===0?r:Lh(r);t[o]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(bs):t.fallbacks=bs(e.fallbacks)),t}function EA(){function e(r){if(Array.isArray(r)){for(var o=0;o<r.length;o++)r[o]=bs(r[o]);return r}return bs(r)}function t(r,o,n){if(o.indexOf("--")===0)return r;var a=Lh(o);return o===a?r:(n.prop(a,r),null)}return{onProcessStyle:e,onChangeValue:t}}var q=Kc&&CSS?CSS.px:"px",Ka=Kc&&CSS?CSS.ms:"ms",zo=Kc&&CSS?CSS.percent:"%",LA={"animation-delay":Ka,"animation-duration":Ka,"background-position":q,"background-position-x":q,"background-position-y":q,"background-size":q,border:q,"border-bottom":q,"border-bottom-left-radius":q,"border-bottom-right-radius":q,"border-bottom-width":q,"border-left":q,"border-left-width":q,"border-radius":q,"border-right":q,"border-right-width":q,"border-top":q,"border-top-left-radius":q,"border-top-right-radius":q,"border-top-width":q,"border-width":q,"border-block":q,"border-block-end":q,"border-block-end-width":q,"border-block-start":q,"border-block-start-width":q,"border-block-width":q,"border-inline":q,"border-inline-end":q,"border-inline-end-width":q,"border-inline-start":q,"border-inline-start-width":q,"border-inline-width":q,"border-start-start-radius":q,"border-start-end-radius":q,"border-end-start-radius":q,"border-end-end-radius":q,margin:q,"margin-bottom":q,"margin-left":q,"margin-right":q,"margin-top":q,"margin-block":q,"margin-block-end":q,"margin-block-start":q,"margin-inline":q,"margin-inline-end":q,"margin-inline-start":q,padding:q,"padding-bottom":q,"padding-left":q,"padding-right":q,"padding-top":q,"padding-block":q,"padding-block-end":q,"padding-block-start":q,"padding-inline":q,"padding-inline-end":q,"padding-inline-start":q,"mask-position-x":q,"mask-position-y":q,"mask-size":q,height:q,width:q,"min-height":q,"max-height":q,"min-width":q,"max-width":q,bottom:q,left:q,top:q,right:q,inset:q,"inset-block":q,"inset-block-end":q,"inset-block-start":q,"inset-inline":q,"inset-inline-end":q,"inset-inline-start":q,"box-shadow":q,"text-shadow":q,"column-gap":q,"column-rule":q,"column-rule-width":q,"column-width":q,"font-size":q,"font-size-delta":q,"letter-spacing":q,"text-decoration-thickness":q,"text-indent":q,"text-stroke":q,"text-stroke-width":q,"word-spacing":q,motion:q,"motion-offset":q,outline:q,"outline-offset":q,"outline-width":q,perspective:q,"perspective-origin-x":zo,"perspective-origin-y":zo,"transform-origin":zo,"transform-origin-x":zo,"transform-origin-y":zo,"transform-origin-z":zo,"transition-delay":Ka,"transition-duration":Ka,"vertical-align":q,"flex-basis":q,"shape-margin":q,size:q,gap:q,grid:q,"grid-gap":q,"row-gap":q,"grid-row-gap":q,"grid-column-gap":q,"grid-template-rows":q,"grid-template-columns":q,"grid-auto-rows":q,"grid-auto-columns":q,"box-shadow-x":q,"box-shadow-y":q,"box-shadow-blur":q,"box-shadow-spread":q,"font-line-height":q,"text-shadow-x":q,"text-shadow-y":q,"text-shadow-blur":q};function Ah(e){var t=/(-[a-z])/g,r=function(s){return s[1].toUpperCase()},o={};for(var n in e)o[n]=e[n],o[n.replace(t,r)]=e[n];return o}var AA=Ah(LA);function Un(e,t,r){if(t==null)return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)t[o]=Un(e,t[o],r);else if(typeof t=="object")if(e==="fallbacks")for(var n in t)t[n]=Un(n,t[n],r);else for(var a in t)t[a]=Un(e+"-"+a,t[a],r);else if(typeof t=="number"&&isNaN(t)===!1){var s=r[e]||AA[e];return s&&!(t===0&&s===q)?typeof s=="function"?s(t).toString():""+t+s:t.toString()}return t}function _A(e){e===void 0&&(e={});var t=Ah(e);function r(n,a){if(a.type!=="style")return n;for(var s in n)n[s]=Un(s,n[s],t);return n}function o(n,a){return Un(a,n,t)}return{onProcessStyle:r,onChangeValue:o}}function $l(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function BA(e){if(Array.isArray(e))return $l(e)}function NA(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jA(e,t){if(e){if(typeof e=="string")return $l(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$l(e,t):void 0}}function zA(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
266
266
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _h(e){return BA(e)||NA(e)||jA(e)||zA()}const HN=Object.freeze(Object.defineProperty({__proto__:null,default:_h},Symbol.toStringTag,{value:"Module"}));var Bn="",Rl="",Bh="",Nh="",DA=Pa&&"ontouchstart"in document.documentElement;if(Pa){var Di={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},FA=document.createElement("p"),Fi=FA.style,WA="Transform";for(var Wi in Di)if(Wi+WA in Fi){Bn=Wi,Rl=Di[Wi];break}Bn==="Webkit"&&"msHyphens"in Fi&&(Bn="ms",Rl=Di.ms,Nh="edge"),Bn==="Webkit"&&"-apple-trailing-word"in Fi&&(Bh="apple")}var Ne={js:Bn,css:Rl,vendor:Bh,browser:Nh,isTouch:DA};function VA(e){return e[1]==="-"||Ne.js==="ms"?e:"@"+Ne.css+"keyframes"+e.substr(10)}var HA={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:Ne.js==="ms"?"-webkit-"+t:Ne.css+t}},UA={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:Ne.js==="Webkit"?Ne.css+"print-"+t:t}},GA=/[-\s]+(.)?/g;function KA(e,t){return t?t.toUpperCase():""}function qc(e){return e.replace(GA,KA)}function lo(e){return qc("-"+e)}var qA={noPrefill:["mask"],supportedProperty:function(t,r){if(!/^mask/.test(t))return!1;if(Ne.js==="Webkit"){var o="mask-image";if(qc(o)in r)return t;if(Ne.js+lo(o)in r)return Ne.css+t}return t}},YA={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:Ne.vendor==="apple"&&!Ne.isTouch?Ne.css+t:t}},XA={noPrefill:["transform"],supportedProperty:function(t,r,o){return t!=="transform"?!1:o.transform?t:Ne.css+t}},ZA={noPrefill:["transition"],supportedProperty:function(t,r,o){return t!=="transition"?!1:o.transition?t:Ne.css+t}},JA={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:Ne.js==="Webkit"||Ne.js==="ms"&&Ne.browser!=="edge"?Ne.css+t:t}},QA={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:Ne.js==="Moz"||Ne.js==="ms"||Ne.vendor==="apple"?Ne.css+t:t}},e_={supportedProperty:function(t,r){if(!/^break-/.test(t))return!1;if(Ne.js==="Webkit"){var o="WebkitColumn"+lo(t);return o in r?Ne.css+"column-"+t:!1}if(Ne.js==="Moz"){var n="page"+lo(t);return n in r?"page-"+t:!1}return!1}},t_={supportedProperty:function(t,r){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(Ne.js==="Moz")return t;var o=t.replace("-inline","");return Ne.js+lo(o)in r?Ne.css+o:!1}},r_={supportedProperty:function(t,r){return qc(t)in r?t:!1}},o_={supportedProperty:function(t,r){var o=lo(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:Ne.js+o in r?Ne.css+t:Ne.js!=="Webkit"&&"Webkit"+o in r?"-webkit-"+t:!1}},n_={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:Ne.js==="ms"?""+Ne.css+t:t}},a_={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:Ne.js==="ms"?Ne.css+"scroll-chaining":t}},s_={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},i_={supportedProperty:function(t,r){var o=s_[t];return o&&Ne.js+lo(o)in r?Ne.css+o:!1}},jh={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},l_=Object.keys(jh),c_=function(t){return Ne.css+t},u_={supportedProperty:function(t,r,o){var n=o.multiple;if(l_.indexOf(t)>-1){var a=jh[t];if(!Array.isArray(a))return Ne.js+lo(a)in r?Ne.css+a:!1;if(!n)return!1;for(var s=0;s<a.length;s++)if(!(Ne.js+lo(a[0])in r))return!1;return a.map(c_)}return!1}},zh=[HA,UA,qA,YA,XA,ZA,JA,QA,e_,t_,r_,o_,n_,a_,i_,u_],mp=zh.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),d_=zh.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,_h(t.noPrefill)),e},[]),Nn,bo={};if(Pa){Nn=document.createElement("p");var Vi=window.getComputedStyle(document.documentElement,"");for(var Hi in Vi)isNaN(Hi)||(bo[Vi[Hi]]=Vi[Hi]);d_.forEach(function(e){return delete bo[e]})}function Pl(e,t){if(t===void 0&&(t={}),!Nn)return e;if(bo[e]!=null)return bo[e];(e==="transition"||e==="transform")&&(t[e]=e in Nn.style);for(var r=0;r<mp.length&&(bo[e]=mp[r](e,Nn.style,t),!bo[e]);r++);try{Nn.style[e]=""}catch{return!1}return bo[e]}var Do={},p_={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},f_=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,Xr;function g_(e,t,r){if(t==="var")return"var";if(t==="all")return"all";if(r==="all")return", all";var o=t?Pl(t):", "+Pl(r);return o||t||r}Pa&&(Xr=document.createElement("p"));function hp(e,t){var r=t;if(!Xr||e==="content")return t;if(typeof r!="string"||!isNaN(parseInt(r,10)))return r;var o=e+r;if(Do[o]!=null)return Do[o];try{Xr.style[e]=r}catch{return Do[o]=!1,!1}if(p_[e])r=r.replace(f_,g_);else if(Xr.style[e]===""&&(r=Ne.css+r,r==="-ms-flex"&&(Xr.style[e]="-ms-flexbox"),Xr.style[e]=r,Xr.style[e]===""))return Do[o]=!1,!1;return Xr.style[e]="",Do[o]=r,Do[o]}function m_(){function e(n){if(n.type==="keyframes"){var a=n;a.at=VA(a.at)}}function t(n){for(var a in n){var s=n[a];if(a==="fallbacks"&&Array.isArray(s)){n[a]=s.map(t);continue}var i=!1,l=Pl(a);l&&l!==a&&(i=!0);var c=!1,d=hp(l,So(s));d&&d!==s&&(c=!0),(i||c)&&(i&&delete n[a],n[l||a]=d||s)}return n}function r(n,a){return a.type!=="style"?n:t(n)}function o(n,a){return hp(a,So(n))||n}return{onProcessRule:e,onProcessStyle:r,onChangeValue:o}}function h_(){var e=function(r,o){return r.length===o.length?r>o?1:-1:r.length-o.length};return{onProcessStyle:function(r,o){if(o.type!=="style")return r;for(var n={},a=Object.keys(r).sort(e),s=0;s<a.length;s++)n[a[s]]=r[a[s]];return n}}}function v_(){return{plugins:[yA(),PA(),TA(),EA(),_A(),typeof window>"u"?null:m_(),h_()]}}function Dh(e={}){const{baseClasses:t,newClasses:r,Component:o}=e;if(!r)return t;const n=u({},t);return Object.keys(r).forEach(a=>{r[a]&&(n[a]=`${t[a]} ${r[a]}`)}),n}const Yo={set:(e,t,r,o)=>{let n=e.get(t);n||(n=new Map,e.set(t,n)),n.set(r,o)},get:(e,t,r)=>{const o=e.get(t);return o?o.get(r):void 0},delete:(e,t,r)=>{e.get(t).delete(r)}};function b_(){var e;const t=ri();return(e=t==null?void 0:t.$$material)!=null?e:t}const y_=Ih(v_()),x_=AL(),C_=new Map,S_={disableGeneration:!1,generateClassName:x_,jss:y_,sheetsCache:null,sheetsManager:C_,sheetsRegistry:null},$_=p.createContext(S_);let vp=-1e9;function R_(){return vp+=1,vp}const P_=["variant"];function bp(e){return e.length===0}function k_(e){const{variant:t}=e,r=j(e,P_);let o=t||"";return Object.keys(r).sort().forEach(n=>{n==="color"?o+=bp(o)?e[n]:O(e[n]):o+=`${bp(o)?n:O(n)}${O(e[n].toString())}`}),o}const w_={};function T_(e){const t=typeof e=="function";return{create:(r,o)=>{let n;try{n=t?e(r):e}catch(l){throw l}if(!o||!r.components||!r.components[o]||!r.components[o].styleOverrides&&!r.components[o].variants)return n;const a=r.components[o].styleOverrides||{},s=r.components[o].variants||[],i=u({},n);return Object.keys(a).forEach(l=>{i[l]=pt(i[l]||{},a[l])}),s.forEach(l=>{const c=k_(l.props);i[c]=pt(i[c]||{},l.style)}),i},options:{}}}const I_=["name","classNamePrefix","Component","defaultTheme"];function O_({state:e,stylesOptions:t},r,o){if(t.disableGeneration)return r||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let n=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,n=!0),r!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=r,n=!0),n&&(e.cacheClasses.value=Dh({baseClasses:e.cacheClasses.lastJSS,newClasses:r,Component:o})),e.cacheClasses.value}function M_({state:e,theme:t,stylesOptions:r,stylesCreator:o,name:n},a){if(r.disableGeneration)return;let s=Yo.get(r.sheetsManager,o,t);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Yo.set(r.sheetsManager,o,t,s));const i=u({},o.options,r,{theme:t,flip:typeof r.flip=="boolean"?r.flip:t.direction==="rtl"});i.generateId=i.serverGenerateClassName||i.generateClassName;const l=r.sheetsRegistry;if(s.refs===0){let c;r.sheetsCache&&(c=Yo.get(r.sheetsCache,o,t));const d=o.create(t,n);c||(c=r.jss.createStyleSheet(d,u({link:!1},i)),c.attach(),r.sheetsCache&&Yo.set(r.sheetsCache,o,t,c)),l&&l.add(c),s.staticSheet=c,s.dynamicStyles=Oh(d)}if(s.dynamicStyles){const c=r.jss.createStyleSheet(s.dynamicStyles,u({link:!0},i));c.update(a),c.attach(),e.dynamicSheet=c,e.classes=Dh({baseClasses:s.staticSheet.classes,newClasses:c.classes}),l&&l.add(c)}else e.classes=s.staticSheet.classes;s.refs+=1}function E_({state:e},t){e.dynamicSheet&&e.dynamicSheet.update(t)}function L_({state:e,theme:t,stylesOptions:r,stylesCreator:o}){if(r.disableGeneration)return;const n=Yo.get(r.sheetsManager,o,t);n.refs-=1;const a=r.sheetsRegistry;n.refs===0&&(Yo.delete(r.sheetsManager,o,t),r.jss.removeStyleSheet(n.staticSheet),a&&a.remove(n.staticSheet)),e.dynamicSheet&&(r.jss.removeStyleSheet(e.dynamicSheet),a&&a.remove(e.dynamicSheet))}function A_(e,t){const r=p.useRef([]);let o;const n=p.useMemo(()=>({}),t);r.current!==n&&(r.current=n,o=e()),p.useEffect(()=>()=>{o&&o()},[n])}function __(e,t={}){const{name:r,classNamePrefix:o,Component:n,defaultTheme:a=w_}=t,s=j(t,I_),i=T_(e),l=r||o||"makeStyles";return i.options={index:R_(),name:r,meta:l,classNamePrefix:l},(d={})=>{const f=b_()||a,m=u({},p.useContext($_),s),b=p.useRef(),v=p.useRef();return A_(()=>{const x={name:r,state:{},stylesCreator:i,stylesOptions:m,theme:f};return M_(x,d),v.current=!1,b.current=x,()=>{L_(x)}},[f,i]),p.useEffect(()=>{v.current&&E_(b.current,d),v.current=!0}),O_(b.current,d.classes,n)}}const B_=["name"],N_=["children","className","clone","component"];function j_(e,t){const r={};return Object.keys(e).forEach(o=>{t.indexOf(o)===-1&&(r[o]=e[o])}),r}function UN(e){return(r,o={})=>{const{name:n}=o,a=j(o,B_);let s=n;const l=__(typeof r=="function"?f=>({root:m=>r(u({theme:f},m))}):{root:r},u({Component:e,name:n||e.displayName,classNamePrefix:s},a));let c;r.filterProps&&(c=r.filterProps,delete r.filterProps),r.propTypes&&(r.propTypes,delete r.propTypes);const d=p.forwardRef(function(m,b){const{children:v,className:h,clone:x,component:y}=m,R=j(m,N_),$=l(m),P=z($.root,h);let k=R;if(c&&(k=j_(k,c)),x)return p.cloneElement(v,u({className:z(v.props.className,P)},k));if(typeof v=="function")return v(u({className:P},k));const g=y||e;return C.jsx(g,u({ref:b,className:P},k,{children:v}))});return zp(d,e),d}}function z_(e){return J("MuiLoadingButton",e)}const Lr=Q("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),D_=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],F_=e=>{const{loading:t,loadingPosition:r,classes:o}=e,n={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${O(r)}`],endIcon:[t&&`endIconLoading${O(r)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${O(r)}`]},a=ne(n,z_,o);return u({},o,a)},W_=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",V_=M(Im,{shouldForwardProp:e=>W_(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${Lr.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${Lr.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>u({[`& .${Lr.startIconLoadingStart}, & .${Lr.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},e.loadingPosition==="center"&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Lr.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${Lr.startIconLoadingStart}, & .${Lr.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${Lr.startIconLoadingStart}, & .${Lr.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),H_=M("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.loadingIndicator,t[`loadingIndicator${O(r.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>u({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),GN=p.forwardRef(function(t,r){const o=p.useContext(_c),n=Ro(o,t),a=qg({props:n,name:"MuiLoadingButton"}),{children:s,disabled:i=!1,id:l,loading:c=!1,loadingIndicator:d,loadingPosition:f="center",variant:m="text"}=a,b=j(a,D_),v=kr(l),h=d??C.jsx(S1,{"aria-labelledby":v,color:"inherit",size:16}),x=u({},a,{disabled:i,loading:c,loadingIndicator:h,loadingPosition:f,variant:m}),y=F_(x),R=c?C.jsx(H_,{className:y.loadingIndicator,ownerState:x,children:h}):null;return C.jsxs(V_,u({disabled:i||c,id:v,ref:r},b,{variant:m,classes:y,ownerState:x,children:[x.loadingPosition==="end"?s:R,x.loadingPosition==="end"?R:s]}))});let yp=!1;const KN=p.forwardRef(function(t,r){return yp||(console.warn(["MUI: The Pagination component was moved from the lab to the core.","","You should use `import { Pagination } from '@mui/material'`","or `import Pagination from '@mui/material/Pagination'`"].join(`
|
|
267
|
-
`)),yp=!0),C.jsx(TI,u({ref:r},t))});export{BB as $,xm as A,Mt as B,kc as C,jB as D,qa as E,Rm as F,na as G,ya as H,Qr as I,Sc as J,JB as K,a2 as L,SL as M,pn as N,Cg as O,li as P,_y as Q,Po as R,E1 as S,Rt as T,jl as U,A1 as V,uB as W,tw as X,sc as Y,us as Z,u as _,Q as a,$N as a$,fB as a0,Ng as a1,S1 as a2,wB as a3,BO as a4,No as a5,Nr as a6,AN as a7,BN as a8,Mo as a9,ON as aA,dB as aB,hh as aC,CB as aD,NB as aE,lw as aF,zN as aG,DN as aH,NN as aI,rN as aJ,kB as aK,pB as aL,PB as aM,Sw as aN,yN as aO,mi as aP,tN as aQ,OB as aR,FB as aS,hB as aT,CN as aU,fN as aV,cB as aW,X_ as aX,Y_ as aY,yB as aZ,SN as a_,Zi as aa,WB as ab,vw as ac,bB as ad,bN as ae,Pm as af,eN as ag,Zk as ah,hT as ai,Xm as aj,G2 as ak,Jm as al,MB as am,AB as an,LB as ao,EB as ap,XB as aq,M2 as ar,dN as as,xB as at,Z_ as au,q_ as av,Jh as aw,nb as ax,qB as ay,xN as az,vt as b,G_ as b$,TN as b0,_B as b1,vB as b2,IB as b3,VB as b4,HB as b5,UB as b6,GB as b7,ZB as b8,QB as b9,cb as bA,sb as bB,YB as bC,NE as bD,_m as bE,
|
|
267
|
+
`)),yp=!0),C.jsx(TI,u({ref:r},t))});export{BB as $,xm as A,Mt as B,kc as C,jB as D,qa as E,Rm as F,na as G,ya as H,Qr as I,Sc as J,JB as K,a2 as L,SL as M,pn as N,Cg as O,li as P,_y as Q,Po as R,E1 as S,Rt as T,jl as U,A1 as V,uB as W,tw as X,sc as Y,us as Z,u as _,Q as a,$N as a$,fB as a0,Ng as a1,S1 as a2,wB as a3,BO as a4,No as a5,Nr as a6,AN as a7,BN as a8,Mo as a9,ON as aA,dB as aB,hh as aC,CB as aD,NB as aE,lw as aF,zN as aG,DN as aH,NN as aI,rN as aJ,kB as aK,pB as aL,PB as aM,Sw as aN,yN as aO,mi as aP,tN as aQ,OB as aR,FB as aS,hB as aT,CN as aU,fN as aV,cB as aW,X_ as aX,Y_ as aY,yB as aZ,SN as a_,Zi as aa,WB as ab,vw as ac,bB as ad,bN as ae,Pm as af,eN as ag,Zk as ah,hT as ai,Xm as aj,G2 as ak,Jm as al,MB as am,AB as an,LB as ao,EB as ap,XB as aq,M2 as ar,dN as as,xB as at,Z_ as au,q_ as av,Jh as aw,nb as ax,qB as ay,xN as az,vt as b,G_ as b$,TN as b0,_B as b1,vB as b2,IB as b3,VB as b4,HB as b5,UB as b6,GB as b7,ZB as b8,QB as b9,cb as bA,sb as bB,YB as bC,NE as bD,_m as bE,Vm as bF,bm as bG,Wc as bH,b_ as bI,QP as bJ,__ as bK,RB as bL,Ew as bM,Zw as bN,UN as bO,FN as bP,_N as bQ,Dt as bR,fx as bS,TB as bT,mN as bU,hN as bV,GN as bW,LN as bX,EN as bY,ze as bZ,pN as b_,aN as ba,iN as bb,uN as bc,MN as bd,SB as be,RN as bf,wN as bg,$B as bh,kN as bi,PN as bj,IN as bk,Lg as bl,zp as bm,sN as bn,KB as bo,nN as bp,I2 as bq,ar as br,Vp as bs,vN as bt,gN as bu,ih as bv,jN as bw,cN as bx,lN as by,Nl as bz,j as c,fn as c$,K_ as c0,J_ as c1,px as c2,Lx as c3,gx as c4,gt as c5,vx as c6,bx as c7,ba as c8,iB as c9,Oh as cA,rl as cB,Wp as cC,Il as cD,nv as cE,nr as cF,Wt as cG,HN as cH,VN as cI,jA as cJ,pt as cK,O as cL,_r as cM,Ro as cN,Tt as cO,ho as cP,Ax as cQ,hx as cR,Jr as cS,mn as cT,uo as cU,Zn as cV,L$ as cW,vg as cX,wt as cY,zn as cZ,is as c_,rB as ca,tB as cb,nB as cc,oB as cd,sB as ce,mB as cf,lB as cg,aB as ch,Q_ as ci,eB as cj,mx as ck,jm as cl,KN as cm,Vv as cn,Hc as co,ds as cp,_h as cq,Jn as cr,yA as cs,PA as ct,TA as cu,EA as cv,_A as cw,m_ as cx,h_ as cy,Ih as cz,lt as d,Yy as d0,bg as d1,gB as d2,WN as d3,gg as d4,ei as d5,Qs as d6,co as d7,wo as d8,Hr as d9,ha as da,Ja as db,cg as dc,Of as dd,Ql as de,Ds as df,zs as dg,Js as dh,To as di,Xy as dj,oo as dk,mc as dl,ro as dm,Ot as dn,Ft as e,kr as f,J as g,qg as h,ft as i,C as j,ne as k,z as l,Zr as m,Ue as n,et as o,gr as p,Pi as q,DB as r,M as s,dg as t,He as u,Ir as v,pk as w,Im as x,zB as y,oN as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as h}from"./vendor-react-D-afvo_7.js";import{g as be,a as xe,_ as g,u as Ve,b as Be,c as oe,j as C,d as U,o as ot,e as je,f as ft,s as q,h as he,i as pe,k as ge,l as ye,m as Te,C as tn,n as $e,I as pt,T as Ke,p as Oe,B as Qn,D as qn,q as Bt,r as Zn,F as ht,t as nn,P as Xn,v as Jn,G as eo,w as to,x as lt,y as no,L as oo,z as ro,A as so,E as x,H as on,J as ao,K as rn,M as lo,N as sn,O as an,Q as ln}from"./vendor-mui-core-BHQ3rDZc.js";function io(e){return be("MuiTreeView",e)}xe("MuiTreeView",["root"]);const cn={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},un=h.createContext(cn),co=(e,t)=>{const n=h.useRef({}),[o,r]=h.useState(()=>{const l={};return e.forEach(a=>{a.models&&Object.entries(a.models).forEach(([i,c])=>{n.current[i]={controlledProp:c.controlledProp,defaultProp:c.defaultProp,isControlled:t[c.controlledProp]!==void 0},l[i]=t[c.defaultProp]})}),l});return Object.fromEntries(Object.entries(n.current).map(([l,a])=>{const i=a.isControlled?t[a.controlledProp]:o[l];return[l,{value:i,setValue:c=>{a.isControlled||r(u=>g({},u,{[l]:c}))}}]}))};class uo{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,o={}){let r=this.events[t];r||(r={highPriority:new Map,regular:new Map},this.events[t]=r),o.isFirst?r.highPriority.set(n,!0):r.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const o=this.events[t];if(!o)return;const r=Array.from(o.highPriority.keys()),s=Array.from(o.regular.keys());for(let l=r.length-1;l>=0;l-=1){const a=r[l];o.highPriority.has(a)&&a.apply(this,n)}for(let l=0;l<s.length;l+=1){const a=s[l];o.regular.has(a)&&a.apply(this,n)}}once(t,n){const o=this;this.on(t,function r(...s){o.removeListener(t,r),n.apply(o,s)})}}const Ct=(e,t)=>{const n=e.getNode(t),o=e.getNavigableChildrenIds(n.parentId),r=o.indexOf(t);if(r===0)return n.parentId;let s=o[r-1];for(;e.isNodeExpanded(s)&&e.getNavigableChildrenIds(s).length>0;)s=e.getNavigableChildrenIds(s).pop();return s},nt=(e,t)=>{if(e.isNodeExpanded(t)&&e.getNavigableChildrenIds(t).length>0)return e.getNavigableChildrenIds(t)[0];let n=e.getNode(t);for(;n!=null;){const o=e.getNavigableChildrenIds(n.parentId),r=o[o.indexOf(n.id)+1];if(r)return r;n=e.getNode(n.parentId)}return null},Mt=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},It=e=>e.getNavigableChildrenIds(null)[0],Ge=(e,t)=>{Object.assign(e,t)},fo=e=>e.isPropagationStopped!==void 0,po=({instance:e})=>{const[t]=h.useState(()=>new uo),n=h.useCallback((...r)=>{const[s,l,a={}]=r;a.defaultMuiPrevented=!1,!(fo(a)&&a.isPropagationStopped())&&t.emit(s,l,a)},[t]),o=h.useCallback((r,s)=>(t.on(r,s),()=>{t.removeListener(r,s)}),[t]);Ge(e,{$$publishEvent:n,$$subscribeEvent:o})},ho=[po],mo=e=>{const t=[...ho,...e.plugins],n=t.reduce((f,p)=>p.getDefaultizedParams?p.getDefaultizedParams(f):f,e),o=co(t,n),s=h.useRef({}).current,l=h.useRef(null),a=Ve(l,e.rootRef),[i,c]=h.useState(()=>{const f={};return t.forEach(p=>{p.getInitialState&&Object.assign(f,p.getInitialState(n))}),f}),u=[];let m=cn;const D=f=>{const p=f({instance:s,params:n,state:i,setState:c,rootRef:l,models:o})||{};p.getRootProps&&u.push(p.getRootProps),p.contextValue&&(m=p.contextValue)};return t.forEach(D),{getRootProps:(f={})=>{const p=g({role:"tree",tabIndex:0},f,{ref:a});return u.forEach(y=>{Object.assign(p,y(f))}),p},rootRef:a,contextValue:m}},go=["element"];function yo(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function bo(e,t){let n=0,o=e.length-1;for(;n<=o;){const r=Math.floor((n+o)/2);if(e[r].element===t)return r;e[r].element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?o=r-1:n=r+1}return n}const dn=h.createContext({});function xo(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e},[e]),t.current}const jt=()=>{};function wo(e){const[,t]=h.useState(),{registerDescendant:n=jt,unregisterDescendant:o=jt,descendants:r=[],parentId:s=null}=h.useContext(dn),l=yo(r,c=>c.element===e.element),a=xo(r),i=r.some((c,u)=>a&&a[u]&&a[u].element!==c.element);return Be(()=>{if(e.element)return n(g({},e,{index:l})),()=>{o(e.element)};t({})},[n,o,l,i,e]),{parentId:s,index:l}}function fn(e){const{children:t,id:n}=e,[o,r]=h.useState([]),s=h.useCallback(i=>{let{element:c}=i,u=oe(i,go);r(m=>{if(m.length===0)return[g({},u,{element:c,index:0})];const D=bo(m,c);let d;if(m[D]&&m[D].element===c)d=m;else{const f=g({},u,{element:c,index:D});d=m.slice(),d.splice(D,0,f)}return d.forEach((f,p)=>{f.index=p}),d})},[]),l=h.useCallback(i=>{r(c=>c.filter(u=>i!==u.element))},[]),a=h.useMemo(()=>({descendants:o,registerDescendant:s,unregisterDescendant:l,parentId:n}),[o,s,l,n]);return C.jsx(dn.Provider,{value:a,children:t})}function Do(e){const{value:t,children:n}=e;return C.jsx(un.Provider,{value:t,children:C.jsx(fn,{children:n})})}const Po=(e,t,n)=>{e.$$publishEvent(t,n)},vo=({instance:e,params:t})=>{const n=h.useRef({}),o=h.useCallback(c=>n.current[c],[]),r=h.useCallback(c=>{n.current[c.id]=c},[]),s=h.useCallback(c=>{const u=g({},n.current);delete u[c],n.current=u,Po(e,"removeNode",{id:c})},[e]),l=h.useCallback(c=>{if(c==null)return!1;let u=e.getNode(c);if(!u)return!1;if(u.disabled)return!0;for(;u.parentId!=null;)if(u=e.getNode(u.parentId),u.disabled)return!0;return!1},[e]),a=U(c=>Object.values(n.current).filter(u=>u.parentId===c).sort((u,m)=>u.index-m.index).map(u=>u.id));Ge(e,{getNode:o,updateNode:r,removeNode:s,getChildrenIds:a,getNavigableChildrenIds:c=>{let u=e.getChildrenIds(c);return t.disabledItemsFocusable||(u=u.filter(m=>!e.isNodeDisabled(m))),u},isNodeDisabled:l})},Vt=({instance:e,params:t,models:n})=>{const o=h.useCallback(a=>Array.isArray(n.expanded.value)?n.expanded.value.indexOf(a)!==-1:!1,[n.expanded.value]),r=h.useCallback(a=>{var i;return!!((i=e.getNode(a))!=null&&i.expandable)},[e]),s=U((a,i)=>{if(i==null)return;let c;n.expanded.value.indexOf(i)!==-1?c=n.expanded.value.filter(u=>u!==i):c=[i].concat(n.expanded.value),t.onNodeToggle&&t.onNodeToggle(a,c),n.expanded.setValue(c)});Ge(e,{isNodeExpanded:o,isNodeExpandable:r,toggleNodeExpansion:s,expandAllSiblings:(a,i)=>{const c=e.getNode(i),m=e.getChildrenIds(c.parentId).filter(d=>e.isNodeExpandable(d)&&!e.isNodeExpanded(d)),D=n.expanded.value.concat(m);m.length>0&&(n.expanded.setValue(D),t.onNodeToggle&&t.onNodeToggle(a,D))}})};Vt.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};const So=[];Vt.getDefaultizedParams=e=>{var t;return g({},e,{defaultExpanded:(t=e.defaultExpanded)!=null?t:So})};const Co=(e,t,n)=>{if(t===n)return[t,n];const o=e.getNode(t),r=e.getNode(n);if(o.parentId===r.id||r.parentId===o.id)return r.parentId===o.id?[o.id,r.id]:[r.id,o.id];const s=[o.id],l=[r.id];let a=o.parentId,i=r.parentId,c=l.indexOf(a)!==-1,u=s.indexOf(i)!==-1,m=!0,D=!0;for(;!u&&!c;)m&&(s.push(a),c=l.indexOf(a)!==-1,m=a!==null,!c&&m&&(a=e.getNode(a).parentId)),D&&!c&&(l.push(i),u=s.indexOf(i)!==-1,D=i!==null,!u&&D&&(i=e.getNode(i).parentId));const d=c?a:i,f=e.getChildrenIds(d),p=s[s.indexOf(d)-1],y=l[l.indexOf(d)-1];return f.indexOf(p)<f.indexOf(y)?[t,n]:[n,t]},Nt=({instance:e,params:t,models:n})=>{const o=h.useRef(null),r=h.useRef(!1),s=h.useRef([]),l=f=>Array.isArray(n.selected.value)?n.selected.value.indexOf(f)!==-1:n.selected.value===f,a=(f,p,y=!1)=>{if(!t.disableSelection){if(y){if(Array.isArray(n.selected.value)){let w;n.selected.value.indexOf(p)!==-1?w=n.selected.value.filter(b=>b!==p):w=[p].concat(n.selected.value),t.onNodeSelect&&t.onNodeSelect(f,w),n.selected.setValue(w)}}else{const w=t.multiSelect?[p]:p;t.onNodeSelect&&t.onNodeSelect(f,w),n.selected.setValue(w)}o.current=p,r.current=!1,s.current=[]}},i=(f,p)=>{const[y,w]=Co(e,f,p),b=[y];let P=y;for(;P!==w;)P=nt(e,P),b.push(P);return b},c=(f,p)=>{let y=n.selected.value.slice();const{start:w,next:b,current:P}=p;!b||!P||(s.current.indexOf(P)===-1&&(s.current=[]),r.current?s.current.indexOf(b)!==-1?(y=y.filter(k=>k===w||k!==P),s.current=s.current.filter(k=>k===w||k!==P)):(y.push(b),s.current.push(b)):(y.push(b),s.current.push(P,b)),t.onNodeSelect&&t.onNodeSelect(f,y),n.selected.setValue(y))},u=(f,p)=>{let y=n.selected.value.slice();const{start:w,end:b}=p;r.current&&(y=y.filter(v=>s.current.indexOf(v)===-1));let P=i(w,b);P=P.filter(v=>!e.isNodeDisabled(v)),s.current=P;let k=y.concat(P);k=k.filter((v,V)=>k.indexOf(v)===V),t.onNodeSelect&&t.onNodeSelect(f,k),n.selected.setValue(k)};return Ge(e,{isNodeSelected:l,selectNode:a,selectRange:(f,p,y=!1)=>{if(t.disableSelection)return;const{start:w=o.current,end:b,current:P}=p;y?c(f,{start:w,next:b,current:P}):w!=null&&b!=null&&u(f,{start:w,end:b}),r.current=!0},rangeSelectToLast:(f,p)=>{o.current||(o.current=p);const y=r.current?o.current:p;e.selectRange(f,{start:y,end:Mt(e)})},rangeSelectToFirst:(f,p)=>{o.current||(o.current=p);const y=r.current?o.current:p;e.selectRange(f,{start:y,end:It(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect})}};Nt.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};const ko=[];Nt.getDefaultizedParams=e=>{var t,n,o;return g({},e,{disableSelection:(t=e.disableSelection)!=null?t:!1,multiSelect:(n=e.multiSelect)!=null?n:!1,defaultSelected:(o=e.defaultSelected)!=null?o:e.multiSelect?ko:null})};const Wt=1e3;class Mo{constructor(t=Wt){this.timeouts=new Map,this.cleanupTimeout=Wt,this.cleanupTimeout=t}register(t,n,o){this.timeouts||(this.timeouts=new Map);const r=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(o.cleanupToken)},this.cleanupTimeout);this.timeouts.set(o.cleanupToken,r)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class Io{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,o){this.registry.register(t,n,o)}unregister(t){this.registry.unregister(t)}reset(){}}class To{}function Vo(e){let t=0;return function(o,r,s){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new Io:new Mo);const[l]=h.useState(new To),a=h.useRef(null),i=h.useRef();i.current=s;const c=h.useRef(null);if(!a.current&&i.current){const u=(m,D)=>{if(!D.defaultMuiPrevented){var d;(d=i.current)==null||d.call(i,m,D)}};a.current=o.$$subscribeEvent(r,u),t+=1,c.current={cleanupToken:t},e.registry.register(l,()=>{var m;(m=a.current)==null||m.call(a),a.current=null,c.current=null},c.current)}else!i.current&&a.current&&(a.current(),a.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));h.useEffect(()=>{if(!a.current&&i.current){const u=(m,D)=>{if(!D.defaultMuiPrevented){var d;(d=i.current)==null||d.call(i,m,D)}};a.current=o.$$subscribeEvent(r,u)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var u;(u=a.current)==null||u.call(a),a.current=null}},[o,r])}}const No={registry:null},Ro=Vo(No),Rt=({instance:e,params:t,state:n,setState:o,models:r,rootRef:s})=>{const l=U(d=>{const f=typeof d=="function"?d(n.focusedNodeId):d;o(p=>g({},p,{focusedNodeId:f}))}),a=h.useCallback(d=>n.focusedNodeId===d,[n.focusedNodeId]),i=U((d,f)=>{f&&(l(f),t.onNodeFocus&&t.onNodeFocus(d,f))});Ge(e,{isNodeFocused:a,focusNode:i}),Ro(e,"removeNode",({id:d})=>{l(f=>f===d&&s.current===ot(s.current).activeElement?e.getChildrenIds(null)[0]:f)});const c=d=>f=>{var p;if((p=d.onFocus)==null||p.call(d,f),f.target===f.currentTarget){const y=b=>{const P=e.getNode(b);return P&&(P.parentId==null||e.isNodeExpanded(P.parentId))};let w;Array.isArray(r.selected.value)?w=r.selected.value.find(y):r.selected.value!=null&&y(r.selected.value)&&(w=r.selected.value),w==null&&(w=e.getNavigableChildrenIds(null)[0]),e.focusNode(f,w)}},u=d=>f=>{var p;(p=d.onBlur)==null||p.call(d,f),l(null)},m=e.getNode(n.focusedNodeId),D=m?m.idAttribute:null;return{getRootProps:d=>({onFocus:c(d),onBlur:u(d),"aria-activedescendant":D??void 0})}};Rt.getInitialState=()=>({focusedNodeId:null});Rt.getDefaultizedParams=e=>{var t;return g({},e,{disabledItemsFocusable:(t=e.disabledItemsFocusable)!=null?t:!1})};function Eo(e){return e&&e.length===1&&e.match(/\S/)}function zt(e,t,n){for(let o=t;o<e.length;o+=1)if(n===e[o])return o;return-1}const Fo=({instance:e,params:t,state:n})=>{const r=je().direction==="rtl",s=h.useRef({}),l=U((d,f)=>(s.current[d]=f,()=>{const p=g({},s.current);delete p[d],s.current=p}));Ge(e,{mapFirstChar:l});const a=d=>(n.focusedNodeId!=null&&e.isNodeExpandable(n.focusedNodeId)&&(e.isNodeExpanded(n.focusedNodeId)?e.focusNode(d,nt(e,n.focusedNodeId)):e.isNodeDisabled(n.focusedNodeId)||e.toggleNodeExpansion(d,n.focusedNodeId)),!0),i=d=>{if(n.focusedNodeId==null)return!1;if(e.isNodeExpanded(n.focusedNodeId)&&!e.isNodeDisabled(n.focusedNodeId))return e.toggleNodeExpansion(d,n.focusedNodeId),!0;const f=e.getNode(n.focusedNodeId).parentId;return f?(e.focusNode(d,f),!0):!1},c=(d,f,p)=>{let y,w;const b=p.toLowerCase(),P=[],k=[];Object.keys(s.current).forEach(v=>{const V=e.getNode(v),T=V.parentId?e.isNodeExpanded(V.parentId):!0,E=t.disabledItemsFocusable?!1:e.isNodeDisabled(v);T&&!E&&(P.push(v),k.push(s.current[v]))}),y=P.indexOf(f)+1,y>=P.length&&(y=0),w=zt(k,y,b),w===-1&&(w=zt(k,0,b)),w>-1&&e.focusNode(d,P[w])},u=(d,f)=>{e.isNodeDisabled(nt(e,f))||e.selectRange(d,{end:nt(e,f),current:f},!0)},m=(d,f)=>{e.isNodeDisabled(Ct(e,f))||e.selectRange(d,{end:Ct(e,f),current:f},!0)},D=d=>f=>{var p;(p=d.onKeyDown)==null||p.call(d,f);let y=!1;const w=f.key;if(f.altKey||f.currentTarget!==f.target||n.focusedNodeId==null)return;const b=f.ctrlKey||f.metaKey;switch(w){case" ":!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&(y=!0,t.multiSelect&&f.shiftKey?e.selectRange(f,{end:n.focusedNodeId}):t.multiSelect?e.selectNode(f,n.focusedNodeId,!0):e.selectNode(f,n.focusedNodeId)),f.stopPropagation();break;case"Enter":e.isNodeDisabled(n.focusedNodeId)||(e.isNodeExpandable(n.focusedNodeId)?(e.toggleNodeExpansion(f,n.focusedNodeId),y=!0):t.disableSelection||(y=!0,t.multiSelect?e.selectNode(f,n.focusedNodeId,!0):e.selectNode(f,n.focusedNodeId))),f.stopPropagation();break;case"ArrowDown":t.multiSelect&&f.shiftKey&&!t.disableSelection&&u(f,n.focusedNodeId),e.focusNode(f,nt(e,n.focusedNodeId)),y=!0;break;case"ArrowUp":t.multiSelect&&f.shiftKey&&!t.disableSelection&&m(f,n.focusedNodeId),e.focusNode(f,Ct(e,n.focusedNodeId)),y=!0;break;case"ArrowRight":r?y=i(f):y=a(f);break;case"ArrowLeft":r?y=a(f):y=i(f);break;case"Home":t.multiSelect&&b&&f.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToFirst(f,n.focusedNodeId),e.focusNode(f,It(e)),y=!0;break;case"End":t.multiSelect&&b&&f.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToLast(f,n.focusedNodeId),e.focusNode(f,Mt(e)),y=!0;break;default:w==="*"?(e.expandAllSiblings(f,n.focusedNodeId),y=!0):t.multiSelect&&b&&w.toLowerCase()==="a"&&!t.disableSelection?(e.selectRange(f,{start:It(e),end:Mt(e)}),y=!0):!b&&!f.shiftKey&&Eo(w)&&(c(f,n.focusedNodeId,w),y=!0)}y&&(f.preventDefault(),f.stopPropagation())};return{getRootProps:d=>({onKeyDown:D(d)})}},Ao=({instance:e,params:t})=>{const n=ft(t.id);return{getRootProps:()=>({id:n}),contextValue:{treeId:n,instance:e,multiSelect:t.multiSelect,disabledItemsFocusable:t.disabledItemsFocusable,icons:{defaultCollapseIcon:t.defaultCollapseIcon,defaultEndIcon:t.defaultEndIcon,defaultExpandIcon:t.defaultExpandIcon,defaultParentIcon:t.defaultParentIcon}}}},Oo=[vo,Vt,Nt,Rt,Fo,Ao],$o=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],Lo=e=>{const{classes:t}=e;return ge({root:["root"]},io,t)},Ht=q("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),Dl=h.forwardRef(function(t,n){const o=he({props:t,name:"MuiTreeView"}),r=o,s=o,{disabledItemsFocusable:l,expanded:a,defaultExpanded:i,onNodeToggle:c,onNodeFocus:u,disableSelection:m,defaultSelected:D,selected:d,multiSelect:f,onNodeSelect:p,id:y,defaultCollapseIcon:w,defaultEndIcon:b,defaultExpandIcon:P,defaultParentIcon:k,children:v}=s,V=oe(s,$o),{getRootProps:T,contextValue:E}=mo({disabledItemsFocusable:l,expanded:a,defaultExpanded:i,onNodeToggle:c,onNodeFocus:u,disableSelection:m,defaultSelected:D,selected:d,multiSelect:f,onNodeSelect:p,id:y,defaultCollapseIcon:w,defaultEndIcon:b,defaultExpandIcon:P,defaultParentIcon:k,plugins:Oo,rootRef:n}),S=Lo(o),j=pe({elementType:Ht,externalSlotProps:{},externalForwardedProps:V,className:S.root,getSlotProps:T,ownerState:r});return C.jsx(Do,{value:E,children:C.jsx(Ht,g({},j,{children:v}))})}),pn=()=>h.useContext(un);function _o(e){const{instance:t,multiSelect:n}=pn(),o=t?t.isNodeExpandable(e):!1,r=t?t.isNodeExpanded(e):!1,s=t?t.isNodeFocused(e):!1,l=t?t.isNodeSelected(e):!1,a=t?t.isNodeDisabled(e):!1;return{disabled:a,expanded:r,selected:l,focused:s,handleExpansion:m=>{if(t&&!a){s||t.focusNode(m,e);const D=n&&(m.shiftKey||m.ctrlKey||m.metaKey);o&&!(D&&t.isNodeExpanded(e))&&t.toggleNodeExpansion(m,e)}},handleSelection:m=>{t&&!a&&(s||t.focusNode(m,e),n&&(m.shiftKey||m.ctrlKey||m.metaKey)?m.shiftKey?t.selectRange(m,{end:e}):t.selectNode(m,e,!0):t.selectNode(m,e))},preventSelection:m=>{(m.shiftKey||m.ctrlKey||m.metaKey||a)&&m.preventDefault()}}}const Bo=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],hn=h.forwardRef(function(t,n){const{classes:o,className:r,displayIcon:s,expansionIcon:l,icon:a,label:i,nodeId:c,onClick:u,onMouseDown:m}=t,D=oe(t,Bo),{disabled:d,expanded:f,selected:p,focused:y,handleExpansion:w,handleSelection:b,preventSelection:P}=_o(c),k=a||l||s,v=T=>{P(T),m&&m(T)},V=T=>{w(T),b(T),u&&u(T)};return C.jsxs("div",g({},D,{className:ye(r,o.root,f&&o.expanded,p&&o.selected,y&&o.focused,d&&o.disabled),onClick:V,onMouseDown:v,ref:n,children:[C.jsx("div",{className:o.iconContainer,children:k}),C.jsx("div",{className:o.label,children:i})]}))});function jo(e){return be("MuiTreeItem",e)}const Ae=xe("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),Wo=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],zo=e=>{const{classes:t}=e;return ge({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},jo,t)},Ho=q("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Uo=q(hn,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Ae.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Ae.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ae.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Ae.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ae.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Te(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Te(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Te(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ae.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Te(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Ae.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Ae.label}`]:g({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),Yo=q(tn,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),Pl=h.forwardRef(function(t,n){const o=he({props:t,name:"MuiTreeItem"}),{children:r,className:s,collapseIcon:l,ContentComponent:a=hn,ContentProps:i,endIcon:c,expandIcon:u,disabled:m,icon:D,id:d,label:f,nodeId:p,onClick:y,onMouseDown:w,TransitionComponent:b=tn,TransitionProps:P}=o,k=oe(o,Wo),{icons:v,multiSelect:V,disabledItemsFocusable:T,treeId:E,instance:S}=pn();let j;d!=null?j=d:E&&p&&(j=`${E}-${p}`);const[N,L]=h.useState(null),$=h.useRef(null),I=Ve(L,n),M=h.useMemo(()=>({element:N,id:p}),[p,N]),{index:B,parentId:Y}=wo(M),_=!!(Array.isArray(r)?r.length:r),H=S?S.isNodeExpanded(p):!1,G=S?S.isNodeFocused(p):!1,le=S?S.isNodeSelected(p):!1,ae=S?S.isNodeDisabled(p):!1,ie=g({},o,{expanded:H,focused:G,selected:le,disabled:ae}),A=zo(ie);let K,re;_&&(H?re=l||v.defaultCollapseIcon:re=u||v.defaultExpandIcon),_?K=v.defaultParentIcon:K=c||v.defaultEndIcon,h.useEffect(()=>{if(S&&B!==-1)return S.updateNode({id:p,idAttribute:j,index:B,parentId:Y,expandable:_,disabled:m}),()=>S.removeNode(p)},[S,Y,B,p,_,m,j]),h.useEffect(()=>{if(S&&f){var te,se;return S.mapFirstChar(p,((te=(se=$.current)==null?void 0:se.textContent)!=null?te:"").substring(0,1).toLowerCase())}},[S,p,f]);let R;V?R=le:le&&(R=!0);function Z(te){if(te.target===te.currentTarget){let W;typeof te.target.getRootNode=="function"?W=te.target.getRootNode():W=ot(te.target),W.getElementById(E).focus({preventScroll:!0})}const se=!T&&ae;S&&!G&&te.currentTarget===te.target&&!se&&S.focusNode(te,p)}return C.jsxs(Ho,g({className:ye(A.root,s),role:"treeitem","aria-expanded":_?H:void 0,"aria-selected":R,"aria-disabled":ae||void 0,id:j,tabIndex:-1},k,{ownerState:ie,onFocus:Z,ref:I,children:[C.jsx(Uo,g({as:a,ref:$,classes:{root:A.content,expanded:A.expanded,selected:A.selected,focused:A.focused,disabled:A.disabled,iconContainer:A.iconContainer,label:A.label},label:f,nodeId:p,onClick:y,onMouseDown:w,icon:D,expansionIcon:re,displayIcon:K,ownerState:ie},i)),r&&C.jsx(fn,{id:p,children:C.jsx(Yo,g({as:b,unmountOnExit:!0,className:A.group,in:H,component:"ul",role:"group"},P,{children:r}))})]}))}),Ko=["localeText"],Tt=h.createContext(null),mn=function(t){var n;const{localeText:o}=t,r=oe(t,Ko),{utils:s,localeText:l}=(n=h.useContext(Tt))!=null?n:{utils:void 0,localeText:void 0},a=he({props:r,name:"MuiLocalizationProvider"}),{children:i,dateAdapter:c,dateFormats:u,dateLibInstance:m,adapterLocale:D,localeText:d}=a,f=h.useMemo(()=>g({},d,l,o),[d,l,o]),p=h.useMemo(()=>{if(!c)return s||null;const b=new c({locale:D,formats:u,instance:m});if(!b.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
1
|
+
import{r as h}from"./vendor-react-D-afvo_7.js";import{g as be,a as xe,_ as g,u as Ve,b as Be,c as oe,j as C,d as U,o as ot,e as je,f as ft,s as q,h as he,i as pe,k as ge,l as ye,m as Te,C as tn,n as $e,I as pt,T as Ke,p as Oe,B as Qn,D as qn,q as Bt,r as Zn,F as ht,t as nn,P as Xn,v as Jn,G as eo,w as to,x as lt,y as no,L as oo,z as ro,A as so,E as x,H as on,J as ao,K as rn,M as lo,N as sn,O as an,Q as ln}from"./vendor-mui-core-COxJgW9_.js";function io(e){return be("MuiTreeView",e)}xe("MuiTreeView",["root"]);const cn={instance:null,multiSelect:!1,disabledItemsFocusable:!1,treeId:void 0,icons:{defaultCollapseIcon:null,defaultExpandIcon:null,defaultParentIcon:null,defaultEndIcon:null}},un=h.createContext(cn),co=(e,t)=>{const n=h.useRef({}),[o,r]=h.useState(()=>{const l={};return e.forEach(a=>{a.models&&Object.entries(a.models).forEach(([i,c])=>{n.current[i]={controlledProp:c.controlledProp,defaultProp:c.defaultProp,isControlled:t[c.controlledProp]!==void 0},l[i]=t[c.defaultProp]})}),l});return Object.fromEntries(Object.entries(n.current).map(([l,a])=>{const i=a.isControlled?t[a.controlledProp]:o[l];return[l,{value:i,setValue:c=>{a.isControlled||r(u=>g({},u,{[l]:c}))}}]}))};class uo{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,o={}){let r=this.events[t];r||(r={highPriority:new Map,regular:new Map},this.events[t]=r),o.isFirst?r.highPriority.set(n,!0):r.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const o=this.events[t];if(!o)return;const r=Array.from(o.highPriority.keys()),s=Array.from(o.regular.keys());for(let l=r.length-1;l>=0;l-=1){const a=r[l];o.highPriority.has(a)&&a.apply(this,n)}for(let l=0;l<s.length;l+=1){const a=s[l];o.regular.has(a)&&a.apply(this,n)}}once(t,n){const o=this;this.on(t,function r(...s){o.removeListener(t,r),n.apply(o,s)})}}const Ct=(e,t)=>{const n=e.getNode(t),o=e.getNavigableChildrenIds(n.parentId),r=o.indexOf(t);if(r===0)return n.parentId;let s=o[r-1];for(;e.isNodeExpanded(s)&&e.getNavigableChildrenIds(s).length>0;)s=e.getNavigableChildrenIds(s).pop();return s},nt=(e,t)=>{if(e.isNodeExpanded(t)&&e.getNavigableChildrenIds(t).length>0)return e.getNavigableChildrenIds(t)[0];let n=e.getNode(t);for(;n!=null;){const o=e.getNavigableChildrenIds(n.parentId),r=o[o.indexOf(n.id)+1];if(r)return r;n=e.getNode(n.parentId)}return null},Mt=e=>{let t=e.getNavigableChildrenIds(null).pop();for(;e.isNodeExpanded(t);)t=e.getNavigableChildrenIds(t).pop();return t},It=e=>e.getNavigableChildrenIds(null)[0],Ge=(e,t)=>{Object.assign(e,t)},fo=e=>e.isPropagationStopped!==void 0,po=({instance:e})=>{const[t]=h.useState(()=>new uo),n=h.useCallback((...r)=>{const[s,l,a={}]=r;a.defaultMuiPrevented=!1,!(fo(a)&&a.isPropagationStopped())&&t.emit(s,l,a)},[t]),o=h.useCallback((r,s)=>(t.on(r,s),()=>{t.removeListener(r,s)}),[t]);Ge(e,{$$publishEvent:n,$$subscribeEvent:o})},ho=[po],mo=e=>{const t=[...ho,...e.plugins],n=t.reduce((f,p)=>p.getDefaultizedParams?p.getDefaultizedParams(f):f,e),o=co(t,n),s=h.useRef({}).current,l=h.useRef(null),a=Ve(l,e.rootRef),[i,c]=h.useState(()=>{const f={};return t.forEach(p=>{p.getInitialState&&Object.assign(f,p.getInitialState(n))}),f}),u=[];let m=cn;const D=f=>{const p=f({instance:s,params:n,state:i,setState:c,rootRef:l,models:o})||{};p.getRootProps&&u.push(p.getRootProps),p.contextValue&&(m=p.contextValue)};return t.forEach(D),{getRootProps:(f={})=>{const p=g({role:"tree",tabIndex:0},f,{ref:a});return u.forEach(y=>{Object.assign(p,y(f))}),p},rootRef:a,contextValue:m}},go=["element"];function yo(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}function bo(e,t){let n=0,o=e.length-1;for(;n<=o;){const r=Math.floor((n+o)/2);if(e[r].element===t)return r;e[r].element.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?o=r-1:n=r+1}return n}const dn=h.createContext({});function xo(e){const t=h.useRef(null);return h.useEffect(()=>{t.current=e},[e]),t.current}const jt=()=>{};function wo(e){const[,t]=h.useState(),{registerDescendant:n=jt,unregisterDescendant:o=jt,descendants:r=[],parentId:s=null}=h.useContext(dn),l=yo(r,c=>c.element===e.element),a=xo(r),i=r.some((c,u)=>a&&a[u]&&a[u].element!==c.element);return Be(()=>{if(e.element)return n(g({},e,{index:l})),()=>{o(e.element)};t({})},[n,o,l,i,e]),{parentId:s,index:l}}function fn(e){const{children:t,id:n}=e,[o,r]=h.useState([]),s=h.useCallback(i=>{let{element:c}=i,u=oe(i,go);r(m=>{if(m.length===0)return[g({},u,{element:c,index:0})];const D=bo(m,c);let d;if(m[D]&&m[D].element===c)d=m;else{const f=g({},u,{element:c,index:D});d=m.slice(),d.splice(D,0,f)}return d.forEach((f,p)=>{f.index=p}),d})},[]),l=h.useCallback(i=>{r(c=>c.filter(u=>i!==u.element))},[]),a=h.useMemo(()=>({descendants:o,registerDescendant:s,unregisterDescendant:l,parentId:n}),[o,s,l,n]);return C.jsx(dn.Provider,{value:a,children:t})}function Do(e){const{value:t,children:n}=e;return C.jsx(un.Provider,{value:t,children:C.jsx(fn,{children:n})})}const Po=(e,t,n)=>{e.$$publishEvent(t,n)},vo=({instance:e,params:t})=>{const n=h.useRef({}),o=h.useCallback(c=>n.current[c],[]),r=h.useCallback(c=>{n.current[c.id]=c},[]),s=h.useCallback(c=>{const u=g({},n.current);delete u[c],n.current=u,Po(e,"removeNode",{id:c})},[e]),l=h.useCallback(c=>{if(c==null)return!1;let u=e.getNode(c);if(!u)return!1;if(u.disabled)return!0;for(;u.parentId!=null;)if(u=e.getNode(u.parentId),u.disabled)return!0;return!1},[e]),a=U(c=>Object.values(n.current).filter(u=>u.parentId===c).sort((u,m)=>u.index-m.index).map(u=>u.id));Ge(e,{getNode:o,updateNode:r,removeNode:s,getChildrenIds:a,getNavigableChildrenIds:c=>{let u=e.getChildrenIds(c);return t.disabledItemsFocusable||(u=u.filter(m=>!e.isNodeDisabled(m))),u},isNodeDisabled:l})},Vt=({instance:e,params:t,models:n})=>{const o=h.useCallback(a=>Array.isArray(n.expanded.value)?n.expanded.value.indexOf(a)!==-1:!1,[n.expanded.value]),r=h.useCallback(a=>{var i;return!!((i=e.getNode(a))!=null&&i.expandable)},[e]),s=U((a,i)=>{if(i==null)return;let c;n.expanded.value.indexOf(i)!==-1?c=n.expanded.value.filter(u=>u!==i):c=[i].concat(n.expanded.value),t.onNodeToggle&&t.onNodeToggle(a,c),n.expanded.setValue(c)});Ge(e,{isNodeExpanded:o,isNodeExpandable:r,toggleNodeExpansion:s,expandAllSiblings:(a,i)=>{const c=e.getNode(i),m=e.getChildrenIds(c.parentId).filter(d=>e.isNodeExpandable(d)&&!e.isNodeExpanded(d)),D=n.expanded.value.concat(m);m.length>0&&(n.expanded.setValue(D),t.onNodeToggle&&t.onNodeToggle(a,D))}})};Vt.models={expanded:{controlledProp:"expanded",defaultProp:"defaultExpanded"}};const So=[];Vt.getDefaultizedParams=e=>{var t;return g({},e,{defaultExpanded:(t=e.defaultExpanded)!=null?t:So})};const Co=(e,t,n)=>{if(t===n)return[t,n];const o=e.getNode(t),r=e.getNode(n);if(o.parentId===r.id||r.parentId===o.id)return r.parentId===o.id?[o.id,r.id]:[r.id,o.id];const s=[o.id],l=[r.id];let a=o.parentId,i=r.parentId,c=l.indexOf(a)!==-1,u=s.indexOf(i)!==-1,m=!0,D=!0;for(;!u&&!c;)m&&(s.push(a),c=l.indexOf(a)!==-1,m=a!==null,!c&&m&&(a=e.getNode(a).parentId)),D&&!c&&(l.push(i),u=s.indexOf(i)!==-1,D=i!==null,!u&&D&&(i=e.getNode(i).parentId));const d=c?a:i,f=e.getChildrenIds(d),p=s[s.indexOf(d)-1],y=l[l.indexOf(d)-1];return f.indexOf(p)<f.indexOf(y)?[t,n]:[n,t]},Nt=({instance:e,params:t,models:n})=>{const o=h.useRef(null),r=h.useRef(!1),s=h.useRef([]),l=f=>Array.isArray(n.selected.value)?n.selected.value.indexOf(f)!==-1:n.selected.value===f,a=(f,p,y=!1)=>{if(!t.disableSelection){if(y){if(Array.isArray(n.selected.value)){let w;n.selected.value.indexOf(p)!==-1?w=n.selected.value.filter(b=>b!==p):w=[p].concat(n.selected.value),t.onNodeSelect&&t.onNodeSelect(f,w),n.selected.setValue(w)}}else{const w=t.multiSelect?[p]:p;t.onNodeSelect&&t.onNodeSelect(f,w),n.selected.setValue(w)}o.current=p,r.current=!1,s.current=[]}},i=(f,p)=>{const[y,w]=Co(e,f,p),b=[y];let P=y;for(;P!==w;)P=nt(e,P),b.push(P);return b},c=(f,p)=>{let y=n.selected.value.slice();const{start:w,next:b,current:P}=p;!b||!P||(s.current.indexOf(P)===-1&&(s.current=[]),r.current?s.current.indexOf(b)!==-1?(y=y.filter(k=>k===w||k!==P),s.current=s.current.filter(k=>k===w||k!==P)):(y.push(b),s.current.push(b)):(y.push(b),s.current.push(P,b)),t.onNodeSelect&&t.onNodeSelect(f,y),n.selected.setValue(y))},u=(f,p)=>{let y=n.selected.value.slice();const{start:w,end:b}=p;r.current&&(y=y.filter(v=>s.current.indexOf(v)===-1));let P=i(w,b);P=P.filter(v=>!e.isNodeDisabled(v)),s.current=P;let k=y.concat(P);k=k.filter((v,V)=>k.indexOf(v)===V),t.onNodeSelect&&t.onNodeSelect(f,k),n.selected.setValue(k)};return Ge(e,{isNodeSelected:l,selectNode:a,selectRange:(f,p,y=!1)=>{if(t.disableSelection)return;const{start:w=o.current,end:b,current:P}=p;y?c(f,{start:w,next:b,current:P}):w!=null&&b!=null&&u(f,{start:w,end:b}),r.current=!0},rangeSelectToLast:(f,p)=>{o.current||(o.current=p);const y=r.current?o.current:p;e.selectRange(f,{start:y,end:Mt(e)})},rangeSelectToFirst:(f,p)=>{o.current||(o.current=p);const y=r.current?o.current:p;e.selectRange(f,{start:y,end:It(e)})}}),{getRootProps:()=>({"aria-multiselectable":t.multiSelect})}};Nt.models={selected:{controlledProp:"selected",defaultProp:"defaultSelected"}};const ko=[];Nt.getDefaultizedParams=e=>{var t,n,o;return g({},e,{disableSelection:(t=e.disableSelection)!=null?t:!1,multiSelect:(n=e.multiSelect)!=null?n:!1,defaultSelected:(o=e.defaultSelected)!=null?o:e.multiSelect?ko:null})};const Wt=1e3;class Mo{constructor(t=Wt){this.timeouts=new Map,this.cleanupTimeout=Wt,this.cleanupTimeout=t}register(t,n,o){this.timeouts||(this.timeouts=new Map);const r=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(o.cleanupToken)},this.cleanupTimeout);this.timeouts.set(o.cleanupToken,r)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class Io{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,o){this.registry.register(t,n,o)}unregister(t){this.registry.unregister(t)}reset(){}}class To{}function Vo(e){let t=0;return function(o,r,s){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new Io:new Mo);const[l]=h.useState(new To),a=h.useRef(null),i=h.useRef();i.current=s;const c=h.useRef(null);if(!a.current&&i.current){const u=(m,D)=>{if(!D.defaultMuiPrevented){var d;(d=i.current)==null||d.call(i,m,D)}};a.current=o.$$subscribeEvent(r,u),t+=1,c.current={cleanupToken:t},e.registry.register(l,()=>{var m;(m=a.current)==null||m.call(a),a.current=null,c.current=null},c.current)}else!i.current&&a.current&&(a.current(),a.current=null,c.current&&(e.registry.unregister(c.current),c.current=null));h.useEffect(()=>{if(!a.current&&i.current){const u=(m,D)=>{if(!D.defaultMuiPrevented){var d;(d=i.current)==null||d.call(i,m,D)}};a.current=o.$$subscribeEvent(r,u)}return c.current&&e.registry&&(e.registry.unregister(c.current),c.current=null),()=>{var u;(u=a.current)==null||u.call(a),a.current=null}},[o,r])}}const No={registry:null},Ro=Vo(No),Rt=({instance:e,params:t,state:n,setState:o,models:r,rootRef:s})=>{const l=U(d=>{const f=typeof d=="function"?d(n.focusedNodeId):d;o(p=>g({},p,{focusedNodeId:f}))}),a=h.useCallback(d=>n.focusedNodeId===d,[n.focusedNodeId]),i=U((d,f)=>{f&&(l(f),t.onNodeFocus&&t.onNodeFocus(d,f))});Ge(e,{isNodeFocused:a,focusNode:i}),Ro(e,"removeNode",({id:d})=>{l(f=>f===d&&s.current===ot(s.current).activeElement?e.getChildrenIds(null)[0]:f)});const c=d=>f=>{var p;if((p=d.onFocus)==null||p.call(d,f),f.target===f.currentTarget){const y=b=>{const P=e.getNode(b);return P&&(P.parentId==null||e.isNodeExpanded(P.parentId))};let w;Array.isArray(r.selected.value)?w=r.selected.value.find(y):r.selected.value!=null&&y(r.selected.value)&&(w=r.selected.value),w==null&&(w=e.getNavigableChildrenIds(null)[0]),e.focusNode(f,w)}},u=d=>f=>{var p;(p=d.onBlur)==null||p.call(d,f),l(null)},m=e.getNode(n.focusedNodeId),D=m?m.idAttribute:null;return{getRootProps:d=>({onFocus:c(d),onBlur:u(d),"aria-activedescendant":D??void 0})}};Rt.getInitialState=()=>({focusedNodeId:null});Rt.getDefaultizedParams=e=>{var t;return g({},e,{disabledItemsFocusable:(t=e.disabledItemsFocusable)!=null?t:!1})};function Eo(e){return e&&e.length===1&&e.match(/\S/)}function zt(e,t,n){for(let o=t;o<e.length;o+=1)if(n===e[o])return o;return-1}const Fo=({instance:e,params:t,state:n})=>{const r=je().direction==="rtl",s=h.useRef({}),l=U((d,f)=>(s.current[d]=f,()=>{const p=g({},s.current);delete p[d],s.current=p}));Ge(e,{mapFirstChar:l});const a=d=>(n.focusedNodeId!=null&&e.isNodeExpandable(n.focusedNodeId)&&(e.isNodeExpanded(n.focusedNodeId)?e.focusNode(d,nt(e,n.focusedNodeId)):e.isNodeDisabled(n.focusedNodeId)||e.toggleNodeExpansion(d,n.focusedNodeId)),!0),i=d=>{if(n.focusedNodeId==null)return!1;if(e.isNodeExpanded(n.focusedNodeId)&&!e.isNodeDisabled(n.focusedNodeId))return e.toggleNodeExpansion(d,n.focusedNodeId),!0;const f=e.getNode(n.focusedNodeId).parentId;return f?(e.focusNode(d,f),!0):!1},c=(d,f,p)=>{let y,w;const b=p.toLowerCase(),P=[],k=[];Object.keys(s.current).forEach(v=>{const V=e.getNode(v),T=V.parentId?e.isNodeExpanded(V.parentId):!0,E=t.disabledItemsFocusable?!1:e.isNodeDisabled(v);T&&!E&&(P.push(v),k.push(s.current[v]))}),y=P.indexOf(f)+1,y>=P.length&&(y=0),w=zt(k,y,b),w===-1&&(w=zt(k,0,b)),w>-1&&e.focusNode(d,P[w])},u=(d,f)=>{e.isNodeDisabled(nt(e,f))||e.selectRange(d,{end:nt(e,f),current:f},!0)},m=(d,f)=>{e.isNodeDisabled(Ct(e,f))||e.selectRange(d,{end:Ct(e,f),current:f},!0)},D=d=>f=>{var p;(p=d.onKeyDown)==null||p.call(d,f);let y=!1;const w=f.key;if(f.altKey||f.currentTarget!==f.target||n.focusedNodeId==null)return;const b=f.ctrlKey||f.metaKey;switch(w){case" ":!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&(y=!0,t.multiSelect&&f.shiftKey?e.selectRange(f,{end:n.focusedNodeId}):t.multiSelect?e.selectNode(f,n.focusedNodeId,!0):e.selectNode(f,n.focusedNodeId)),f.stopPropagation();break;case"Enter":e.isNodeDisabled(n.focusedNodeId)||(e.isNodeExpandable(n.focusedNodeId)?(e.toggleNodeExpansion(f,n.focusedNodeId),y=!0):t.disableSelection||(y=!0,t.multiSelect?e.selectNode(f,n.focusedNodeId,!0):e.selectNode(f,n.focusedNodeId))),f.stopPropagation();break;case"ArrowDown":t.multiSelect&&f.shiftKey&&!t.disableSelection&&u(f,n.focusedNodeId),e.focusNode(f,nt(e,n.focusedNodeId)),y=!0;break;case"ArrowUp":t.multiSelect&&f.shiftKey&&!t.disableSelection&&m(f,n.focusedNodeId),e.focusNode(f,Ct(e,n.focusedNodeId)),y=!0;break;case"ArrowRight":r?y=i(f):y=a(f);break;case"ArrowLeft":r?y=a(f):y=i(f);break;case"Home":t.multiSelect&&b&&f.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToFirst(f,n.focusedNodeId),e.focusNode(f,It(e)),y=!0;break;case"End":t.multiSelect&&b&&f.shiftKey&&!t.disableSelection&&!e.isNodeDisabled(n.focusedNodeId)&&e.rangeSelectToLast(f,n.focusedNodeId),e.focusNode(f,Mt(e)),y=!0;break;default:w==="*"?(e.expandAllSiblings(f,n.focusedNodeId),y=!0):t.multiSelect&&b&&w.toLowerCase()==="a"&&!t.disableSelection?(e.selectRange(f,{start:It(e),end:Mt(e)}),y=!0):!b&&!f.shiftKey&&Eo(w)&&(c(f,n.focusedNodeId,w),y=!0)}y&&(f.preventDefault(),f.stopPropagation())};return{getRootProps:d=>({onKeyDown:D(d)})}},Ao=({instance:e,params:t})=>{const n=ft(t.id);return{getRootProps:()=>({id:n}),contextValue:{treeId:n,instance:e,multiSelect:t.multiSelect,disabledItemsFocusable:t.disabledItemsFocusable,icons:{defaultCollapseIcon:t.defaultCollapseIcon,defaultEndIcon:t.defaultEndIcon,defaultExpandIcon:t.defaultExpandIcon,defaultParentIcon:t.defaultParentIcon}}}},Oo=[vo,Vt,Nt,Rt,Fo,Ao],$o=["disabledItemsFocusable","expanded","defaultExpanded","onNodeToggle","onNodeFocus","disableSelection","defaultSelected","selected","multiSelect","onNodeSelect","id","defaultCollapseIcon","defaultEndIcon","defaultExpandIcon","defaultParentIcon","children"],Lo=e=>{const{classes:t}=e;return ge({root:["root"]},io,t)},Ht=q("ul",{name:"MuiTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0}),Dl=h.forwardRef(function(t,n){const o=he({props:t,name:"MuiTreeView"}),r=o,s=o,{disabledItemsFocusable:l,expanded:a,defaultExpanded:i,onNodeToggle:c,onNodeFocus:u,disableSelection:m,defaultSelected:D,selected:d,multiSelect:f,onNodeSelect:p,id:y,defaultCollapseIcon:w,defaultEndIcon:b,defaultExpandIcon:P,defaultParentIcon:k,children:v}=s,V=oe(s,$o),{getRootProps:T,contextValue:E}=mo({disabledItemsFocusable:l,expanded:a,defaultExpanded:i,onNodeToggle:c,onNodeFocus:u,disableSelection:m,defaultSelected:D,selected:d,multiSelect:f,onNodeSelect:p,id:y,defaultCollapseIcon:w,defaultEndIcon:b,defaultExpandIcon:P,defaultParentIcon:k,plugins:Oo,rootRef:n}),S=Lo(o),j=pe({elementType:Ht,externalSlotProps:{},externalForwardedProps:V,className:S.root,getSlotProps:T,ownerState:r});return C.jsx(Do,{value:E,children:C.jsx(Ht,g({},j,{children:v}))})}),pn=()=>h.useContext(un);function _o(e){const{instance:t,multiSelect:n}=pn(),o=t?t.isNodeExpandable(e):!1,r=t?t.isNodeExpanded(e):!1,s=t?t.isNodeFocused(e):!1,l=t?t.isNodeSelected(e):!1,a=t?t.isNodeDisabled(e):!1;return{disabled:a,expanded:r,selected:l,focused:s,handleExpansion:m=>{if(t&&!a){s||t.focusNode(m,e);const D=n&&(m.shiftKey||m.ctrlKey||m.metaKey);o&&!(D&&t.isNodeExpanded(e))&&t.toggleNodeExpansion(m,e)}},handleSelection:m=>{t&&!a&&(s||t.focusNode(m,e),n&&(m.shiftKey||m.ctrlKey||m.metaKey)?m.shiftKey?t.selectRange(m,{end:e}):t.selectNode(m,e,!0):t.selectNode(m,e))},preventSelection:m=>{(m.shiftKey||m.ctrlKey||m.metaKey||a)&&m.preventDefault()}}}const Bo=["classes","className","displayIcon","expansionIcon","icon","label","nodeId","onClick","onMouseDown"],hn=h.forwardRef(function(t,n){const{classes:o,className:r,displayIcon:s,expansionIcon:l,icon:a,label:i,nodeId:c,onClick:u,onMouseDown:m}=t,D=oe(t,Bo),{disabled:d,expanded:f,selected:p,focused:y,handleExpansion:w,handleSelection:b,preventSelection:P}=_o(c),k=a||l||s,v=T=>{P(T),m&&m(T)},V=T=>{w(T),b(T),u&&u(T)};return C.jsxs("div",g({},D,{className:ye(r,o.root,f&&o.expanded,p&&o.selected,y&&o.focused,d&&o.disabled),onClick:V,onMouseDown:v,ref:n,children:[C.jsx("div",{className:o.iconContainer,children:k}),C.jsx("div",{className:o.label,children:i})]}))});function jo(e){return be("MuiTreeItem",e)}const Ae=xe("MuiTreeItem",["root","group","content","expanded","selected","focused","disabled","iconContainer","label"]),Wo=["children","className","collapseIcon","ContentComponent","ContentProps","endIcon","expandIcon","disabled","icon","id","label","nodeId","onClick","onMouseDown","TransitionComponent","TransitionProps"],zo=e=>{const{classes:t}=e;return ge({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],label:["label"],group:["group"]},jo,t)},Ho=q("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Uo=q(hn,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Ae.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Ae.label}`]:t.label}]})(({theme:e})=>({padding:"0 8px",width:"100%",boxSizing:"border-box",display:"flex",alignItems:"center",cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ae.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Ae.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ae.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Te(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Te(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Te(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ae.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Te(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Ae.iconContainer}`]:{marginRight:4,width:15,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Ae.label}`]:g({paddingLeft:4,width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1)})),Yo=q(tn,{name:"MuiTreeItem",slot:"Group",overridesResolver:(e,t)=>t.group})({margin:0,padding:0,marginLeft:17}),Pl=h.forwardRef(function(t,n){const o=he({props:t,name:"MuiTreeItem"}),{children:r,className:s,collapseIcon:l,ContentComponent:a=hn,ContentProps:i,endIcon:c,expandIcon:u,disabled:m,icon:D,id:d,label:f,nodeId:p,onClick:y,onMouseDown:w,TransitionComponent:b=tn,TransitionProps:P}=o,k=oe(o,Wo),{icons:v,multiSelect:V,disabledItemsFocusable:T,treeId:E,instance:S}=pn();let j;d!=null?j=d:E&&p&&(j=`${E}-${p}`);const[N,L]=h.useState(null),$=h.useRef(null),I=Ve(L,n),M=h.useMemo(()=>({element:N,id:p}),[p,N]),{index:B,parentId:Y}=wo(M),_=!!(Array.isArray(r)?r.length:r),H=S?S.isNodeExpanded(p):!1,G=S?S.isNodeFocused(p):!1,le=S?S.isNodeSelected(p):!1,ae=S?S.isNodeDisabled(p):!1,ie=g({},o,{expanded:H,focused:G,selected:le,disabled:ae}),A=zo(ie);let K,re;_&&(H?re=l||v.defaultCollapseIcon:re=u||v.defaultExpandIcon),_?K=v.defaultParentIcon:K=c||v.defaultEndIcon,h.useEffect(()=>{if(S&&B!==-1)return S.updateNode({id:p,idAttribute:j,index:B,parentId:Y,expandable:_,disabled:m}),()=>S.removeNode(p)},[S,Y,B,p,_,m,j]),h.useEffect(()=>{if(S&&f){var te,se;return S.mapFirstChar(p,((te=(se=$.current)==null?void 0:se.textContent)!=null?te:"").substring(0,1).toLowerCase())}},[S,p,f]);let R;V?R=le:le&&(R=!0);function Z(te){if(te.target===te.currentTarget){let W;typeof te.target.getRootNode=="function"?W=te.target.getRootNode():W=ot(te.target),W.getElementById(E).focus({preventScroll:!0})}const se=!T&&ae;S&&!G&&te.currentTarget===te.target&&!se&&S.focusNode(te,p)}return C.jsxs(Ho,g({className:ye(A.root,s),role:"treeitem","aria-expanded":_?H:void 0,"aria-selected":R,"aria-disabled":ae||void 0,id:j,tabIndex:-1},k,{ownerState:ie,onFocus:Z,ref:I,children:[C.jsx(Uo,g({as:a,ref:$,classes:{root:A.content,expanded:A.expanded,selected:A.selected,focused:A.focused,disabled:A.disabled,iconContainer:A.iconContainer,label:A.label},label:f,nodeId:p,onClick:y,onMouseDown:w,icon:D,expansionIcon:re,displayIcon:K,ownerState:ie},i)),r&&C.jsx(fn,{id:p,children:C.jsx(Yo,g({as:b,unmountOnExit:!0,className:A.group,in:H,component:"ul",role:"group"},P,{children:r}))})]}))}),Ko=["localeText"],Tt=h.createContext(null),mn=function(t){var n;const{localeText:o}=t,r=oe(t,Ko),{utils:s,localeText:l}=(n=h.useContext(Tt))!=null?n:{utils:void 0,localeText:void 0},a=he({props:r,name:"MuiLocalizationProvider"}),{children:i,dateAdapter:c,dateFormats:u,dateLibInstance:m,adapterLocale:D,localeText:d}=a,f=h.useMemo(()=>g({},d,l,o),[d,l,o]),p=h.useMemo(()=>{if(!c)return s||null;const b=new c({locale:D,formats:u,instance:m});if(!b.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
2
2
|
`));return b},[c,D,u,m,s]),y=h.useMemo(()=>p?{minDate:p.date("1900-01-01T00:00:00.000"),maxDate:p.date("2099-12-31T00:00:00.000")}:null,[p]),w=h.useMemo(()=>({utils:p,defaultDates:y,localeText:f}),[y,p,f]);return C.jsx(Tt.Provider,{value:w,children:i})},Go=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:g({},e)}}}}),gn={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear value",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},Qo=gn;Go(gn);const We=()=>{const e=h.useContext(Tt);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(`
|
|
3
3
|
`));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(`
|
|
4
4
|
`));const t=h.useMemo(()=>g({},Qo,e.localeText),[e.localeText]);return h.useMemo(()=>g({},e,{localeText:t}),[e,t])},ce=()=>We().utils,at=()=>We().defaultDates,Le=()=>We().localeText,mt=e=>{const t=ce(),n=h.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current},qo=$e(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Zo=$e(C.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Xo=$e(C.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Jo=$e(C.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");$e(C.jsxs(h.Fragment,{children:[C.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),C.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");$e(C.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange");$e(C.jsxs(h.Fragment,{children:[C.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),C.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");const er=$e(C.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function tr(e){return be("MuiPickersArrowSwitcher",e)}xe("MuiPickersArrowSwitcher",["root","spacer","button"]);const nr=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],or=["ownerState"],rr=["ownerState"],sr=q("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),ar=q("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),Ut=q(pt,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>g({},e.hidden&&{visibility:"hidden"})),lr=e=>{const{classes:t}=e;return ge({root:["root"],spacer:["spacer"],button:["button"]},tr,t)},ir=h.forwardRef(function(t,n){var o,r,s,l;const i=je().direction==="rtl",c=he({props:t,name:"MuiPickersArrowSwitcher"}),{children:u,className:m,slots:D,slotProps:d,isNextDisabled:f,isNextHidden:p,onGoToNext:y,nextLabel:w,isPreviousDisabled:b,isPreviousHidden:P,onGoToPrevious:k,previousLabel:v}=c,V=oe(c,nr),T=c,E=lr(T),S={isDisabled:f,isHidden:p,goTo:y,label:w},j={isDisabled:b,isHidden:P,goTo:k,label:v},N=(o=D==null?void 0:D.previousIconButton)!=null?o:Ut,L=pe({elementType:N,externalSlotProps:d==null?void 0:d.previousIconButton,additionalProps:{size:"medium",title:j.label,"aria-label":j.label,disabled:j.isDisabled,edge:"end",onClick:j.goTo},ownerState:g({},T,{hidden:j.isHidden}),className:E.button}),$=(r=D==null?void 0:D.nextIconButton)!=null?r:Ut,I=pe({elementType:$,externalSlotProps:d==null?void 0:d.nextIconButton,additionalProps:{size:"medium",title:S.label,"aria-label":S.label,disabled:S.isDisabled,edge:"start",onClick:S.goTo},ownerState:g({},T,{hidden:S.isHidden}),className:E.button}),M=(s=D==null?void 0:D.leftArrowIcon)!=null?s:Zo,B=pe({elementType:M,externalSlotProps:d==null?void 0:d.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),Y=oe(B,or),_=(l=D==null?void 0:D.rightArrowIcon)!=null?l:Xo,H=pe({elementType:_,externalSlotProps:d==null?void 0:d.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),G=oe(H,rr);return C.jsxs(sr,g({ref:n,className:ye(E.root,m),ownerState:T},V,{children:[C.jsx(N,g({},L,{children:i?C.jsx(_,g({},G)):C.jsx(M,g({},Y))})),u?C.jsx(Ke,{variant:"subtitle1",component:"span",children:u}):C.jsx(ar,{className:E.spacer,ownerState:T}),C.jsx($,g({},I,{children:i?C.jsx(M,g({},Y)):C.jsx(_,g({},G))}))]}))}),Je=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),cr=({openTo:e,defaultOpenTo:t,views:n,defaultViews:o})=>{const r=n??o;let s;if(e!=null)s=e;else if(r.includes(t))s=t;else if(r.length>0)s=r[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:r,openTo:s}},ur=["hours","minutes","seconds"],dr=e=>ur.includes(e),Yt=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),fr=(e,t)=>(n,o)=>e?t.isAfter(n,o):Yt(n,t)>Yt(o,t);function yn({onChange:e,onViewChange:t,openTo:n,view:o,views:r,autoFocus:s,focusedView:l,onFocusedViewChange:a}){var i,c;const u=h.useRef(n),m=h.useRef(r),D=h.useRef(r.includes(n)?n:r[0]),[d,f]=Oe({name:"useViews",state:"view",controlled:o,default:D.current}),p=h.useRef(s?d:null),[y,w]=Oe({name:"useViews",state:"focusedView",controlled:l,default:p.current});h.useEffect(()=>{(u.current&&u.current!==n||m.current&&m.current.some(S=>!r.includes(S)))&&(f(r.includes(n)?n:r[0]),m.current=r,u.current=n)},[n,f,d,r]);const b=r.indexOf(d),P=(i=r[b-1])!=null?i:null,k=(c=r[b+1])!=null?c:null,v=U((S,j)=>{w(j?S:N=>S===N?null:N),a==null||a(S,j)}),V=U(S=>{v(S,!0),S!==d&&(f(S),t&&t(S))}),T=U(()=>{k&&V(k)}),E=U((S,j,N)=>{const L=j==="finish",$=N?r.indexOf(N)<r.length-1:!!k;if(e(S,L&&$?"partial":j,N),N&&N!==d){const M=r[r.indexOf(N)+1];M&&V(M)}else L&&T()});return{view:d,setView:V,focusedView:y,setFocusedView:v,nextView:k,previousView:P,defaultView:r.includes(n)?n:r[0],goToNextView:T,setValueAndGoToNextView:E}}function pr(e,{disableFuture:t,maxDate:n,timezone:o}){const r=ce();return h.useMemo(()=>{const s=r.dateWithTimezone(void 0,o),l=r.startOfMonth(t&&r.isBefore(s,n)?s:n);return!r.isAfter(l,e)},[t,n,e,r,o])}function hr(e,{disablePast:t,minDate:n,timezone:o}){const r=ce();return h.useMemo(()=>{const s=r.dateWithTimezone(void 0,o),l=r.startOfMonth(t&&r.isAfter(s,n)?s:n);return!r.isBefore(l,e)},[t,n,e,r,o])}const st=36,gt=2,yt=320,mr=280,Et=334,gr=q("div")({overflow:"hidden",width:yt,maxHeight:Et,display:"flex",flexDirection:"column",margin:"0 auto"}),ut=(e,t,n)=>{let o=t;return o=e.setHours(o,e.getHours(n)),o=e.setMinutes(o,e.getMinutes(n)),o=e.setSeconds(o,e.getSeconds(n)),o},rt=({date:e,disableFuture:t,disablePast:n,maxDate:o,minDate:r,isDateDisabled:s,utils:l,timezone:a})=>{const i=ut(l,l.dateWithTimezone(void 0,a),e);n&&l.isBefore(r,i)&&(r=i),t&&l.isAfter(o,i)&&(o=i);let c=e,u=e;for(l.isBefore(e,r)&&(c=r,u=null),l.isAfter(e,o)&&(u&&(u=o),c=null);c||u;){if(c&&l.isAfter(c,o)&&(c=null),u&&l.isBefore(u,r)&&(u=null),c){if(!s(c))return c;c=l.addDays(c,1)}if(u){if(!s(u))return u;u=l.addDays(u,-1)}}return null},yr=(e,t)=>t==null||!e.isValid(t)?null:t,Se=(e,t,n)=>t==null||!e.isValid(t)?n:t,br=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Ft=(e,t)=>{const o=[e.startOfYear(t)];for(;o.length<12;){const r=o[o.length-1];o.push(e.addMonths(r,1))}return o},bn=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),xr=["year","month","day"],Kt=e=>xr.includes(e),At=(e,{format:t,views:n},o)=>{if(t!=null)return t;const r=e.formats;return Je(n,["year"])?r.year:Je(n,["month"])?r.month:Je(n,["day"])?r.dayOfMonth:Je(n,["month","year"])?`${r.month} ${r.year}`:Je(n,["day","month"])?`${r.month} ${r.dayOfMonth}`:o?/en/.test(e.getCurrentLocaleCode())?r.normalDateWithWeekday:r.normalDate:r.keyboardDate},wr=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(o=>e.addDays(n,o))},Ot=({timezone:e,value:t,defaultValue:n,onChange:o,valueManager:r})=>{var s,l;const a=ce(),i=h.useRef(n),c=(s=t??i.current)!=null?s:r.emptyValue,u=h.useMemo(()=>r.getTimezone(a,c),[a,r,c]),m=U(p=>u==null?p:r.setTimezone(a,u,p)),D=(l=e??u)!=null?l:"default",d=h.useMemo(()=>r.setTimezone(a,D,c),[r,a,D,c]),f=U((p,...y)=>{const w=m(p);o==null||o(w,...y)});return{value:d,handleValueChange:f,timezone:D}},$t=({name:e,timezone:t,value:n,defaultValue:o,onChange:r,valueManager:s})=>{const[l,a]=Oe({name:e,state:"value",controlled:n,default:o??s.emptyValue}),i=U((c,...u)=>{a(c),r==null||r(c,...u)});return Ot({timezone:t,value:l,defaultValue:void 0,onChange:i,valueManager:s})},Ie={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},Dr=e=>Math.max(...e.map(t=>{var n;return(n=Ie[t.type])!=null?n:1})),et=(e,t,n)=>{if(t===Ie.year)return e.startOfYear(n);if(t===Ie.month)return e.startOfMonth(n);if(t===Ie.day)return e.startOfDay(n);let o=n;return t<Ie.minutes&&(o=e.setMinutes(o,0)),t<Ie.seconds&&(o=e.setSeconds(o,0)),t<Ie.milliseconds&&(o=e.setMilliseconds(o,0)),o},Pr=({props:e,utils:t,granularity:n,timezone:o,getTodayDate:r})=>{var s;let l=r?r():et(t,n,bn(t,o));e.minDate!=null&&t.isAfterDay(e.minDate,l)&&(l=et(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,l)&&(l=et(t,n,e.maxDate));const a=fr((s=e.disableIgnoringDatePartForTimeValidation)!=null?s:!1,t);return e.minTime!=null&&a(e.minTime,l)&&(l=et(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:ut(t,l,e.minTime))),e.maxTime!=null&&a(l,e.maxTime)&&(l=et(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:ut(t,l,e.maxTime))),l},xn=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as _,L as i}from"./vendor-arcblock-
|
|
1
|
+
import{f as _,L as i}from"./vendor-arcblock-Dn16DH88.js";import{x as u,_ as e}from"./index-tDqjC_e2.js";import{j as r}from"./vendor-mui-core-COxJgW9_.js";const a={en:_(u),ar:()=>e(()=>import("./ar-DJ10cGfc.js"),[]).then(t=>_(t.default)),de:()=>e(()=>import("./de-5ORoKwiw.js"),[]).then(t=>_(t.default)),es:()=>e(()=>import("./es-CWClvbjs.js"),[]).then(t=>_(t.default)),fr:()=>e(()=>import("./fr-CE8mlhdK.js"),[]).then(t=>_(t.default)),hi:()=>e(()=>import("./hi-DVuJdQme.js"),[]).then(t=>_(t.default)),id:()=>e(()=>import("./id-L6JUyxUh.js"),[]).then(t=>_(t.default)),ja:()=>e(()=>import("./ja-C5orBePq.js"),[]).then(t=>_(t.default)),ko:()=>e(()=>import("./ko-BeIurXFC.js"),[]).then(t=>_(t.default)),pt:()=>e(()=>import("./pt-BED0VqHV.js"),[]).then(t=>_(t.default)),ru:()=>e(()=>import("./ru-B5wj2v7e.js"),[]).then(t=>_(t.default)),th:()=>e(()=>import("./th-CKxPcxWD.js"),[]).then(t=>_(t.default)),vi:()=>e(()=>import("./vi-DsheN6LQ.js"),[]).then(t=>_(t.default)),"zh-TW":()=>e(()=>import("./zh-tw-B_su4eMW.js"),[]).then(t=>_(t.default)),zh:()=>e(()=>import("./zh-BJMvTFip.js"),[]).then(t=>_(t.default))};function f(t){return function(o){return r.jsx(i,{translations:a,children:r.jsx(t,{...o})})}}export{f as w};
|
package/dist/index.html
CHANGED
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
background-color: transparent;
|
|
16
16
|
}
|
|
17
17
|
</style>
|
|
18
|
-
<script type="module" crossorigin src="/.well-known/service/static/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/.well-known/service/static/assets/index-tDqjC_e2.js"></script>
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-react-D-afvo_7.js">
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-mui-core-
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-mui-core-COxJgW9_.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-utils-CV7RLr7b.js">
|
|
22
|
-
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-hooks-
|
|
23
|
-
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-arcblock-
|
|
22
|
+
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-hooks-DzETutIU.js">
|
|
23
|
+
<link rel="modulepreload" crossorigin href="/.well-known/service/static/assets/vendor-arcblock-Dn16DH88.js">
|
|
24
24
|
<link rel="stylesheet" crossorigin href="/.well-known/service/static/assets/vendor-arcblock-DhgPdlEj.css">
|
|
25
25
|
</head>
|
|
26
26
|
|