From e21e7eeb74ad309944045baf6c39edcbcc78ca9f Mon Sep 17 00:00:00 2001 From: gabek Date: Sat, 10 Sep 2022 03:28:47 +0000 Subject: [PATCH] Bundle embedded web app --- static/web/404.html | 4 ++-- static/web/404/index.html | 4 ++-- static/web/_next/static/chunks/143-5f87758fe2f58ec4.js | 1 + static/web/_next/static/chunks/143-b5aed5f9f5ac6332.js | 1 - static/web/_next/static/chunks/1899-30441a4a083a1929.js | 1 - static/web/_next/static/chunks/1899-3b9a903aaac3a42c.js | 1 + static/web/_next/static/chunks/2854-93263508ffa265f3.js | 1 - static/web/_next/static/chunks/2854-f24d343afbc03b5b.js | 1 + static/web/_next/static/chunks/2877-4ee8a344719d3523.js | 1 + static/web/_next/static/chunks/2877-6814b98389ffaf4c.js | 1 - .../{927-f6193b1a63a6a532.js => 927-8d644c10fb3512bc.js} | 2 +- static/web/_next/static/chunks/9640-3eea7e3561a5f3d4.js | 1 - static/web/_next/static/chunks/9640-a9765e176df0f25f.js | 1 + static/web/_next/static/chunks/main-04a633f9c14e298c.js | 1 + static/web/_next/static/chunks/main-43d3d12d262e745e.js | 1 - .../{_app-b79e351860a8ab9a.js => _app-b32bc83ff89a60fc.js} | 2 +- .../web/_next/static/chunks/pages/admin-86fc9efba85a2d2a.js | 1 - .../web/_next/static/chunks/pages/admin-b77b5e3dc8f81eef.js | 1 + .../chunks/pages/admin/access-tokens-0ab9b0c44a0a00a7.js | 1 + .../chunks/pages/admin/access-tokens-edfa7d486c373d27.js | 1 - .../static/chunks/pages/admin/actions-db055fbf43fdc231.js | 1 + .../static/chunks/pages/admin/actions-e4b7343c28fc404f.js | 1 - .../chunks/pages/admin/chat/messages-1b67ebaecf96e8c1.js | 1 + .../chunks/pages/admin/chat/messages-416e0fc36f47c37b.js | 1 - .../static/chunks/pages/admin/chat/users-57229fa608c9d9d5.js | 1 + .../static/chunks/pages/admin/chat/users-80f5d1f9202c080a.js | 1 - .../static/chunks/pages/admin/config-chat-688dfbe4ade3c227.js | 1 - .../static/chunks/pages/admin/config-chat-826dceb82d133fca.js | 1 + .../chunks/pages/admin/config-federation-08897e2247bf43bd.js | 1 + .../chunks/pages/admin/config-federation-969b1f9d79b36180.js | 1 - .../chunks/pages/admin/config-notify-1f3364933802139b.js | 1 - .../chunks/pages/admin/config-notify-f36f296594904599.js | 1 + .../pages/admin/config-public-details-e92784f78b3a703a.js | 1 + .../pages/admin/config-public-details-e95ba4b59c8c37fc.js | 1 - .../pages/admin/config-server-details-16e85ec1ac7c9ccd.js | 1 + .../pages/admin/config-server-details-dd28e9451cddb2d6.js | 1 - .../chunks/pages/admin/config-storage-2770e946c0ce51a8.js | 1 - .../chunks/pages/admin/config-storage-a04c6b9cc63b11fd.js | 1 + .../chunks/pages/admin/config-video-497c67ced3b362ed.js | 1 + .../chunks/pages/admin/config-video-8181bf81ff75973a.js | 1 - .../chunks/pages/admin/federation/actions-ab1a4849f44c9632.js | 1 + .../chunks/pages/admin/federation/actions-e38c2e59e9286c08.js | 1 - .../pages/admin/federation/followers-1c8e5c7c03ea2d59.js | 1 - .../pages/admin/federation/followers-480c1feece872b8f.js | 1 + .../chunks/pages/admin/hardware-info-4574e94bc49c9046.js | 1 + .../chunks/pages/admin/hardware-info-cfc7d28a649978b3.js | 1 - .../_next/static/chunks/pages/admin/logs-92a12ac554e301e4.js | 1 + .../_next/static/chunks/pages/admin/logs-bf2cc95d9c23a433.js | 1 - .../chunks/pages/admin/stream-health-3c90e20fa25d3312.js | 1 - .../chunks/pages/admin/stream-health-681b3896ade2a908.js | 1 + .../static/chunks/pages/admin/upgrade-40df3b7b7fdad668.js | 1 + .../static/chunks/pages/admin/upgrade-e1843c8d9a4adc4d.js | 1 - .../static/chunks/pages/admin/viewer-info-1681a662e9c50821.js | 1 + .../static/chunks/pages/admin/viewer-info-d8428fbee9d0464e.js | 1 - .../static/chunks/pages/admin/webhooks-1ecf0232db942800.js | 1 - .../static/chunks/pages/admin/webhooks-74e38177f6de73f1.js | 1 + .../web/_next/static/chunks/pages/index-7c022fd27e46dc59.js | 1 - .../web/_next/static/chunks/pages/index-8fe64148584f4be7.js | 1 + .../_buildManifest.js | 2 +- .../_ssgManifest.js | 0 static/web/admin/access-tokens/index.html | 2 +- static/web/admin/actions/index.html | 2 +- static/web/admin/chat/messages/index.html | 2 +- static/web/admin/chat/users/index.html | 2 +- static/web/admin/config-chat/index.html | 2 +- static/web/admin/config-federation/index.html | 2 +- static/web/admin/config-notify/index.html | 2 +- static/web/admin/config-public-details/index.html | 2 +- static/web/admin/config-server-details/index.html | 2 +- static/web/admin/config-social-items/index.html | 2 +- static/web/admin/config-storage/index.html | 2 +- static/web/admin/config-video/index.html | 2 +- static/web/admin/federation/actions/index.html | 2 +- static/web/admin/federation/followers/index.html | 2 +- static/web/admin/hardware-info/index.html | 2 +- static/web/admin/help/index.html | 2 +- static/web/admin/index.html | 2 +- static/web/admin/logs/index.html | 2 +- static/web/admin/stream-health/index.html | 2 +- static/web/admin/upgrade/index.html | 2 +- static/web/admin/viewer-info/index.html | 2 +- static/web/admin/webhooks/index.html | 2 +- static/web/embed/chat/readonly/index.html | 2 +- static/web/embed/chat/readwrite/index.html | 2 +- static/web/embed/video/index.html | 2 +- static/web/index.html | 2 +- 86 files changed, 60 insertions(+), 60 deletions(-) create mode 100644 static/web/_next/static/chunks/143-5f87758fe2f58ec4.js delete mode 100644 static/web/_next/static/chunks/143-b5aed5f9f5ac6332.js delete mode 100644 static/web/_next/static/chunks/1899-30441a4a083a1929.js create mode 100644 static/web/_next/static/chunks/1899-3b9a903aaac3a42c.js delete mode 100644 static/web/_next/static/chunks/2854-93263508ffa265f3.js create mode 100644 static/web/_next/static/chunks/2854-f24d343afbc03b5b.js create mode 100644 static/web/_next/static/chunks/2877-4ee8a344719d3523.js delete mode 100644 static/web/_next/static/chunks/2877-6814b98389ffaf4c.js rename static/web/_next/static/chunks/{927-f6193b1a63a6a532.js => 927-8d644c10fb3512bc.js} (65%) delete mode 100644 static/web/_next/static/chunks/9640-3eea7e3561a5f3d4.js create mode 100644 static/web/_next/static/chunks/9640-a9765e176df0f25f.js create mode 100644 static/web/_next/static/chunks/main-04a633f9c14e298c.js delete mode 100644 static/web/_next/static/chunks/main-43d3d12d262e745e.js rename static/web/_next/static/chunks/pages/{_app-b79e351860a8ab9a.js => _app-b32bc83ff89a60fc.js} (90%) delete mode 100644 static/web/_next/static/chunks/pages/admin-86fc9efba85a2d2a.js create mode 100644 static/web/_next/static/chunks/pages/admin-b77b5e3dc8f81eef.js create mode 100644 static/web/_next/static/chunks/pages/admin/access-tokens-0ab9b0c44a0a00a7.js delete mode 100644 static/web/_next/static/chunks/pages/admin/access-tokens-edfa7d486c373d27.js create mode 100644 static/web/_next/static/chunks/pages/admin/actions-db055fbf43fdc231.js delete mode 100644 static/web/_next/static/chunks/pages/admin/actions-e4b7343c28fc404f.js create mode 100644 static/web/_next/static/chunks/pages/admin/chat/messages-1b67ebaecf96e8c1.js delete mode 100644 static/web/_next/static/chunks/pages/admin/chat/messages-416e0fc36f47c37b.js create mode 100644 static/web/_next/static/chunks/pages/admin/chat/users-57229fa608c9d9d5.js delete mode 100644 static/web/_next/static/chunks/pages/admin/chat/users-80f5d1f9202c080a.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-chat-688dfbe4ade3c227.js create mode 100644 static/web/_next/static/chunks/pages/admin/config-chat-826dceb82d133fca.js create mode 100644 static/web/_next/static/chunks/pages/admin/config-federation-08897e2247bf43bd.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-federation-969b1f9d79b36180.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-notify-1f3364933802139b.js create mode 100644 static/web/_next/static/chunks/pages/admin/config-notify-f36f296594904599.js create mode 100644 static/web/_next/static/chunks/pages/admin/config-public-details-e92784f78b3a703a.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-public-details-e95ba4b59c8c37fc.js create mode 100644 static/web/_next/static/chunks/pages/admin/config-server-details-16e85ec1ac7c9ccd.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-server-details-dd28e9451cddb2d6.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-storage-2770e946c0ce51a8.js create mode 100644 static/web/_next/static/chunks/pages/admin/config-storage-a04c6b9cc63b11fd.js create mode 100644 static/web/_next/static/chunks/pages/admin/config-video-497c67ced3b362ed.js delete mode 100644 static/web/_next/static/chunks/pages/admin/config-video-8181bf81ff75973a.js create mode 100644 static/web/_next/static/chunks/pages/admin/federation/actions-ab1a4849f44c9632.js delete mode 100644 static/web/_next/static/chunks/pages/admin/federation/actions-e38c2e59e9286c08.js delete mode 100644 static/web/_next/static/chunks/pages/admin/federation/followers-1c8e5c7c03ea2d59.js create mode 100644 static/web/_next/static/chunks/pages/admin/federation/followers-480c1feece872b8f.js create mode 100644 static/web/_next/static/chunks/pages/admin/hardware-info-4574e94bc49c9046.js delete mode 100644 static/web/_next/static/chunks/pages/admin/hardware-info-cfc7d28a649978b3.js create mode 100644 static/web/_next/static/chunks/pages/admin/logs-92a12ac554e301e4.js delete mode 100644 static/web/_next/static/chunks/pages/admin/logs-bf2cc95d9c23a433.js delete mode 100644 static/web/_next/static/chunks/pages/admin/stream-health-3c90e20fa25d3312.js create mode 100644 static/web/_next/static/chunks/pages/admin/stream-health-681b3896ade2a908.js create mode 100644 static/web/_next/static/chunks/pages/admin/upgrade-40df3b7b7fdad668.js delete mode 100644 static/web/_next/static/chunks/pages/admin/upgrade-e1843c8d9a4adc4d.js create mode 100644 static/web/_next/static/chunks/pages/admin/viewer-info-1681a662e9c50821.js delete mode 100644 static/web/_next/static/chunks/pages/admin/viewer-info-d8428fbee9d0464e.js delete mode 100644 static/web/_next/static/chunks/pages/admin/webhooks-1ecf0232db942800.js create mode 100644 static/web/_next/static/chunks/pages/admin/webhooks-74e38177f6de73f1.js delete mode 100644 static/web/_next/static/chunks/pages/index-7c022fd27e46dc59.js create mode 100644 static/web/_next/static/chunks/pages/index-8fe64148584f4be7.js rename static/web/_next/static/{Nny6gyHMm1dG2A9mvw1DR => wJ2JCxciUjSBNzmeIwBrj}/_buildManifest.js (53%) rename static/web/_next/static/{Nny6gyHMm1dG2A9mvw1DR => wJ2JCxciUjSBNzmeIwBrj}/_ssgManifest.js (100%) diff --git a/static/web/404.html b/static/web/404.html index 58df247df..bfa1ee11e 100644 --- a/static/web/404.html +++ b/static/web/404.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/404/index.html b/static/web/404/index.html index 58df247df..bfa1ee11e 100644 --- a/static/web/404/index.html +++ b/static/web/404/index.html @@ -1,4 +1,4 @@ -404: This page could not be found

404

This page could not be found.

\ No newline at end of file + }

404

This page could not be found.

\ No newline at end of file diff --git a/static/web/_next/static/chunks/143-5f87758fe2f58ec4.js b/static/web/_next/static/chunks/143-5f87758fe2f58ec4.js new file mode 100644 index 000000000..942a838f2 --- /dev/null +++ b/static/web/_next/static/chunks/143-5f87758fe2f58ec4.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[143],{50143:function(e,t,n){"use strict";n.d(t,{u:function(){return Oe}});var r=n(85893),s=n(71577),a=n(9764),o=n(67294),i=n(36531),c=n(66017),u=n(11622),l=n(13545),d=n.n(l),h=n(14924),m=n(47049),f=n(86492),p=n.n(f),g=n(94184),x=n.n(g),j=n(94199),v=n(29158),_=n(4480),y=n(78583),C=n.n(y);function M(e){var t=new Date(e);if(Number.isNaN(t))return"";if(function(e){var t="string"===typeof e?new Date(e):e;return(new Date-t)/864e5}(e)>=1){var n=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"at ".concat(n," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}var b,N,w,Z,S,k=n(47568),E=n(70655),T=n(11475),B=n(90420),U=n(18429),A=n(64942),D=n(85402),O=n(12461),I=n(66516),P=n(38504),R=n(26713),F=n(25968),L=n(6226),H=n(11382),W=n(51438),J=function(){function e(){(0,W.Z)(this,e)}return e.removeMessage=function(e,t){return(0,k.Z)((function(){var n,r,s;return(0,E.__generator)(this,(function(a){switch(a.label){case 0:return(n=new URL("/api/chat/messagevisibility",window.location.toString())).searchParams.append("accessToken",t),r=n.toString(),(s={}).method="POST",s.headers={"Content-Type":"application/json"},s.body=JSON.stringify({idArray:[e]}),[4,fetch(r,s)];case 1:return a.sent(),[2]}}))}))()},e.banUser=function(e,t){return(0,k.Z)((function(){var n,r,s;return(0,E.__generator)(this,(function(a){switch(a.label){case 0:return(n=new URL("/api/chat/users/setenabled",window.location.toString())).searchParams.append("accessToken",t),r=n.toString(),(s={}).method="POST",s.headers={"Content-Type":"application/json"},s.body=JSON.stringify({id:e}),[4,fetch(r,s)];case 1:return a.sent(),[2]}}))}))()},e}(),V=n(62638),Y=n.n(V),z=function(){var e=(0,k.Z)((function(e,t){return(0,E.__generator)(this,(function(n){try{J.removeMessage(e,t)}catch(r){console.error(r)}return[2]}))}));return function(t,n){return e.apply(this,arguments)}}(),G=function(e){var t=e.label,n=e.value;return(0,r.jsxs)(F.Z,{justify:"space-around",align:"middle",children:[(0,r.jsx)(L.Z,{span:12,children:t}),(0,r.jsx)(L.Z,{span:12,children:n})]})},X=function(e){var t=e.id,n=e.body,a=e.accessToken;return(0,r.jsxs)(F.Z,{justify:"space-around",align:"middle",children:[(0,r.jsx)(L.Z,{span:18,children:n}),(0,r.jsx)(L.Z,{children:(0,r.jsx)(s.Z,{onClick:function(){return z(t,a)},children:"X"})})]})},q=function(e){var t=e.client,n=t.messageCount,s=t.userAgent,a=t.connectedAt,o=t.geo;return(0,r.jsxs)("div",{children:[(0,r.jsx)(G,{label:"Messages Sent",value:"".concat(n)}),(0,r.jsx)(G,{label:"Geo",value:o}),(0,r.jsx)(G,{label:"Connected At",value:a.toString()}),(0,r.jsx)(G,{label:"User Agent",value:s})]})},K=function(e){var t=e.color,n="var(--theme-color-users-".concat(t,")");return(0,r.jsxs)(F.Z,{justify:"space-around",align:"middle",children:[(0,r.jsx)(L.Z,{span:12,children:"Color"}),(0,r.jsx)(L.Z,{span:12,children:(0,r.jsx)("div",{className:Y().colorBlock,style:{backgroundColor:n},children:t})})]})},Q=function(e){var t=e.userId,n=e.accessToken,s=(0,o.useState)(null),a=s[0],i=s[1],c=(0,o.useState)(!0),u=c[0],l=c[1],d=function(){var e=(0,k.Z)((function(){var e,n;return(0,E.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),[4,fetch("/api/moderation/chat/user/".concat(t))];case 1:return[4,r.sent().json()];case 2:return e=r.sent(),i(e),l(!1),[3,4];case 3:return n=r.sent(),console.error(n),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();if((0,o.useEffect)((function(){d()}),[]),!a)return null;var h=a.user,m=a.connectedClients,f=a.messages,p=h.displayName,g=h.displayColor,x=h.createdAt,j=h.previousNames,v=h.scopes,_=h.isBot,y=h.authenticated;return(0,r.jsx)("div",{className:Y().modalContainer,children:(0,r.jsxs)(H.Z,{spinning:u,children:[(0,r.jsx)("h1",{children:p}),(0,r.jsxs)(F.Z,{justify:"space-around",align:"middle",children:[v.map((function(e){return(0,r.jsx)(L.Z,{children:e})})),y&&(0,r.jsx)(L.Z,{children:"Authenticated"}),_&&(0,r.jsx)(L.Z,{children:"Bot"})]}),(0,r.jsx)(K,{color:g}),(0,r.jsx)(G,{label:"User Created",value:x.toString()}),(0,r.jsx)(G,{label:"Previous Names",value:j.join(",")}),(0,r.jsx)("hr",{}),(0,r.jsx)("h2",{children:"Currently Connected"}),m.length>0&&(0,r.jsx)(F.Z,{gutter:[15,15],wrap:!0,children:m.map((function(e){return(0,r.jsx)(L.Z,{flex:"auto",children:(0,r.jsx)(q,{client:e})})}))}),(0,r.jsx)("hr",{}),f.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{children:"Recent Chat Messages"}),(0,r.jsx)("div",{className:Y().chatHistory,children:f.map((function(e){return(0,r.jsx)(X,{id:e.id,body:e.body,accessToken:n},e.id)}))})]})]})})},$=n(31833),ee=n.n($),te=D.Z.confirm,ne=function(e){var t=e.messageID,n=e.userID,s=e.userDisplayName,a=e.accessToken,i=(0,o.useState)(!1),c=i[0],u=i[1],l=function(){var e=(0,k.Z)((function(){var e;return(0,E.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,J.banUser(n,a)];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),console.error(e),O.ZP.error(e),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),d=function(){var e=(0,k.Z)((function(){var e;return(0,E.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,J.removeMessage(t,a)];case 1:return n.sent(),[3,3];case 2:return e=n.sent(),console.error(e),O.ZP.error(e),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),h=function(){var e=(0,k.Z)((function(){var e;return(0,E.__generator)(this,(function(t){return te(((e={}).icon=(0,r.jsx)(T.Z,{}),e.content="Are you sure you want to remove this message from ".concat(s,"?"),e.onOk=function(){d()},e)),[2]}))}));return function(){return e.apply(this,arguments)}}(),m=function(){var e=(0,k.Z)((function(){var e;return(0,E.__generator)(this,(function(t){return te(((e={}).icon=(0,r.jsx)(T.Z,{}),e.content="Are you sure you want to ban ".concat(s," from chat?"),e.onOk=function(){l()},e)),[2]}))}));return function(){return e.apply(this,arguments)}}(),f=(0,r.jsx)(I.Z,{onClick:function(e){var t=e.key;"hide-message"===t?h():"ban-user"===t?m():"more-info"===t&&u(!0)},items:[{label:(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:ee().icon,children:(0,r.jsx)(B.Z,{})}),"Hide Message"]}),key:"hide-message"},{label:(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:ee().icon,children:(0,r.jsx)(U.Z,{})}),"Ban User"]}),key:"ban-user"},{label:(0,r.jsx)("div",{children:"More Info..."}),key:"more-info"}]});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(P.Z,{overlay:f,trigger:["click"],children:(0,r.jsx)("button",{type:"button",onClick:function(e){return e.preventDefault()},children:(0,r.jsx)(R.Z,{children:(0,r.jsx)(A.Z,{})})})}),(0,r.jsx)(D.Z,{visible:c,okText:"Ban User",okButtonProps:{danger:!0},onOk:l,onCancel:function(){u(!1)},children:(0,r.jsx)(Q,{userId:n,accessToken:a})})]})},re=n(79010),se=n.n(re),ae=function(e){var t=e.badge,n=e.userColor,s="var(--theme-user-colors-".concat(n,")"),a={color:s,borderColor:s};return(0,r.jsx)("span",{style:a,className:se().badge,children:t})},oe=n(1899),ie=function(e){var t=e.message,n=e.highlightString,s=e.showModeratorMenu,a=e.sentBySelf,i=e.sameUserAsLast,c=e.isAuthorModerator,u=e.isAuthorAuthenticated,l=t.id,d=t.body,f=t.user,g=t.timestamp,y=f.id,b=f.displayName,N=f.displayColor,w=(0,_.sJ)(oe.FI),Z="var(--theme-color-users-".concat(N,")"),S="Sent ".concat(M(g)),k=(0,o.useState)(d),E=k[0],T=k[1],B=[];return c&&B.push((0,r.jsx)(ae,{badge:"mod",userColor:N},"mod")),u&&B.push((0,r.jsx)(ae,{badge:(0,r.jsx)(v.Z,{title:"authenticated"}),userColor:N},"auth")),(0,o.useEffect)((function(){T(p().decode(d))}),[t]),(0,r.jsx)("div",{className:x()(C().messagePadding,i&&C().messagePaddingCollapsed),children:(0,r.jsxs)("div",{className:x()(C().root,(0,h.Z)({},C().ownMessage,a)),style:{borderColor:Z},children:[!i&&(0,r.jsx)(j.Z,{title:"user info goes here",placement:"topLeft",mouseEnterDelay:1,children:(0,r.jsxs)("div",{className:C().user,style:{color:Z},children:[(0,r.jsx)("span",{className:C().userName,children:b}),(0,r.jsx)("span",{children:B})]})}),(0,r.jsx)(j.Z,{title:S,mouseEnterDelay:1,children:(0,r.jsx)(m.y,{search:n,children:(0,r.jsx)("div",{className:C().message,dangerouslySetInnerHTML:{__html:E}})})}),s&&(0,r.jsx)("div",{className:C().modMenuWrapper,children:(0,r.jsx)(ne,{messageID:l,accessToken:w,userID:y,userDisplayName:b})}),(0,r.jsx)("div",{className:C().customBorder,style:{color:Z}}),(0,r.jsx)("div",{className:C().background,style:{color:Z}})]})})},ce=n(26042),ue=n(69396),le=n(828),de=n(93045),he=n(27496),me=n(55241),fe=n(77493),pe=n(96391),ge=n(57741),xe=function(e){var t=(0,o.useState)([]),n=t[0],s=t[1],a=e.onEmojiSelect,i=e.onCustomEmojiSelect,c=(0,o.useRef)(),u=function(){var e=(0,k.Z)((function(){var e,t;return(0,E.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),[4,fetch("/api/emoji")];case 1:return[4,n.sent().json()];case 2:return e=n.sent(),s(e),[3,4];case 3:return t=n.sent(),console.error("cannot fetch custom emoji",t),[3,4];case 4:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){u()}),[]),(0,o.useEffect)((function(){var e=n.map((function(e){return{emoji:e.name,label:e.name,url:e.url}}));(0,ge.wU)({rootElement:c.current,custom:e,initialCategory:"custom",showPreview:!1,showRecents:!0}).addEventListener("emoji:select",(function(e){e.url?i(e):a(e)}))}),[n]),(0,r.jsx)("div",{ref:c})},je=n(25882),ve=n.n(je),_e=function(e){var t=e.attributes,n=e.element,s=e.children,a=(0,pe.vt)(),o=(0,pe.UE)();return(0,r.jsxs)("span",(0,ue.Z)((0,ce.Z)({},t),{contentEditable:!1,children:[(0,r.jsx)("img",{alt:n.alt,src:n.src,title:n.name,style:{display:"inline",maxWidth:"50px",maxHeight:"20px",boxShadow:"".concat(a&&o?"0 0 0 3px #B4D5FF":"none")}}),s]}))},ye=function(e){var t,n;if(fe.xv.isText(e))return e.text;0===e.children.length?t=[{text:""}]:t=null===(n=e.children)||void 0===n?void 0:n.map((function(e){return ye(e)})).join("");switch(e.type){case"paragraph":return"

".concat(t,"

");case"image":return'').concat(e.alt,'');default:return t}},Ce=function(){var e=(0,o.useState)(!1),t=e[0],n=e[1],a=(0,_.sJ)(oe.Gt),i=(0,o.useMemo)((function(){return(0,pe.BU)(function(e){var t=e.isVoid;return e.isVoid=function(e){return"image"===e.type||t(e)},e.isInline=function(e){return"image"===e.type},e}((0,fe.Jh)()))}),[]),c=function(){if(a){var e=ye(i);a.send({type:u.C.CHAT,body:e}),fe.YR.delete(i,{at:{anchor:fe.ML.start(i,[]),focus:fe.ML.end(i,[])}})}else console.log("websocketService is not defined")},l=function(e,t){if(e){var n=i.selection,r=function(e,t,n){return{type:"image",alt:e,src:t,name:n,children:[{text:""}]}}(t,e,t);if(fe.YR.insertNodes(i,r,{select:!0}),n){var s,a=(0,le.Z)(fe.ML.parent(i,null===(s=n.focus)||void 0===s?void 0:s.path),2),o=a[0],c=a[1];i.isVoid(o)||fe.NB.string(o).length?fe.YR.insertNodes(i,r,{at:fe.y$.next(c),select:!0}):(fe.YR.insertNodes(i,r,{at:c,select:!0}),fe.ML.normalize(i,{force:!0}))}else fe.YR.insertNodes(i,r,{select:!0})}};return(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:ve().root,children:[(0,r.jsxs)(pe.mH,{editor:i,value:[{type:"paragraph",children:[{text:""}]}],children:[(0,r.jsx)(pe.CX,{onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),c())},renderElement:function(e){return"image"===e.element.type?(0,r.jsx)(_e,(0,ce.Z)({},e)):(0,r.jsx)("p",(0,ce.Z)({},e))},placeholder:"Chat message goes here...",style:{width:"100%"},autoFocus:!0}),(0,r.jsx)(me.Z,{content:(0,r.jsx)(xe,{onEmojiSelect:function(e){if(pe.F3.focus(i),e.url){var t=e.url;l(t,t)}else{var n=e.emoji;fe.YR.insertText(i,n)}},onCustomEmojiSelect:function(e){pe.F3.focus(i);var t=e.url;l(t,t)}}),trigger:"click",onVisibleChange:function(e){return n(e)},visible:t})]}),(0,r.jsx)("button",{type:"button",className:ve().emojiButton,title:"Emoji picker button",onClick:function(){return n(!t)},children:(0,r.jsx)(de.Z,{})}),(0,r.jsx)(s.Z,{className:ve().sendButton,size:"large",type:"ghost",icon:(0,r.jsx)(he.Z,{}),onClick:c})]})})},Me=n(93174),be=n.n(Me);function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t12e4)&&r===(null===s||void 0===s?void 0:s.user.id)}function De(e){var t=e.user.scopes;return!(!t||0===t.length)&&t.includes("MODERATOR")}var Oe=function(e){var t=e.messages,n=e.usernameToHighlight,l=e.chatUserId,h=e.isModerator,m=e.showInput,f=e.height,p=(0,o.useState)(!1),g=p[0],x=p[1],j=(0,o.useRef)(null),v=function(e,s){switch(s.type){case u.C.CHAT:var a,o,c;return(0,r.jsx)(ie,{message:s,showModeratorMenu:h,highlightString:n,sentBySelf:(null===(a=s.user)||void 0===a?void 0:a.id)===l,sameUserAsLast:Ae(t,e),isAuthorModerator:null===(o=s.user.scopes)||void 0===o?void 0:o.includes("MODERATOR"),isAuthorAuthenticated:null===(c=s.user)||void 0===c?void 0:c.authenticated},s.id);case u.C.NAME_CHANGE:return function(e){var t=e.oldName,n=e.user,s=n.displayName,a=n.displayColor,o="var(--theme-color-users-".concat(a,")");return(0,r.jsxs)("div",{className:d().nameChangeView,children:[(0,r.jsx)("div",{style:{marginRight:5,height:"max-content",margin:"auto 5px auto 0"},children:(0,r.jsx)(i.Z,{})}),(0,r.jsxs)("div",{className:d().nameChangeText,children:[(0,r.jsx)("span",{style:{color:o},children:t}),(0,r.jsx)("span",{className:d().plain,children:" is now known as "}),(0,r.jsx)("span",{style:{color:o},children:s})]})]})}(s);case u.C.CONNECTED_USER_INFO:return function(e){if(!De(e))return(0,r.jsx)("div",{style:{width:"1px",height:"1px"}});return(0,r.jsx)(Ze,{})}(s);case u.C.USER_JOINED:return function(e){var t=e.user,n=t.displayName,s=t.displayColor,a=De(e);return(0,r.jsx)(Ue,{displayName:n,userColor:s,isAuthorModerator:a})}(s);case u.C.SYSTEM:return(0,r.jsx)(Ee,{message:s,highlightString:n},s.id);default:return null}},_=(0,o.useMemo)((function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.OO,{style:{height:f,width:"auto"},ref:j,initialTopMostItemIndex:t.length-1,data:t,itemContent:function(e,t){return v(e,t)},followOutput:"auto",alignToBottom:!0,atBottomStateChange:function(e){return x(e)}}),!g&&(0,r.jsx)("div",{className:d().toBottomWrap,children:(0,r.jsx)(s.Z,{type:"default",icon:(0,r.jsx)(c.Z,{}),onClick:function(){return j.current.scrollToIndex({index:t.length-1,behavior:"smooth"})},children:"Go to last message"})})]})}),[t,n,l,h,g]);return(0,r.jsxs)("div",{style:{height:"100%"},children:[_,m&&(0,r.jsx)(Ce,{})]})};Oe.defaultProps={showInput:!0,height:"calc(100vh - 170px)"}},13545:function(e){e.exports={chatHeader:"ChatContainer_chatHeader__EJsYI",toBottomWrap:"ChatContainer_toBottomWrap__3V5wa",nameChangeView:"ChatContainer_nameChangeView__ziyXN",nameChangeText:"ChatContainer_nameChangeText__yXG__",plain:"ChatContainer_plain__IPS19"}},83066:function(e){e.exports={join:"ChatJoinMessage_join__fP0IQ"}},31833:function(e){e.exports={icon:"ChatModerationActionMenu_icon__9j6DF"}},62638:function(e){e.exports={modalContainer:"ChatModerationDetailsModal_modalContainer__czndV",chatHistory:"ChatModerationDetailsModal_chatHistory__PunRk",colorBlock:"ChatModerationDetailsModal_colorBlock___rAlw"}},93174:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__kgFWe",icon:"ChatModeratorNotification_icon__7FdGg"}},31681:function(e){e.exports={chatSystemMessage:"ChatSystemMessage_chatSystemMessage__c6XEN",user:"ChatSystemMessage_user__6yHSJ",message:"ChatSystemMessage_message__ySq5g"}},25882:function(e){e.exports={root:"ChatTextField_root__4oUkJ",inputWrapper:"ChatTextField_inputWrapper__qBEWv",submitButtonWrapper:"ChatTextField_submitButtonWrapper__YBPMe",sendButton:"ChatTextField_sendButton__MOmD4",emojiButton:"ChatTextField_emojiButton__ON_Cu"}},79010:function(e){e.exports={badge:"ChatUserBadge_badge__1EdUp"}},78583:function(e){e.exports={root:"ChatUserMessage_root__79heB",user:"ChatUserMessage_user__xUEp9",message:"ChatUserMessage_message__MJ9LD",customBorder:"ChatUserMessage_customBorder__YudkU",ownMessage:"ChatUserMessage_ownMessage__d28A3",background:"ChatUserMessage_background__Tfghp",modMenuWrapper:"ChatUserMessage_modMenuWrapper__7fblv",messagePadding:"ChatUserMessage_messagePadding__Xp1F6",messagePaddingCollapsed:"ChatUserMessage_messagePaddingCollapsed__qxN0E"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/143-b5aed5f9f5ac6332.js b/static/web/_next/static/chunks/143-b5aed5f9f5ac6332.js deleted file mode 100644 index 627a3ba9b..000000000 --- a/static/web/_next/static/chunks/143-b5aed5f9f5ac6332.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[143],{50143:function(e,t,n){"use strict";n.d(t,{u:function(){return Ie}});var r=n(85893),s=n(71577),a=n(9764),o=n(67294),i=n(36531),c=n(66017),l=n(11622),u=n(13545),d=n.n(u),h=n(14924),m=n(47049),p=n(86492),f=n.n(p),x=n(94184),g=n.n(x),v=n(94199),j=n(29158),y=n(4480),_=n(78583),C=n.n(_);function M(e){var t=new Date(e);if(Number.isNaN(t))return"";if(function(e){var t="string"===typeof e?new Date(e):e;return(new Date-t)/864e5}(e)>=1){var n=t.toLocaleDateString("en-US",{dateStyle:"medium"});return"at ".concat(n," at ").concat(t.toLocaleTimeString())}return"".concat(t.toLocaleTimeString())}var w,N,b,k,Z,S=n(47568),E=n(34051),T=n.n(E),B=n(11475),U=n(90420),A=n(18429),D=n(64942),O=n(85402),I=n(12461),P=n(66516),R=n(38504),F=n(26713),L=n(25968),H=n(6226),W=n(11382),J=n(51438),V=function(){function e(){(0,J.Z)(this,e)}return e.removeMessage=function(e,t){return(0,S.Z)(T().mark((function n(){var r,s,a;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(r=new URL("/api/chat/messagevisibility",window.location.toString())).searchParams.append("accessToken",t),s=r.toString(),a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({idArray:[e]})},n.next=6,fetch(s,a);case 6:case"end":return n.stop()}}),n)})))()},e.banUser=function(e,t){return(0,S.Z)(T().mark((function n(){var r,s,a;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(r=new URL("/api/chat/users/setenabled",window.location.toString())).searchParams.append("accessToken",t),s=r.toString(),a={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:e})},n.next=6,fetch(s,a);case 6:case"end":return n.stop()}}),n)})))()},e}(),Y=n(62638),z=n.n(Y),G=function(){var e=(0,S.Z)(T().mark((function e(t,n){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{V.removeMessage(t,n)}catch(r){console.error(r)}case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),X=function(e){var t=e.label,n=e.value;return(0,r.jsxs)(L.Z,{justify:"space-around",align:"middle",children:[(0,r.jsx)(H.Z,{span:12,children:t}),(0,r.jsx)(H.Z,{span:12,children:n})]})},q=function(e){var t=e.id,n=e.body,a=e.accessToken;return(0,r.jsxs)(L.Z,{justify:"space-around",align:"middle",children:[(0,r.jsx)(H.Z,{span:18,children:n}),(0,r.jsx)(H.Z,{children:(0,r.jsx)(s.Z,{onClick:function(){return G(t,a)},children:"X"})})]})},K=function(e){var t=e.client,n=t.messageCount,s=t.userAgent,a=t.connectedAt,o=t.geo;return(0,r.jsxs)("div",{children:[(0,r.jsx)(X,{label:"Messages Sent",value:"".concat(n)}),(0,r.jsx)(X,{label:"Geo",value:o}),(0,r.jsx)(X,{label:"Connected At",value:a.toString()}),(0,r.jsx)(X,{label:"User Agent",value:s})]})},Q=function(e){var t=e.color,n="var(--theme-color-users-".concat(t,")");return(0,r.jsxs)(L.Z,{justify:"space-around",align:"middle",children:[(0,r.jsx)(H.Z,{span:12,children:"Color"}),(0,r.jsx)(H.Z,{span:12,children:(0,r.jsx)("div",{className:z().colorBlock,style:{backgroundColor:n},children:t})})]})},$=function(e){var t=e.userId,n=e.accessToken,s=(0,o.useState)(null),a=s[0],i=s[1],c=(0,o.useState)(!0),l=c[0],u=c[1],d=function(){var e=(0,S.Z)(T().mark((function e(){var n;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/moderation/chat/user/".concat(t));case 3:return e.next=5,e.sent.json();case 5:n=e.sent,i(n),u(!1),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();if((0,o.useEffect)((function(){d()}),[]),!a)return null;var h=a.user,m=a.connectedClients,p=a.messages,f=h.displayName,x=h.displayColor,g=h.createdAt,v=h.previousNames,j=h.scopes,y=h.isBot,_=h.authenticated;return(0,r.jsx)("div",{className:z().modalContainer,children:(0,r.jsxs)(W.Z,{spinning:l,children:[(0,r.jsx)("h1",{children:f}),(0,r.jsxs)(L.Z,{justify:"space-around",align:"middle",children:[j.map((function(e){return(0,r.jsx)(H.Z,{children:e})})),_&&(0,r.jsx)(H.Z,{children:"Authenticated"}),y&&(0,r.jsx)(H.Z,{children:"Bot"})]}),(0,r.jsx)(Q,{color:x}),(0,r.jsx)(X,{label:"User Created",value:g.toString()}),(0,r.jsx)(X,{label:"Previous Names",value:v.join(",")}),(0,r.jsx)("hr",{}),(0,r.jsx)("h2",{children:"Currently Connected"}),m.length>0&&(0,r.jsx)(L.Z,{gutter:[15,15],wrap:!0,children:m.map((function(e){return(0,r.jsx)(H.Z,{flex:"auto",children:(0,r.jsx)(K,{client:e})})}))}),(0,r.jsx)("hr",{}),p.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h1",{children:"Recent Chat Messages"}),(0,r.jsx)("div",{className:z().chatHistory,children:p.map((function(e){return(0,r.jsx)(q,{id:e.id,body:e.body,accessToken:n},e.id)}))})]})]})})},ee=n(31833),te=n.n(ee),ne=O.Z.confirm,re=function(e){var t=e.messageID,n=e.userID,s=e.userDisplayName,a=e.accessToken,i=(0,o.useState)(!1),c=i[0],l=i[1],u=function(){var e=(0,S.Z)(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,V.banUser(n,a);case 3:e.next=9;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0),I.ZP.error(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),d=function(){var e=(0,S.Z)(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,V.removeMessage(t,a);case 3:e.next=9;break;case 5:e.prev=5,e.t0=e.catch(0),console.error(e.t0),I.ZP.error(e.t0);case 9:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),h=function(){var e=(0,S.Z)(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ne({icon:(0,r.jsx)(B.Z,{}),content:"Are you sure you want to remove this message from ".concat(s,"?"),onOk:function(){d()}});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=(0,S.Z)(T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ne({icon:(0,r.jsx)(B.Z,{}),content:"Are you sure you want to ban ".concat(s," from chat?"),onOk:function(){u()}});case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p=(0,r.jsx)(P.Z,{onClick:function(e){var t=e.key;"hide-message"===t?h():"ban-user"===t?m():"more-info"===t&&l(!0)},items:[{label:(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:te().icon,children:(0,r.jsx)(U.Z,{})}),"Hide Message"]}),key:"hide-message"},{label:(0,r.jsxs)("div",{children:[(0,r.jsx)("span",{className:te().icon,children:(0,r.jsx)(A.Z,{})}),"Ban User"]}),key:"ban-user"},{label:(0,r.jsx)("div",{children:"More Info..."}),key:"more-info"}]});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(R.Z,{overlay:p,trigger:["click"],children:(0,r.jsx)("button",{type:"button",onClick:function(e){return e.preventDefault()},children:(0,r.jsx)(F.Z,{children:(0,r.jsx)(D.Z,{})})})}),(0,r.jsx)(O.Z,{visible:c,okText:"Ban User",okButtonProps:{danger:!0},onOk:u,onCancel:function(){l(!1)},children:(0,r.jsx)($,{userId:n,accessToken:a})})]})},se=n(79010),ae=n.n(se),oe=function(e){var t=e.badge,n=e.userColor,s="var(--theme-user-colors-".concat(n,")"),a={color:s,borderColor:s};return(0,r.jsx)("span",{style:a,className:ae().badge,children:t})},ie=n(1899),ce=function(e){var t=e.message,n=e.highlightString,s=e.showModeratorMenu,a=e.sentBySelf,i=e.sameUserAsLast,c=e.isAuthorModerator,l=e.isAuthorAuthenticated,u=t.id,d=t.body,p=t.user,x=t.timestamp,_=p.id,w=p.displayName,N=p.displayColor,b=(0,y.sJ)(ie.FI),k="var(--theme-color-users-".concat(N,")"),Z="Sent ".concat(M(x)),S=(0,o.useState)(d),E=S[0],T=S[1],B=[];return c&&B.push((0,r.jsx)(oe,{badge:"mod",userColor:N},"mod")),l&&B.push((0,r.jsx)(oe,{badge:(0,r.jsx)(j.Z,{title:"authenticated"}),userColor:N},"auth")),(0,o.useEffect)((function(){T(f().decode(d))}),[t]),(0,r.jsx)("div",{className:g()(C().messagePadding,i&&C().messagePaddingCollapsed),children:(0,r.jsxs)("div",{className:g()(C().root,(0,h.Z)({},C().ownMessage,a)),style:{borderColor:k},children:[!i&&(0,r.jsx)(v.Z,{title:"user info goes here",placement:"topLeft",mouseEnterDelay:1,children:(0,r.jsxs)("div",{className:C().user,style:{color:k},children:[(0,r.jsx)("span",{className:C().userName,children:w}),(0,r.jsx)("span",{children:B})]})}),(0,r.jsx)(v.Z,{title:Z,mouseEnterDelay:1,children:(0,r.jsx)(m.y,{search:n,children:(0,r.jsx)("div",{className:C().message,dangerouslySetInnerHTML:{__html:E}})})}),s&&(0,r.jsx)("div",{className:C().modMenuWrapper,children:(0,r.jsx)(re,{messageID:u,accessToken:b,userID:_,userDisplayName:w})}),(0,r.jsx)("div",{className:C().customBorder,style:{color:k}}),(0,r.jsx)("div",{className:C().background,style:{color:k}})]})})},le=n(26042),ue=n(69396),de=n(828),he=n(93045),me=n(27496),pe=n(55241),fe=n(77493),xe=n(96391),ge=n(57741),ve=function(e){var t=(0,o.useState)([]),n=t[0],s=t[1],a=e.onEmojiSelect,i=e.onCustomEmojiSelect,c=(0,o.useRef)(),l=function(){var e=(0,S.Z)(T().mark((function e(){var t,n;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("/api/emoji");case 3:return t=e.sent,e.next=6,t.json();case 6:n=e.sent,s(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("cannot fetch custom emoji",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();return(0,o.useEffect)((function(){l()}),[]),(0,o.useEffect)((function(){var e=n.map((function(e){return{emoji:e.name,label:e.name,url:e.url}}));(0,ge.wU)({rootElement:c.current,custom:e,initialCategory:"custom",showPreview:!1,showRecents:!0}).addEventListener("emoji:select",(function(e){e.url?i(e):a(e)}))}),[n]),(0,r.jsx)("div",{ref:c})},je=n(25882),ye=n.n(je),_e=function(e){var t=e.attributes,n=e.element,s=e.children,a=(0,xe.vt)(),o=(0,xe.UE)();return(0,r.jsxs)("span",(0,ue.Z)((0,le.Z)({},t),{contentEditable:!1,children:[(0,r.jsx)("img",{alt:n.alt,src:n.src,title:n.name,style:{display:"inline",maxWidth:"50px",maxHeight:"20px",boxShadow:"".concat(a&&o?"0 0 0 3px #B4D5FF":"none")}}),s]}))},Ce=function(e){var t,n;if(fe.xv.isText(e))return e.text;0===e.children.length?t=[{text:""}]:t=null===(n=e.children)||void 0===n?void 0:n.map((function(e){return Ce(e)})).join("");switch(e.type){case"paragraph":return"

".concat(t,"

");case"image":return'').concat(e.alt,'');default:return t}},Me=function(){var e=(0,o.useState)(!1),t=e[0],n=e[1],a=(0,y.sJ)(ie.Gt),i=(0,o.useMemo)((function(){return(0,xe.BU)(function(e){var t=e.isVoid;return e.isVoid=function(e){return"image"===e.type||t(e)},e.isInline=function(e){return"image"===e.type},e}((0,fe.Jh)()))}),[]),c=function(){if(a){var e=Ce(i);a.send({type:l.C.CHAT,body:e}),fe.YR.delete(i,{at:{anchor:fe.ML.start(i,[]),focus:fe.ML.end(i,[])}})}else console.log("websocketService is not defined")},u=function(e,t){if(e){var n=i.selection,r=function(e,t,n){return{type:"image",alt:e,src:t,name:n,children:[{text:""}]}}(t,e,t);if(fe.YR.insertNodes(i,r,{select:!0}),n){var s,a=(0,de.Z)(fe.ML.parent(i,null===(s=n.focus)||void 0===s?void 0:s.path),2),o=a[0],c=a[1];i.isVoid(o)||fe.NB.string(o).length?fe.YR.insertNodes(i,r,{at:fe.y$.next(c),select:!0}):(fe.YR.insertNodes(i,r,{at:c,select:!0}),fe.ML.normalize(i,{force:!0}))}else fe.YR.insertNodes(i,r,{select:!0})}};return(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:ye().root,children:[(0,r.jsxs)(xe.mH,{editor:i,value:[{type:"paragraph",children:[{text:""}]}],children:[(0,r.jsx)(xe.CX,{onKeyDown:function(e){"Enter"===e.key&&(e.preventDefault(),c())},renderElement:function(e){return"image"===e.element.type?(0,r.jsx)(_e,(0,le.Z)({},e)):(0,r.jsx)("p",(0,le.Z)({},e))},placeholder:"Chat message goes here...",style:{width:"100%"},autoFocus:!0}),(0,r.jsx)(pe.Z,{content:(0,r.jsx)(ve,{onEmojiSelect:function(e){if(xe.F3.focus(i),e.url){var t=e.url;u(t,t)}else{var n=e.emoji;fe.YR.insertText(i,n)}},onCustomEmojiSelect:function(e){xe.F3.focus(i);var t=e.url;u(t,t)}}),trigger:"click",onVisibleChange:function(e){return n(e)},visible:t})]}),(0,r.jsx)("button",{type:"button",className:ye().emojiButton,title:"Emoji picker button",onClick:function(){return n(!t)},children:(0,r.jsx)(he.Z,{})}),(0,r.jsx)(s.Z,{className:ye().sendButton,size:"large",type:"ghost",icon:(0,r.jsx)(me.Z,{}),onClick:c})]})})},we=n(93174),Ne=n.n(we);function be(){return be=Object.assign?Object.assign.bind():function(e){for(var t=1;t12e4)&&r===(null===s||void 0===s?void 0:s.user.id)}function Oe(e){var t=e.user.scopes;return!(!t||0===t.length)&&t.includes("MODERATOR")}var Ie=function(e){var t=e.messages,n=e.usernameToHighlight,u=e.chatUserId,h=e.isModerator,m=e.showInput,p=e.height,f=(0,o.useState)(!1),x=f[0],g=f[1],v=(0,o.useRef)(null),j=function(e,s){switch(s.type){case l.C.CHAT:var a,o,c;return(0,r.jsx)(ce,{message:s,showModeratorMenu:h,highlightString:n,sentBySelf:(null===(a=s.user)||void 0===a?void 0:a.id)===u,sameUserAsLast:De(t,e),isAuthorModerator:null===(o=s.user.scopes)||void 0===o?void 0:o.includes("MODERATOR"),isAuthorAuthenticated:null===(c=s.user)||void 0===c?void 0:c.authenticated},s.id);case l.C.NAME_CHANGE:return function(e){var t=e.oldName,n=e.user,s=n.displayName,a=n.displayColor,o="var(--theme-color-users-".concat(a,")");return(0,r.jsxs)("div",{className:d().nameChangeView,children:[(0,r.jsx)("div",{style:{marginRight:5,height:"max-content",margin:"auto 5px auto 0"},children:(0,r.jsx)(i.Z,{})}),(0,r.jsxs)("div",{className:d().nameChangeText,children:[(0,r.jsx)("span",{style:{color:o},children:t}),(0,r.jsx)("span",{className:d().plain,children:" is now known as "}),(0,r.jsx)("span",{style:{color:o},children:s})]})]})}(s);case l.C.CONNECTED_USER_INFO:return function(e){if(!Oe(e))return(0,r.jsx)("div",{style:{width:"1px",height:"1px"}});return(0,r.jsx)(Ze,{})}(s);case l.C.USER_JOINED:return function(e){var t=e.user,n=t.displayName,s=t.displayColor,a=Oe(e);return(0,r.jsx)(Ae,{displayName:n,userColor:s,isAuthorModerator:a})}(s);case l.C.SYSTEM:return(0,r.jsx)(Te,{message:s,highlightString:n},s.id);default:return null}},y=(0,o.useMemo)((function(){return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.OO,{style:{height:p,width:"auto"},ref:v,initialTopMostItemIndex:t.length-1,data:t,itemContent:function(e,t){return j(e,t)},followOutput:"auto",alignToBottom:!0,atBottomStateChange:function(e){return g(e)}}),!x&&(0,r.jsx)("div",{className:d().toBottomWrap,children:(0,r.jsx)(s.Z,{type:"default",icon:(0,r.jsx)(c.Z,{}),onClick:function(){return v.current.scrollToIndex({index:t.length-1,behavior:"smooth"})},children:"Go to last message"})})]})}),[t,n,u,h,x]);return(0,r.jsxs)("div",{style:{height:"100%"},children:[y,m&&(0,r.jsx)(Me,{})]})};Ie.defaultProps={showInput:!0,height:"calc(100vh - 170px)"}},13545:function(e){e.exports={chatHeader:"ChatContainer_chatHeader__EJsYI",toBottomWrap:"ChatContainer_toBottomWrap__3V5wa",nameChangeView:"ChatContainer_nameChangeView__ziyXN",nameChangeText:"ChatContainer_nameChangeText__yXG__",plain:"ChatContainer_plain__IPS19"}},83066:function(e){e.exports={join:"ChatJoinMessage_join__fP0IQ"}},31833:function(e){e.exports={icon:"ChatModerationActionMenu_icon__9j6DF"}},62638:function(e){e.exports={modalContainer:"ChatModerationDetailsModal_modalContainer__czndV",chatHistory:"ChatModerationDetailsModal_chatHistory__PunRk",colorBlock:"ChatModerationDetailsModal_colorBlock___rAlw"}},93174:function(e){e.exports={chatModerationNotification:"ChatModeratorNotification_chatModerationNotification__kgFWe",icon:"ChatModeratorNotification_icon__7FdGg"}},31681:function(e){e.exports={chatSystemMessage:"ChatSystemMessage_chatSystemMessage__c6XEN",user:"ChatSystemMessage_user__6yHSJ",message:"ChatSystemMessage_message__ySq5g"}},25882:function(e){e.exports={root:"ChatTextField_root__4oUkJ",inputWrapper:"ChatTextField_inputWrapper__qBEWv",submitButtonWrapper:"ChatTextField_submitButtonWrapper__YBPMe",sendButton:"ChatTextField_sendButton__MOmD4",emojiButton:"ChatTextField_emojiButton__ON_Cu"}},79010:function(e){e.exports={badge:"ChatUserBadge_badge__1EdUp"}},78583:function(e){e.exports={root:"ChatUserMessage_root__79heB",user:"ChatUserMessage_user__xUEp9",message:"ChatUserMessage_message__MJ9LD",customBorder:"ChatUserMessage_customBorder__YudkU",ownMessage:"ChatUserMessage_ownMessage__d28A3",background:"ChatUserMessage_background__Tfghp",modMenuWrapper:"ChatUserMessage_modMenuWrapper__7fblv",messagePadding:"ChatUserMessage_messagePadding__Xp1F6",messagePaddingCollapsed:"ChatUserMessage_messagePaddingCollapsed__qxN0E"}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/1899-30441a4a083a1929.js b/static/web/_next/static/chunks/1899-30441a4a083a1929.js deleted file mode 100644 index 28f38741f..000000000 --- a/static/web/_next/static/chunks/1899-30441a4a083a1929.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1899],{1899:function(e,t,n){n.d(t,{me:function(){return W},FI:function(){return D},Q:function(){return x},L4:function(){return L},nk:function(){return m},w4:function(){return T},uy:function(){return _},ZA:function(){return F},g1:function(){return I},g8:function(){return V},ap:function(){return P},di:function(){return J},fE:function(){return w},pT:function(){return Y},hz:function(){return M},YW:function(){return j},We:function(){return U},RI:function(){return C},pH:function(){return B},Gt:function(){return G}});var r=n(47568),a=n(828),o=n(29815),c=n(34051),i=n.n(c),s=n(67294),u=n(4480),l=n(23917);var f=n(51438),d=function(){function e(){(0,f.Z)(this,e)}return e.getConfig=function(){return(0,r.Z)(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("http://localhost:8080/api/config");case 2:return t=e.sent,e.next=5,t.json();case 5:return n=e.sent,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})))()},e}(),E=n(58827),p=function(){function e(){(0,f.Z)(this,e)}return e.getChatHistory=function(e){return(0,r.Z)(i().mark((function t(){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,E.$l)("".concat("/api/chat","?accessToken=").concat(e));case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})))()},e.registerUser=function(e){return(0,r.Z)(i().mark((function t(){var n,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({displayName:e})},t.next=3,(0,E.$l)("/api/chat/register",n);case 3:return r=t.sent,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})))()},e}(),h=n(11622),v=function(){function e(t,n){(0,f.Z)(this,e),this.accessToken=t,this.path=n,this.createAndConnect()}var t=e.prototype;return t.createAndConnect=function(){var e=new URL("ws://localhost:8080/ws");e.searchParams.append("accessToken",this.accessToken),console.debug("connecting to ",e.toString());var t=new WebSocket(e.toString());t.onopen=this.onOpen.bind(this),t.onerror=this.onError.bind(this),t.onmessage=this.onMessage.bind(this),this.websocket=t},t.onOpen=function(){this.websocketReconnectTimer&&clearTimeout(this.websocketReconnectTimer)},t.onError=function(e){var t;console.error(e),t="Socket error: ".concat(e),console.error("Chat has been disconnected and is likely not working for you. It's possible you were removed from chat. If this is a server configuration issue, visit troubleshooting steps to resolve. https://owncast.online/docs/troubleshooting/#chat-is-disabled: ".concat(t)),this.websocket.close()},t.onMessage=function(e){for(var t,n=e.data.split("\n"),r=0;r getConfig() ERROR: \n".concat(e.t0));case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),ce=function(){var e=(0,r.Z)(i().mark((function e(){var t,n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,A.getStatus();case 3:t=e.sent,Y(t),n=t.serverTime,r=new Date(n).getTime()-Date.now(),J(r),t.online?ae(S.Online):t.online||ae(S.Offline),K(null),e.next=17;break;case 12:e.prev=12,e.t0=e.catch(0),ae(S.Fail),re("Unable to reach Owncast server","Owncast cannot launch. Please make sure the Owncast server is running. ".concat(e.t0)),console.error("serverStatusState -> getStatus() ERROR: \n".concat(e.t0));case 17:return e.abrupt("return",null);case 18:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),ie=function(){var e=(0,r.Z)(i().mark((function e(t){var n,r,a,o,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=(0,k.$o)(R))){e.next=4;break}return $(n),e.abrupt("return");case 4:return e.prev=4,ae(S.NeedsRegister),e.next=8,p.registerUser(t);case 8:if(r=e.sent,console.log("ChatService -> registerUser() response: \n".concat(r)),a=r.accessToken,o=r.displayName,c=r.displayColor,a){e.next=13;break}return e.abrupt("return");case 13:console.log("setting access token",a),$(a),(0,k.qQ)(R,a),E(o),g(c),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(4),ae(S.Fail),console.error("ChatService -> registerUser() ERROR: \n".concat(e.t0));case 24:case"end":return e.stop()}}),e,null,[[4,20]])})));return function(t){return e.apply(this,arguments)}}(),se=function(e){switch(e.type){case h.C.ERROR_NEEDS_REGISTRATION:(0,k.qQ)(R,""),$(""),ie();break;case h.C.CONNECTED_USER_INFO:y(e,E,g,N,F,M),W((function(t){return(0,o.Z)(t).concat([e])}));break;case h.C.CHAT:W((function(t){return(0,o.Z)(t).concat([e])}));break;case h.C.NAME_CHANGE:b(e,B,W);break;case h.C.USER_JOINED:case h.C.SYSTEM:W((function(t){return(0,o.Z)(t).concat([e])}));break;case h.C.VISIBILITY_UPDATE:!function(e){var t=e.ids;if(e.visible){var n=te.filter((function(e){return!t.includes(e)}));ne(n)}else{var r=(0,o.Z)(te).concat((0,o.Z)(t));ne(r)}}(e);break;default:console.error("Unknown socket message type: ",e.type)}},ue=function(){var e=(0,r.Z)(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,p.getChatHistory(X);case 3:t=e.sent,W((function(e){return(0,o.Z)(e).concat((0,o.Z)(t))})),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("ChatService -> getChatHistory() ERROR: \n".concat(e.t0));case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),le=function(){var t=(0,r.Z)(i().mark((function t(){return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:ae(S.Loading);try{(e=new v(X,"/ws")).handleMessage=se,z(e),ae(S.Loaded)}catch(n){console.error("ChatService -> startChat() ERROR: \n".concat(n))}case 2:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return(0,s.useEffect)((function(){oe(),ie(),ce(),setInterval((function(){ce()}),5e3)}),[n]),(0,s.useEffect)((function(){X&&(ue(),le())}),[X]),(0,s.useEffect)((function(){f.onTransition((function(e){if(e.changed){var t,n=(t=e.meta,Object.keys(t).reduce((function(e,n){var r=t[n];return Object.assign(e,r),e}),{}));q(n)}}))})),null}},11622:function(e,t,n){var r;n.d(t,{C:function(){return r}}),function(e){e.CHAT="CHAT",e.PING="PING",e.NAME_CHANGE="NAME_CHANGE",e.COLOR_CHANGE="COLOR_CHANGE",e.PONG="PONG",e.SYSTEM="SYSTEM",e.USER_JOINED="USER_JOINED",e.CHAT_ACTION="CHAT_ACTION",e.FEDIVERSE_ENGAGEMENT_FOLLOW="FEDIVERSE_ENGAGEMENT_FOLLOW",e.FEDIVERSE_ENGAGEMENT_LIKE="FEDIVERSE_ENGAGEMENT_LIKE",e.FEDIVERSE_ENGAGEMENT_REPOST="FEDIVERSE_ENGAGEMENT_REPOST",e.CONNECTED_USER_INFO="CONNECTED_USER_INFO",e.ERROR_USER_DISABLED="ERROR_USER_DISABLED",e.ERROR_NEEDS_REGISTRATION="ERROR_NEEDS_REGISTRATION",e.ERROR_MAX_CONNECTIONS_EXCEEDED="ERROR_MAX_CONNECTIONS_EXCEEDED",e.VISIBILITY_UPDATE="VISIBILITY-UPDATE"}(r||(r={}))},73682:function(e,t,n){n.d(t,{$o:function(){return a},dA:function(){return r},qQ:function(){return o}});var r={username:"username",hasDisplayedNotificationModal:"HAS_DISPLAYED_NOTIFICATION_MODAL",userVisitCount:"USER_VISIT_COUNT"};function a(e){try{return localStorage.getItem(e)}catch(t){}return null}function o(e,t){try{return""!==t&&null!==t?localStorage.setItem(e,t):localStorage.removeItem(e),!0}catch(n){}return!1}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/1899-3b9a903aaac3a42c.js b/static/web/_next/static/chunks/1899-3b9a903aaac3a42c.js new file mode 100644 index 000000000..79c65259f --- /dev/null +++ b/static/web/_next/static/chunks/1899-3b9a903aaac3a42c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1899],{1899:function(e,n,t){t.d(n,{me:function(){return W},FI:function(){return w},Q:function(){return G},L4:function(){return Z},nk:function(){return k},w4:function(){return I},uy:function(){return T},ZA:function(){return F},g1:function(){return b},g8:function(){return V},ap:function(){return P},di:function(){return J},fE:function(){return m},pT:function(){return Y},hz:function(){return M},YW:function(){return j},We:function(){return U},RI:function(){return C},pH:function(){return B},Gt:function(){return L}});var r=t(47568),a=t(828),o=t(29815),i=t(70655),c=t(67294),s=t(4480),u=t(23917);var l=t(51438),f=function(){function e(){(0,l.Z)(this,e)}return e.getConfig=function(){return(0,r.Z)((function(){return(0,i.__generator)(this,(function(e){switch(e.label){case 0:return[4,fetch("http://localhost:8080/api/config")];case 1:return[4,e.sent().json()];case 2:return[2,e.sent()]}}))}))()},e}(),E=t(58827),d=function(){function e(){(0,l.Z)(this,e)}return e.getChatHistory=function(e){return(0,r.Z)((function(){return(0,i.__generator)(this,(function(n){switch(n.label){case 0:return[4,(0,E.$l)("".concat("/api/chat","?accessToken=").concat(e))];case 1:return[2,n.sent()]}}))}))()},e.registerUser=function(e){return(0,r.Z)((function(){var n,t;return(0,i.__generator)(this,(function(r){switch(r.label){case 0:return(t={}).method="POST",t.headers={"Content-Type":"application/json"},t.body=JSON.stringify({displayName:e}),n=t,[4,(0,E.$l)("/api/chat/register",n)];case 1:return[2,r.sent()]}}))}))()},e}(),h=t(11622),g=function(){function e(n,t){(0,l.Z)(this,e),this.accessToken=n,this.path=t,this.createAndConnect()}var n=e.prototype;return n.createAndConnect=function(){var e=new URL("ws://localhost:8080/ws");e.searchParams.append("accessToken",this.accessToken),console.debug("connecting to ",e.toString());var n=new WebSocket(e.toString());n.onopen=this.onOpen.bind(this),n.onerror=this.onError.bind(this),n.onmessage=this.onMessage.bind(this),this.websocket=n},n.onOpen=function(){this.websocketReconnectTimer&&clearTimeout(this.websocketReconnectTimer)},n.onError=function(e){var n;console.error(e),n="Socket error: ".concat(e),console.error("Chat has been disconnected and is likely not working for you. It's possible you were removed from chat. If this is a server configuration issue, visit troubleshooting steps to resolve. https://owncast.online/docs/troubleshooting/#chat-is-disabled: ".concat(n)),this.websocket.close()},n.onMessage=function(e){for(var n,t=e.data.split("\n"),r=0;r getConfig() ERROR: \n".concat(n)),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),ie=function(){var e=(0,r.Z)((function(){var e,n,t,r;return(0,i.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,A.getStatus()];case 1:return e=a.sent(),J(e),n=e.serverTime,t=new Date(n).getTime()-Date.now(),j(t),e.online?ae(y.Online):e.online||ae(y.Offline),K(null),[3,3];case 2:return r=a.sent(),ae(y.Fail),re("Unable to reach Owncast server","Owncast cannot launch. Please make sure the Owncast server is running. ".concat(r)),console.error("serverStatusState -> getStatus() ERROR: \n".concat(r)),[3,3];case 3:return[2,null]}}))}));return function(){return e.apply(this,arguments)}}(),ce=function(){var e=(0,r.Z)((function(e){var n,t,r,a,o,c;return(0,i.__generator)(this,(function(i){switch(i.label){case 0:if(n=(0,S.$o)(R))return q(n),[2];i.label=1;case 1:return i.trys.push([1,3,,4]),ae(y.NeedsRegister),[4,d.registerUser(e)];case 2:return t=i.sent(),console.log("ChatService -> registerUser() response: \n".concat(t)),r=t.accessToken,a=t.displayName,o=t.displayColor,r?(console.log("setting access token",r),q(r),(0,S.qQ)(R,r),v(a),p(o),[3,4]):[2];case 3:return c=i.sent(),ae(y.Fail),console.error("ChatService -> registerUser() ERROR: \n".concat(c)),[3,4];case 4:return[2]}}))}));return function(n){return e.apply(this,arguments)}}(),se=function(e){switch(e.type){case h.C.ERROR_NEEDS_REGISTRATION:(0,S.qQ)(R,""),q(""),ce();break;case h.C.CONNECTED_USER_INFO:O(e,v,p,M,U,F),Q((function(n){return(0,o.Z)(n).concat([e])}));break;case h.C.CHAT:Q((function(n){return(0,o.Z)(n).concat([e])}));break;case h.C.NAME_CHANGE:_(e,W,Q);break;case h.C.USER_JOINED:case h.C.SYSTEM:Q((function(n){return(0,o.Z)(n).concat([e])}));break;case h.C.VISIBILITY_UPDATE:!function(e){var n=e.ids;if(e.visible){var t=ne.filter((function(e){return!n.includes(e)}));te(t)}else{var r=(0,o.Z)(ne).concat((0,o.Z)(n));te(r)}}(e);break;default:console.error("Unknown socket message type: ",e.type)}},ue=function(){var e=(0,r.Z)((function(){var e,n;return(0,i.__generator)(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,d.getChatHistory($)];case 1:return e=t.sent(),Q((function(n){return(0,o.Z)(n).concat((0,o.Z)(e))})),[3,3];case 2:return n=t.sent(),console.error("ChatService -> getChatHistory() ERROR: \n".concat(n)),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),le=function(){var n=(0,r.Z)((function(){return(0,i.__generator)(this,(function(n){ae(y.Loading);try{(e=new g($,"/ws")).handleMessage=se,z(e),ae(y.Loaded)}catch(t){console.error("ChatService -> startChat() ERROR: \n".concat(t))}return[2]}))}));return function(){return n.apply(this,arguments)}}();return(0,c.useEffect)((function(){oe(),ce(),ie(),setInterval((function(){ie()}),5e3)}),[t]),(0,c.useEffect)((function(){$&&(ue(),le())}),[$]),(0,c.useEffect)((function(){E.onTransition((function(e){if(e.changed){var n,t=(n=e.meta,Object.keys(n).reduce((function(e,t){var r=n[t];return Object.assign(e,r),e}),{}));x(t)}}))})),null}},11622:function(e,n,t){var r;t.d(n,{C:function(){return r}}),function(e){e.CHAT="CHAT",e.PING="PING",e.NAME_CHANGE="NAME_CHANGE",e.COLOR_CHANGE="COLOR_CHANGE",e.PONG="PONG",e.SYSTEM="SYSTEM",e.USER_JOINED="USER_JOINED",e.CHAT_ACTION="CHAT_ACTION",e.FEDIVERSE_ENGAGEMENT_FOLLOW="FEDIVERSE_ENGAGEMENT_FOLLOW",e.FEDIVERSE_ENGAGEMENT_LIKE="FEDIVERSE_ENGAGEMENT_LIKE",e.FEDIVERSE_ENGAGEMENT_REPOST="FEDIVERSE_ENGAGEMENT_REPOST",e.CONNECTED_USER_INFO="CONNECTED_USER_INFO",e.ERROR_USER_DISABLED="ERROR_USER_DISABLED",e.ERROR_NEEDS_REGISTRATION="ERROR_NEEDS_REGISTRATION",e.ERROR_MAX_CONNECTIONS_EXCEEDED="ERROR_MAX_CONNECTIONS_EXCEEDED",e.VISIBILITY_UPDATE="VISIBILITY-UPDATE"}(r||(r={}))},73682:function(e,n,t){t.d(n,{$o:function(){return a},dA:function(){return r},qQ:function(){return o}});var r={username:"username",hasDisplayedNotificationModal:"HAS_DISPLAYED_NOTIFICATION_MODAL",userVisitCount:"USER_VISIT_COUNT"};function a(e){try{return localStorage.getItem(e)}catch(n){}return null}function o(e,n){try{return""!==n&&null!==n?localStorage.setItem(e,n):localStorage.removeItem(e),!0}catch(t){}return!1}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/2854-93263508ffa265f3.js b/static/web/_next/static/chunks/2854-93263508ffa265f3.js deleted file mode 100644 index 0edeb7d5d..000000000 --- a/static/web/_next/static/chunks/2854-93263508ffa265f3.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2854],{1698:function(e,t,n){"use strict";n.d(t,{R:function(){return c}});var i=n(85893),r=n(27049),a=n(71577),s=n(92032),o=n(29316),u=n.n(o),c=function(e){var t=e.name,n=e.text;return(0,i.jsx)("div",{className:u().outerContainer,children:(0,i.jsxs)("div",{className:u().innerContainer,children:[(0,i.jsxs)("div",{className:u().header,children:[t," is currently offline."]}),(0,i.jsx)(r.Z,{}),(0,i.jsx)("div",{children:n}),(0,i.jsx)("div",{className:u().footer,children:(0,i.jsxs)(a.Z,{type:"primary",onClick:function(){return console.log("show notification modal")},children:[(0,i.jsx)(s.Z,{}),"Notify when Live"]})})]})})}},36887:function(e,t,n){"use strict";n.d(t,{X:function(){return l}});var i=n(85893),r=n(45938),a=n(68730),s=n(67294),o=n(99611),u=n(93132),c=n.n(u);var l=function(e){var t=e.online,n=e.lastConnectTime,u=e.lastDisconnectTime,l=e.viewerCount,h=(0,s.useState)(new Date)[1];(0,s.useEffect)((function(){var e=setInterval((function(){return h(new Date)}),1e3);return function(){clearInterval(e)}}),[]);var f,d="";if(t&&n){var v=function(e){var t=(0,a.Z)({start:e,end:new Date});return t.days>1?"".concat(t.days," days ").concat(t.hours," hours"):t.hours>=1?"".concat(t.hours," hours ").concat(t.minutes," minutes"):"".concat(t.minutes," minutes ").concat(t.seconds," seconds")}(new Date(n));d=t?"Live for ".concat(v):"Offline",f=l>0&&(0,i.jsxs)("span",{children:[(0,i.jsx)(o.Z,{})," ",l]})}else t||(d="Offline",u&&(f="Last live ".concat((0,r.Z)(new Date(u))," ago.")));return(0,i.jsxs)("div",{className:c().statusbar,children:[(0,i.jsx)("div",{children:d}),(0,i.jsx)("div",{children:f})]})};l.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},83818:function(e,t,n){"use strict";n.d(t,{M:function(){return Q}});var i=n(47568),r=n(828),a=n(34051),s=n.n(a),o=n(85893),u=n(67294),c=n(4480),l=n(49218),h=n(85215),f=n(55206),d=n.n(f);n(33108);var v=function(e){var t=e.options,n=e.onReady,i=u.useRef(null),r=u.useRef(null);return u.useEffect((function(){if(!r.current){var e=i.current,a=r.current=(0,h.Z)(e,t,(function(){return a.log("player is ready"),n&&n(a,h.Z)}));a.autoplay(t.autoplay),a.src(t.sources)}}),[t,i]),u.useEffect((function(){var e=r.current;return function(){e&&(e.dispose(),r.current=null)}}),[r]),(0,o.jsx)("div",{"data-vjs-player":!0,children:(0,o.jsx)("video",{ref:i,className:"video-js vjs-big-play-centered ".concat(d().player," vjs-owncast")})})},p=n(51438);var m=function(){function e(){(0,p.Z)(this,e)}var t=e.prototype;return t.start=function(){this.stop(),this.timer=setInterval((function(){!function(){try{fetch("/api/ping")}catch(e){console.error(e)}}()}),4e3)},t.stop=function(){clearInterval(this.timer)},e}(),y=n(26042),g=n(69396),b=n(29815),k={position:"absolute",width:"100%",height:"100%"},T=function(e){var t=e.src,n=void 0===t?"":t,i=e.width,r=e.height,a=e.objectFit,s=void 0===a?"fill":a,c=e.duration,l=void 0===c?"1s":c,h=(0,u.useMemo)((function(){return{display:"inline-block",position:"relative",width:i,height:r}}),[i,r]),f=(0,u.useMemo)((function(){return[(0,g.Z)((0,y.Z)({},k),{objectFit:s,opacity:0,transition:"opacity ".concat(l)}),(0,g.Z)((0,y.Z)({},k),{objectFit:s,opacity:1,transition:"opacity ".concat(l)}),(0,g.Z)((0,y.Z)({},k),{objectFit:s,opacity:0})]}),[s,l]),d=(0,u.useState)(0),v=d[0],p=d[1],m=(0,u.useState)(["",""]),T=m[0],w=m[1],x=n!==T[1]?n:"",C=function(){p((v+1)%3),w([T[1],x])};return(0,o.jsx)("span",{style:h,children:(0,b.Z)(T).concat([x]).map((function(e,t){return""!==e&&(0,o.jsx)("img",{src:e,alt:"",style:f[t],onLoad:2===t?C:void 0},e)}))})};T.defaultProps={objectFit:"fill",duration:"3s"};var w=n(1125),x=n.n(w),C=function(e){var t,n=e.online,i=e.initialSrc,r=e.src,a=(0,u.useState)(i),s=a[0],c=a[1],l=(0,u.useState)("0s"),h=l[0],f=l[1];return(0,u.useEffect)((function(){clearInterval(t),t=setInterval((function(){"0s"===h&&f("3s"),c("".concat(r,"?").concat(Date.now()))}),2e4)}),[]),(0,o.jsxs)("div",{className:x().poster,children:[!n&&(0,o.jsx)("img",{src:i,alt:"logo"}),n&&(0,o.jsx)(T,{src:s,duration:h,objectFit:"cover",width:"100%",height:"100%"})]})},j=n(73682),B=n(1899),I=n(52951);var E=function(){function e(t,n){var i=this;(0,p.Z)(this,e),this.player=t,this.supportsDetailedMetrics=!1,this.hasPerformedInitialVariantChange=!1,this.clockSkewMs=0,this.segmentDownloadTime=[],this.bandwidthTracking=[],this.latencyTracking=[],this.errors=0,this.qualityVariantChanges=0,this.isBuffering=!1,this.bufferingDurationTimer=0,this.collectPlaybackMetricsTimer=0,this.videoJSReady=this.videoJSReady.bind(this),this.handlePlaying=this.handlePlaying.bind(this),this.handleBuffering=this.handleBuffering.bind(this),this.handleEnded=this.handleEnded.bind(this),this.handleError=this.handleError.bind(this),this.send=this.send.bind(this),this.collectPlaybackMetrics=this.collectPlaybackMetrics.bind(this),this.handleNoLongerBuffering=this.handleNoLongerBuffering.bind(this),this.player.on("canplaythrough",this.handleNoLongerBuffering),this.player.on("error",this.handleError),this.player.on("stalled",this.handleBuffering),this.player.on("waiting",this.handleBuffering),this.player.on("playing",this.handlePlaying),this.player.on("ended",this.handleEnded);var r=n.xhr;n.Vhs.xhr=function(){for(var e=arguments.length,t=new Array(e),n=0;n=40)return;this.trackLatency(a)}catch(s){console.warn(s)}}}},{key:"send",value:function(){var e=this;return(0,i.Z)(s().mark((function t(){var n,i,r,a,o,u,c,l,h,f;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==e.segmentDownloadTime.length){t.next=2;break}return t.abrupt("return");case 2:if(e.player&&!e.player.paused()){t.next=4;break}return t.abrupt("return");case 4:return n=e.errors,e.supportsDetailedMetrics?(a=(r=function(e){return e.reduce((function(e,t){return e+t}),0)/e.length})(e.segmentDownloadTime)/1e3,o=Math.round(1e3*a)/1e3,u=r(e.bandwidthTracking)/1e3,c=Math.round(1e3*u)/1e3,l=r(e.latencyTracking)/1e3,h=Math.round(1e3*l)/1e3,i={bandwidth:c,latency:h,downloadDuration:o,errors:n+e.isBuffering?1:0,qualityVariantChanges:e.qualityVariantChanges}):i={errors:n+e.isBuffering?1:0},e.errors=0,e.qualityVariantChanges=0,e.segmentDownloadTime=[],e.bandwidthTracking=[],e.latencyTracking=[],f={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)},t.prev=13,t.next=16,fetch("/api/metrics/playback",f);case 16:t.next=21;break;case 18:t.prev=18,t.t0=t.catch(13),console.error(t.t0);case 21:case"end":return t.stop()}}),t,null,[[13,18]])})))()}}]),e}(),P=E,M=n(45785),S=n(82662),Z=n(88029),D=n(91224);var L=function(e,t,n,i){var r=t.getComponent("MenuItem"),a=t.getComponent("MenuItem"),s=t.getComponent("MenuButton"),o=function(e){(0,Z.Z)(n,e);var t=(0,D.Z)(n);function n(e,i){return(0,p.Z)(this,n),t.call(this,e,i)}return n.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,M.Z)((0,S.Z)(n.prototype),"createEl",this).call(this,e,t,i);return r.innerHTML='
',r},n}(r),u=new a(e,{selectable:!0});u.setAttribute("class","latency-toggle-item"),u.on("click",(function(){i()}));var c=new o(e,{selectable:!1}),l=t.extend(s,{constructor:function(){s.call(this,e)},createItems:function(){var t=e.tech({IWillNotUseThisInPlugins:!0}),i=new a(e,{selectable:!0,label:"Auto"}),r=n.map((function(n){var i=new a(e,{selectable:!0,label:n.name});return i.on("click",(function(){t?(t.vhs.representations().forEach((function(e,t){e.enabled(t===n.index)})),i.selected(!1)):console.warn("Invalid attempt to access null player tech")})),i}));i.on("click",(function(){t.vhs.representations().forEach((function(e){e.enabled(!0)})),i.selected(!1)}));var s=!!t&&!!t.vhs;return n.length<2&&s?[u]:n.length>1&&s?[i].concat((0,b.Z)(r),[c,u]):s||1!==n.length?[i].concat((0,b.Z)(r)):[]}}),h=e.tech({IWillNotUseThisInPlugins:!0});if(!(n.length<2)||h&&h.vhs){var f=new l;return f.addClass("vjs-quality-selector"),f}};var _=function(){function e(t){(0,p.Z)(this,e),this.player=t,this.playing=!1,this.enabled=!1,this.running=!1,this.inTimeout=!1,this.jumpingToLiveIgnoreBuffer=!1,this.timeoutTimer=0,this.checkTimer=0,this.bufferingCounter=0,this.bufferingTimer=0,this.playbackRate=1,this.lastJumpOccurred=null,this.startupTime=new Date,this.clockSkewMs=0,this.currentLatency=null,this.bufferedAtLatency=[],this.player.on("playing",this.handlePlaying.bind(this)),this.player.on("pause",this.handlePause.bind(this)),this.player.on("error",this.handleError.bind(this)),this.player.on("waiting",this.handleBuffering.bind(this)),this.player.on("stalled",this.handleBuffering.bind(this)),this.player.on("ended",this.handleEnded.bind(this)),this.player.on("canplaythrough",this.handlePlaying.bind(this)),this.player.on("canplay",this.handlePlaying.bind(this)),this.check=this.check.bind(this),this.start=this.start.bind(this),this.enable=this.enable.bind(this),this.countBufferingEvent=this.countBufferingEvent.bind(this)}return(0,I.Z)(e,[{key:"setClockSkew",value:function(e){this.clockSkewMs=e}},{key:"check",value:function(){if(!((new Date).getTime()-this.startupTime.getTime()<1e4)&&!this.player.paused()&&!this.player.seeking()&&!this.inTimeout&&this.enabled){var e=this.player.tech({IWillNotUseThisInPlugins:!0});if(e&&e.vhs)if(2===this.player.networkState()){var t=0;try{if(0===e.vhs.stats.buffered.length)return void this.timeout();e.vhs.stats.buffered.forEach((function(e){t+=e.end-e.start}))}catch(m){console.error(m)}var n=e.vhs.playlists.media().attributes.BANDWIDTH,i=e.vhs.systemBandwidth/n;try{var a=function(e){for(var t,n=e.vhs.playlists.media(),i=e.currentTime(),a=0,s=n.segments.length;a=c&&(c=u+3e3);var l=a.dateTimeObject.getTime(),h=(new Date).getTime()+this.clockSkewMs-l;if(this.currentLatency=h,Math.abs(h)>8e4)return void this.timeout();if(h>c){if(this.shouldJumpToLive()&&h>c+5e3){var f=h/1e3-3*a.duration,d=this.player.currentTime()+f;console.info("latency",h/1e3,"jumping",f,"to live from ",this.player.currentTime()," to ",d);var v=e.vhs.stats.buffered[0].end;if(d>e.vhs.stats.buffered[0].startthis.playbackRate+.02&&(p=this.playbackRate+.02),p=Math.round(p*Math.pow(10,3))/Math.pow(10,3),this.start(p)}else h<=u&&this.stop();console.info("latency",h/1e3,"min",u/1e3,"max",c/1e3,"playback rate",this.playbackRate,"enabled:",this.enabled,"running: ",this.running,"skew: ",this.clockSkewMs,"rebuffer events: ",this.bufferingCounter)}catch(y){}}}}},{key:"shouldJumpToLive",value:function(){return!(this.bufferingCounter>1)&&(new Date).getTime()-this.lastJumpOccurred>2e4}},{key:"jump",value:function(e){var t=this;this.jumpingToLiveIgnoreBuffer=!0,this.performedInitialLiveJump=!0,this.lastJumpOccurred=new Date,console.info("current time",this.player.currentTime(),"seeking to",e),this.player.currentTime(e),setTimeout((function(){t.jumpingToLiveIgnoreBuffer=!1}),5e3)}},{key:"setPlaybackRate",value:function(e){this.playbackRate=e,this.player.playbackRate(e)}},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;!this.inTimeout&&this.enabled&&e!==this.playbackRate&&(this.running=!0,this.setPlaybackRate(e))}},{key:"stop",value:function(){this.running&&console.log("stopping latency compensator..."),this.running=!1,this.setPlaybackRate(1)}},{key:"enable",value:function(){var e=this;this.enabled=!0,clearInterval(this.checkTimer),clearTimeout(this.bufferingTimer),this.checkTimer=setInterval((function(){e.check()}),3e3)}},{key:"disable",value:function(){clearInterval(this.checkTimer),clearTimeout(this.timeoutTimer),this.stop(),this.enabled=!1}},{key:"timeout",value:function(){var e=this;this.jumpingToLiveIgnoreBuffer||(this.inTimeout=!0,this.stop(),clearTimeout(this.timeoutTimer),this.timeoutTimer=setTimeout((function(){e.endTimeout()}),3e4))}},{key:"endTimeout",value:function(){clearTimeout(this.timeoutTimer),this.inTimeout=!1}},{key:"handlePlaying",value:function(){var e=this.playing;this.playing=!0,clearTimeout(this.bufferingTimer),this.enabled&&this.shouldJumpToLive()&&(e||(this.jumpingToLiveIgnoreBuffer=!0,this.player.liveTracker.seekToLiveEdge(),this.lastJumpOccurred=new Date))}},{key:"handlePause",value:function(){this.playing=!1}},{key:"handleEnded",value:function(){this.enabled&&this.disable()}},{key:"handleError",value:function(){this.enabled&&this.timeout()}},{key:"countBufferingEvent",value:function(){var e=this;this.bufferingCounter+=1,this.bufferingCounter>4?this.disable():(this.bufferedAtLatency.push(this.currentLatency),console.log("latency compensation timeout due to buffering:",this.bufferingCounter,"buffering events of",4),setTimeout((function(){e.bufferingCounter>0&&(e.bufferingCounter-=1)}),18e4))}},{key:"handleBuffering",value:function(){var e=this;this.enabled&&!this.inTimeout&&(this.jumpingToLiveIgnoreBuffer?this.jumpingToLiveIgnoreBuffer=!1:(this.timeout(),clearTimeout(this.bufferingTimer),this.bufferingTimer=setTimeout((function(){e.countBufferingEvent()}),200)))}}]),e}(),R=_,N="/api/video/variants",O="owncast_volume",V="latencyCompensatorEnabled",J=new m,q=null,A=null,F=!1;function W(){return U.apply(this,arguments)}function U(){return(U=(0,i.Z)(s().mark((function e(){var t,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[],e.prev=1,e.next=4,fetch(N);case 4:return n=e.sent,e.next=7,n.json();case 7:t=e.sent,e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),console.error(e.t0);case 13:return e.abrupt("return",t);case 14:case"end":return e.stop()}}),e,null,[[1,10]])})))).apply(this,arguments)}var Q=function(e){var t=e.source,n=e.online,a=u.useRef(null),h=(0,r.Z)((0,c.FV)(B.We),2),f=h[0],d=h[1],p=(0,c.sJ)(B.g8),m=function(){(0,j.qQ)(O,a.current.muted()?0:a.current.volume())},y=function(e){var t=document.querySelector(".latency-toggle-item > .vjs-menu-item-text");t&&(t.innerHTML=e)},g=function(){A&&A.stop(),F=!0,(A=new R(a.current)).setClockSkew(p),A.enable(),(0,j.qQ)(V,!0),y("disable minimized latency")},b=function(){A&&A.disable(),A=null,F=!1,(0,j.qQ)(V,!1),y('enable minimized latency (experimental)')},k=function(){F?b():g()},T=function(e){var t=e.tech({IWillNotUseThisInPlugins:!0});t&&t.vhs&&("true"===(0,j.$o)(V)&&t&&t.vhs?g():b())},w=function(){var e=(0,i.Z)(s().mark((function e(t,n){var i,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,W();case 2:i=e.sent,r=L(t,n,i,k),t.controlBar.addChild(r,{},t.controlBar.children_.length-2),T(t);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();(0,l.y1)("space",(function(){a.current.paused()?a.current.play():a.current.pause()}),{enableOnContentEditable:!1}),(0,l.y1)("f",(function(){a.current.isFullscreen()?a.current.exitFullscreen():a.current.requestFullscreen()}),{enableOnContentEditable:!1}),(0,l.y1)("m",(function(){a.current.muted()||0===a.current.volume()?a.current.volume(.7):a.current.volume(0)}),{enableOnContentEditable:!1}),(0,l.y1)("0",(function(){return a.current.volume(a.current.volume()+.1)}),{enableOnContentEditable:!1}),(0,l.y1)("9",(function(){return a.current.volume(a.current.volume()-.1)}),{enableOnContentEditable:!1});var x={autoplay:!1,controls:!0,responsive:!0,fluid:!1,playsInline:!0,liveui:!0,preload:"auto",controlBar:{progressControl:{seekBar:!1}},html5:{vhs:{enableLowInitialPlaylist:!0,experimentalBufferBasedABR:!0,useNetworkInformationApi:!0,maxPlaylistRetries:30}},liveTracker:{trackingThreshold:0,liveTolerance:15},sources:[{src:t,type:"application/x-mpegURL"}]};return(0,u.useEffect)((function(){q&&q.setClockSkew(p)}),[p]),(0,o.jsxs)("div",{style:{display:"grid"},children:[n&&(0,o.jsx)("div",{style:{gridColumn:1,gridRow:1},children:(0,o.jsx)(v,{options:x,onReady:function(e,t){a.current=e,function(){try{a.current.volume((0,j.$o)(O)||1)}catch(e){console.warn(e)}}(),function(e,t){if(window.hasOwnProperty("WebKitPlaybackTargetAvailabilityEvent")){var n=t.getComponent("Button"),i=t.extend(n,{constructor:function(){n.call(this,e)},handleClick:function(){try{document.getElementsByTagName("video")[0].webkitShowPlaybackTargetPicker()}catch(e){console.error(e)}}});e.controlBar.addChild(new i).addClass("vjs-airplay")}}(e,t),e.on("waiting",(function(){e.log("player is waiting")})),e.on("dispose",(function(){e.log("player will dispose"),J.stop()})),e.on("playing",(function(){e.log("player is playing"),J.start(),d(!0)})),e.on("pause",(function(){e.log("player is paused"),J.stop(),d(!1)})),e.on("ended",(function(){e.log("player is ended"),J.stop(),d(!1)})),t.hookOnce(),e.on("volumechange",m),(q=new P(e,t)).setClockSkew(p),w(e,t)}})}),(0,o.jsx)("div",{style:{gridColumn:1,gridRow:1},children:!f&&(0,o.jsx)(C,{online:n,initialSrc:"/thumbnail.jpg",src:"/thumbnail.jpg"})})]})}},29316:function(e){e.exports={outerContainer:"OfflineBanner_outerContainer__3AbsB",innerContainer:"OfflineBanner_innerContainer__zTm13",header:"OfflineBanner_header__Vu20o",footer:"OfflineBanner_footer__o3Zl5"}},93132:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},55206:function(e){e.exports={player:"VideoJS_player__GT8FN",poster:"VideoJS_poster__nlmqm"}},1125:function(e){e.exports={poster:"VideoPoster_poster__RDkSk"}},25893:function(){}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/2854-f24d343afbc03b5b.js b/static/web/_next/static/chunks/2854-f24d343afbc03b5b.js new file mode 100644 index 000000000..e63464754 --- /dev/null +++ b/static/web/_next/static/chunks/2854-f24d343afbc03b5b.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2854],{1698:function(e,t,n){"use strict";n.d(t,{R:function(){return l}});var i=n(85893),r=n(27049),a=n(71577),s=n(92032),o=n(29316),u=n.n(o),l=function(e){var t=e.name,n=e.text;return(0,i.jsx)("div",{className:u().outerContainer,children:(0,i.jsxs)("div",{className:u().innerContainer,children:[(0,i.jsxs)("div",{className:u().header,children:[t," is currently offline."]}),(0,i.jsx)(r.Z,{}),(0,i.jsx)("div",{children:n}),(0,i.jsx)("div",{className:u().footer,children:(0,i.jsxs)(a.Z,{type:"primary",onClick:function(){return console.log("show notification modal")},children:[(0,i.jsx)(s.Z,{}),"Notify when Live"]})})]})})}},36887:function(e,t,n){"use strict";n.d(t,{X:function(){return c}});var i=n(85893),r=n(45938),a=n(68730),s=n(67294),o=n(99611),u=n(93132),l=n.n(u);var c=function(e){var t=e.online,n=e.lastConnectTime,u=e.lastDisconnectTime,c=e.viewerCount,h=(0,s.useState)(new Date)[1];(0,s.useEffect)((function(){var e=setInterval((function(){return h(new Date)}),1e3);return function(){clearInterval(e)}}),[]);var f,d="";if(t&&n){var m=function(e){var t=(0,a.Z)({start:e,end:new Date});return t.days>1?"".concat(t.days," days ").concat(t.hours," hours"):t.hours>=1?"".concat(t.hours," hours ").concat(t.minutes," minutes"):"".concat(t.minutes," minutes ").concat(t.seconds," seconds")}(new Date(n));d=t?"Live for ".concat(m):"Offline",f=c>0&&(0,i.jsxs)("span",{children:[(0,i.jsx)(o.Z,{})," ",c]})}else t||(d="Offline",u&&(f="Last live ".concat((0,r.Z)(new Date(u))," ago.")));return(0,i.jsxs)("div",{className:l().statusbar,children:[(0,i.jsx)("div",{children:d}),(0,i.jsx)("div",{children:f})]})};c.defaultProps={lastConnectTime:null,lastDisconnectTime:null}},83818:function(e,t,n){"use strict";n.d(t,{M:function(){return U}});var i=n(47568),r=n(828),a=n(70655),s=n(85893),o=n(67294),u=n(4480),l=n(49218),c=n(85215),h=n(55206),f=n.n(h);n(33108);var d=function(e){var t=e.options,n=e.onReady,i=o.useRef(null),r=o.useRef(null);return o.useEffect((function(){if(!r.current){var e=i.current,a=r.current=(0,c.Z)(e,t,(function(){return a.log("player is ready"),n&&n(a,c.Z)}));a.autoplay(t.autoplay),a.src(t.sources)}}),[t,i]),o.useEffect((function(){var e=r.current;return function(){e&&(e.dispose(),r.current=null)}}),[r]),(0,s.jsx)("div",{"data-vjs-player":!0,children:(0,s.jsx)("video",{ref:i,className:"video-js vjs-big-play-centered ".concat(f().player," vjs-owncast")})})},m=n(51438);var v=function(){function e(){(0,m.Z)(this,e)}var t=e.prototype;return t.start=function(){this.stop(),this.timer=setInterval((function(){!function(){try{fetch("/api/ping")}catch(e){console.error(e)}}()}),4e3)},t.stop=function(){clearInterval(this.timer)},e}(),y=n(26042),p=n(69396),g=n(29815),b={position:"absolute",width:"100%",height:"100%"},k=function(e){var t=e.src,n=void 0===t?"":t,i=e.width,r=e.height,a=e.objectFit,u=void 0===a?"fill":a,l=e.duration,c=void 0===l?"1s":l,h=(0,o.useMemo)((function(){return{display:"inline-block",position:"relative",width:i,height:r}}),[i,r]),f=(0,o.useMemo)((function(){return[(0,p.Z)((0,y.Z)({},b),{objectFit:u,opacity:0,transition:"opacity ".concat(c)}),(0,p.Z)((0,y.Z)({},b),{objectFit:u,opacity:1,transition:"opacity ".concat(c)}),(0,p.Z)((0,y.Z)({},b),{objectFit:u,opacity:0})]}),[u,c]),d=(0,o.useState)(0),m=d[0],v=d[1],k=(0,o.useState)(["",""]),T=k[0],w=k[1],C=n!==T[1]?n:"",j=function(){v((m+1)%3),w([T[1],C])};return(0,s.jsx)("span",{style:h,children:(0,g.Z)(T).concat([C]).map((function(e,t){return""!==e&&(0,s.jsx)("img",{src:e,alt:"",style:f[t],onLoad:2===t?j:void 0},e)}))})};k.defaultProps={objectFit:"fill",duration:"3s"};var T=n(1125),w=n.n(T),C=function(e){var t,n=e.online,i=e.initialSrc,r=e.src,a=(0,o.useState)(i),u=a[0],l=a[1],c=(0,o.useState)("0s"),h=c[0],f=c[1];return(0,o.useEffect)((function(){clearInterval(t),t=setInterval((function(){"0s"===h&&f("3s"),l("".concat(r,"?").concat(Date.now()))}),2e4)}),[]),(0,s.jsxs)("div",{className:w().poster,children:[!n&&(0,s.jsx)("img",{src:i,alt:"logo"}),n&&(0,s.jsx)(k,{src:u,duration:h,objectFit:"cover",width:"100%",height:"100%"})]})},j=n(73682),B=n(1899),x=n(52951);var I=function(){function e(t,n){var i=this;(0,m.Z)(this,e),this.player=t,this.supportsDetailedMetrics=!1,this.hasPerformedInitialVariantChange=!1,this.clockSkewMs=0,this.segmentDownloadTime=[],this.bandwidthTracking=[],this.latencyTracking=[],this.errors=0,this.qualityVariantChanges=0,this.isBuffering=!1,this.bufferingDurationTimer=0,this.collectPlaybackMetricsTimer=0,this.videoJSReady=this.videoJSReady.bind(this),this.handlePlaying=this.handlePlaying.bind(this),this.handleBuffering=this.handleBuffering.bind(this),this.handleEnded=this.handleEnded.bind(this),this.handleError=this.handleError.bind(this),this.send=this.send.bind(this),this.collectPlaybackMetrics=this.collectPlaybackMetrics.bind(this),this.handleNoLongerBuffering=this.handleNoLongerBuffering.bind(this),this.player.on("canplaythrough",this.handleNoLongerBuffering),this.player.on("error",this.handleError),this.player.on("stalled",this.handleBuffering),this.player.on("waiting",this.handleBuffering),this.player.on("playing",this.handlePlaying),this.player.on("ended",this.handleEnded);var r=n.xhr;n.Vhs.xhr=function(){for(var e=arguments.length,t=new Array(e),n=0;n=40)return;this.trackLatency(a)}catch(s){console.warn(s)}}}},{key:"send",value:function(){var e=this;return(0,i.Z)((function(){var t,n,i,r,s,o,u,l,c,h,f,d;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:if(0===e.segmentDownloadTime.length)return[2];if(!e.player||e.player.paused())return[2];t=e.errors,e.supportsDetailedMetrics?(r=(i=function(e){return e.reduce((function(e,t){return e+t}),0)/e.length})(e.segmentDownloadTime)/1e3,s=Math.round(1e3*r)/1e3,o=i(e.bandwidthTracking)/1e3,u=Math.round(1e3*o)/1e3,l=i(e.latencyTracking)/1e3,c=Math.round(1e3*l)/1e3,n={bandwidth:u,latency:c,downloadDuration:s,errors:t+e.isBuffering?1:0,qualityVariantChanges:e.qualityVariantChanges}):n={errors:t+e.isBuffering?1:0},e.errors=0,e.qualityVariantChanges=0,e.segmentDownloadTime=[],e.bandwidthTracking=[],e.latencyTracking=[],(f={}).method="POST",f.headers={"Content-Type":"application/json"},f.body=JSON.stringify(n),h=f,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch("/api/metrics/playback",h)];case 2:return a.sent(),[3,4];case 3:return d=a.sent(),console.error(d),[3,4];case 4:return[2]}}))}))()}}]),e}(),E=I,P=n(45785),M=n(82662),_=n(88029),S=n(91224);var Z=function(e,t,n,i){var r=t.getComponent("MenuItem"),a=t.getComponent("MenuItem"),s=t.getComponent("MenuButton"),o=function(e){(0,_.Z)(n,e);var t=(0,S.Z)(n);function n(e,i){return(0,m.Z)(this,n),t.call(this,e,i)}return n.prototype.createEl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"button",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,P.Z)((0,M.Z)(n.prototype),"createEl",this).call(this,e,t,i);return r.innerHTML='
',r},n}(r),u=new a(e,{selectable:!0});u.setAttribute("class","latency-toggle-item"),u.on("click",(function(){i()}));var l=new o(e,{selectable:!1}),c=t.extend(s,{constructor:function(){s.call(this,e)},createItems:function(){var t=e.tech({IWillNotUseThisInPlugins:!0}),i=new a(e,{selectable:!0,label:"Auto"}),r=n.map((function(n){var i=new a(e,{selectable:!0,label:n.name});return i.on("click",(function(){t?(t.vhs.representations().forEach((function(e,t){e.enabled(t===n.index)})),i.selected(!1)):console.warn("Invalid attempt to access null player tech")})),i}));i.on("click",(function(){t.vhs.representations().forEach((function(e){e.enabled(!0)})),i.selected(!1)}));var s=!!t&&!!t.vhs;return n.length<2&&s?[u]:n.length>1&&s?[i].concat((0,g.Z)(r),[l,u]):s||1!==n.length?[i].concat((0,g.Z)(r)):[]}}),h=e.tech({IWillNotUseThisInPlugins:!0});if(!(n.length<2)||h&&h.vhs){var f=new c;return f.addClass("vjs-quality-selector"),f}};var D=function(){function e(t){(0,m.Z)(this,e),this.player=t,this.playing=!1,this.enabled=!1,this.running=!1,this.inTimeout=!1,this.jumpingToLiveIgnoreBuffer=!1,this.timeoutTimer=0,this.checkTimer=0,this.bufferingCounter=0,this.bufferingTimer=0,this.playbackRate=1,this.lastJumpOccurred=null,this.startupTime=new Date,this.clockSkewMs=0,this.currentLatency=null,this.bufferedAtLatency=[],this.player.on("playing",this.handlePlaying.bind(this)),this.player.on("pause",this.handlePause.bind(this)),this.player.on("error",this.handleError.bind(this)),this.player.on("waiting",this.handleBuffering.bind(this)),this.player.on("stalled",this.handleBuffering.bind(this)),this.player.on("ended",this.handleEnded.bind(this)),this.player.on("canplaythrough",this.handlePlaying.bind(this)),this.player.on("canplay",this.handlePlaying.bind(this)),this.check=this.check.bind(this),this.start=this.start.bind(this),this.enable=this.enable.bind(this),this.countBufferingEvent=this.countBufferingEvent.bind(this)}return(0,x.Z)(e,[{key:"setClockSkew",value:function(e){this.clockSkewMs=e}},{key:"check",value:function(){if(!((new Date).getTime()-this.startupTime.getTime()<1e4)&&!this.player.paused()&&!this.player.seeking()&&!this.inTimeout&&this.enabled){var e=this.player.tech({IWillNotUseThisInPlugins:!0});if(e&&e.vhs)if(2===this.player.networkState()){var t=0;try{if(0===e.vhs.stats.buffered.length)return void this.timeout();e.vhs.stats.buffered.forEach((function(e){t+=e.end-e.start}))}catch(y){console.error(y)}var n=e.vhs.playlists.media().attributes.BANDWIDTH,i=e.vhs.systemBandwidth/n;try{var a=function(e){for(var t,n=e.vhs.playlists.media(),i=e.currentTime(),a=0,s=n.segments.length;a=l&&(l=u+3e3);var c=a.dateTimeObject.getTime(),h=(new Date).getTime()+this.clockSkewMs-c;if(this.currentLatency=h,Math.abs(h)>8e4)return void this.timeout();if(h>l){if(this.shouldJumpToLive()&&h>l+5e3){var f=h/1e3-3*a.duration,d=this.player.currentTime()+f;console.info("latency",h/1e3,"jumping",f,"to live from ",this.player.currentTime()," to ",d);var m=e.vhs.stats.buffered[0].end;if(d>e.vhs.stats.buffered[0].startthis.playbackRate+.02&&(v=this.playbackRate+.02),v=Math.round(v*Math.pow(10,3))/Math.pow(10,3),this.start(v)}else h<=u&&this.stop();console.info("latency",h/1e3,"min",u/1e3,"max",l/1e3,"playback rate",this.playbackRate,"enabled:",this.enabled,"running: ",this.running,"skew: ",this.clockSkewMs,"rebuffer events: ",this.bufferingCounter)}catch(p){}}}}},{key:"shouldJumpToLive",value:function(){return!(this.bufferingCounter>1)&&(new Date).getTime()-this.lastJumpOccurred>2e4}},{key:"jump",value:function(e){var t=this;this.jumpingToLiveIgnoreBuffer=!0,this.performedInitialLiveJump=!0,this.lastJumpOccurred=new Date,console.info("current time",this.player.currentTime(),"seeking to",e),this.player.currentTime(e),setTimeout((function(){t.jumpingToLiveIgnoreBuffer=!1}),5e3)}},{key:"setPlaybackRate",value:function(e){this.playbackRate=e,this.player.playbackRate(e)}},{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;!this.inTimeout&&this.enabled&&e!==this.playbackRate&&(this.running=!0,this.setPlaybackRate(e))}},{key:"stop",value:function(){this.running&&console.log("stopping latency compensator..."),this.running=!1,this.setPlaybackRate(1)}},{key:"enable",value:function(){var e=this;this.enabled=!0,clearInterval(this.checkTimer),clearTimeout(this.bufferingTimer),this.checkTimer=setInterval((function(){e.check()}),3e3)}},{key:"disable",value:function(){clearInterval(this.checkTimer),clearTimeout(this.timeoutTimer),this.stop(),this.enabled=!1}},{key:"timeout",value:function(){var e=this;this.jumpingToLiveIgnoreBuffer||(this.inTimeout=!0,this.stop(),clearTimeout(this.timeoutTimer),this.timeoutTimer=setTimeout((function(){e.endTimeout()}),3e4))}},{key:"endTimeout",value:function(){clearTimeout(this.timeoutTimer),this.inTimeout=!1}},{key:"handlePlaying",value:function(){var e=this.playing;this.playing=!0,clearTimeout(this.bufferingTimer),this.enabled&&this.shouldJumpToLive()&&(e||(this.jumpingToLiveIgnoreBuffer=!0,this.player.liveTracker.seekToLiveEdge(),this.lastJumpOccurred=new Date))}},{key:"handlePause",value:function(){this.playing=!1}},{key:"handleEnded",value:function(){this.enabled&&this.disable()}},{key:"handleError",value:function(){this.enabled&&this.timeout()}},{key:"countBufferingEvent",value:function(){var e=this;this.bufferingCounter+=1,this.bufferingCounter>4?this.disable():(this.bufferedAtLatency.push(this.currentLatency),console.log("latency compensation timeout due to buffering:",this.bufferingCounter,"buffering events of",4),setTimeout((function(){e.bufferingCounter>0&&(e.bufferingCounter-=1)}),18e4))}},{key:"handleBuffering",value:function(){var e=this;this.enabled&&!this.inTimeout&&(this.jumpingToLiveIgnoreBuffer?this.jumpingToLiveIgnoreBuffer=!1:(this.timeout(),clearTimeout(this.bufferingTimer),this.bufferingTimer=setTimeout((function(){e.countBufferingEvent()}),200)))}}]),e}(),L=D,R="/api/video/variants",N="owncast_volume",O="latencyCompensatorEnabled",V=new v,J=null,q=null,A=!1;function F(){return W.apply(this,arguments)}function W(){return(W=(0,i.Z)((function(){var e,t;return(0,a.__generator)(this,(function(n){switch(n.label){case 0:e=[],n.label=1;case 1:return n.trys.push([1,4,,5]),[4,fetch(R)];case 2:return[4,n.sent().json()];case 3:return e=n.sent(),[3,5];case 4:return t=n.sent(),console.error(t),[3,5];case 5:return[2,e]}}))}))).apply(this,arguments)}var U=function(e){var t=e.source,n=e.online,c=o.useRef(null),h=(0,r.Z)((0,u.FV)(B.We),2),f=h[0],m=h[1],v=(0,u.sJ)(B.g8),y=function(){(0,j.qQ)(N,c.current.muted()?0:c.current.volume())},p=function(e){var t=document.querySelector(".latency-toggle-item > .vjs-menu-item-text");t&&(t.innerHTML=e)},g=function(){q&&q.stop(),A=!0,(q=new L(c.current)).setClockSkew(v),q.enable(),(0,j.qQ)(O,!0),p("disable minimized latency")},b=function(){q&&q.disable(),q=null,A=!1,(0,j.qQ)(O,!1),p('enable minimized latency (experimental)')},k=function(){A?b():g()},T=function(){var e=(0,i.Z)((function(e,t){var n,i,r;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return[4,F()];case 1:return n=a.sent(),i=Z(e,t,n,k),r={},e.controlBar.addChild(i,r,e.controlBar.children_.length-2),function(e){var t=e.tech({IWillNotUseThisInPlugins:!0});t&&t.vhs&&("true"===(0,j.$o)(O)&&t&&t.vhs?g():b())}(e),[2]}}))}));return function(t,n){return e.apply(this,arguments)}}();(0,l.y1)("space",(function(){c.current.paused()?c.current.play():c.current.pause()}),{enableOnContentEditable:!1}),(0,l.y1)("f",(function(){c.current.isFullscreen()?c.current.exitFullscreen():c.current.requestFullscreen()}),{enableOnContentEditable:!1}),(0,l.y1)("m",(function(){c.current.muted()||0===c.current.volume()?c.current.volume(.7):c.current.volume(0)}),{enableOnContentEditable:!1}),(0,l.y1)("0",(function(){return c.current.volume(c.current.volume()+.1)}),{enableOnContentEditable:!1}),(0,l.y1)("9",(function(){return c.current.volume(c.current.volume()-.1)}),{enableOnContentEditable:!1});var w={autoplay:!1,controls:!0,responsive:!0,fluid:!1,playsInline:!0,liveui:!0,preload:"auto",controlBar:{progressControl:{seekBar:!1}},html5:{vhs:{enableLowInitialPlaylist:!0,experimentalBufferBasedABR:!0,useNetworkInformationApi:!0,maxPlaylistRetries:30}},liveTracker:{trackingThreshold:0,liveTolerance:15},sources:[{src:t,type:"application/x-mpegURL"}]};return(0,o.useEffect)((function(){J&&J.setClockSkew(v)}),[v]),(0,s.jsxs)("div",{style:{display:"grid"},children:[n&&(0,s.jsx)("div",{style:{gridColumn:1,gridRow:1},children:(0,s.jsx)(d,{options:w,onReady:function(e,t){c.current=e,function(){try{c.current.volume((0,j.$o)(N)||1)}catch(e){console.warn(e)}}(),function(e,t){if(window.hasOwnProperty("WebKitPlaybackTargetAvailabilityEvent")){var n=t.getComponent("Button"),i=t.extend(n,{constructor:function(){n.call(this,e)},handleClick:function(){try{document.getElementsByTagName("video")[0].webkitShowPlaybackTargetPicker()}catch(e){console.error(e)}}});e.controlBar.addChild(new i).addClass("vjs-airplay")}}(e,t),e.on("waiting",(function(){e.log("player is waiting")})),e.on("dispose",(function(){e.log("player will dispose"),V.stop()})),e.on("playing",(function(){e.log("player is playing"),V.start(),m(!0)})),e.on("pause",(function(){e.log("player is paused"),V.stop(),m(!1)})),e.on("ended",(function(){e.log("player is ended"),V.stop(),m(!1)})),t.hookOnce(),e.on("volumechange",y),(J=new E(e,t)).setClockSkew(v),T(e,t)}})}),(0,s.jsx)("div",{style:{gridColumn:1,gridRow:1},children:!f&&(0,s.jsx)(C,{online:n,initialSrc:"/thumbnail.jpg",src:"/thumbnail.jpg"})})]})}},29316:function(e){e.exports={outerContainer:"OfflineBanner_outerContainer__3AbsB",innerContainer:"OfflineBanner_innerContainer__zTm13",header:"OfflineBanner_header__Vu20o",footer:"OfflineBanner_footer__o3Zl5"}},93132:function(e){e.exports={statusbar:"Statusbar_statusbar__AtVnB"}},55206:function(e){e.exports={player:"VideoJS_player__GT8FN",poster:"VideoJS_poster__nlmqm"}},1125:function(e){e.exports={poster:"VideoPoster_poster__RDkSk"}},25893:function(){}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/2877-4ee8a344719d3523.js b/static/web/_next/static/chunks/2877-4ee8a344719d3523.js new file mode 100644 index 000000000..18f6844a6 --- /dev/null +++ b/static/web/_next/static/chunks/2877-4ee8a344719d3523.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2877],{72877:function(e,n,a){a.d(n,{h:function(){return C}});var t=a(47568),s=a(14924),l=a(26042),i=a(69396),c=a(29815),o=a(70655),r=a(85893),u=a(67294),d=a(84485),f=a(71577),m=a(69677),p=a(10355),h=a(85402),x=a(48689),j=a(38939),v=a(58827),N=a(25964),k=function(e){var n=e.iconList,a=e.selectedOption,t=e.onSelected,s=""===a?null:a;return(0,r.jsxs)("div",{className:"social-dropdown-container",children:[(0,r.jsx)("p",{className:"description",children:"If you are looking for a platform name not on this list, please select Other and type in your own name. A logo will not be provided."}),(0,r.jsxs)("div",{className:"formfield-container",children:[(0,r.jsx)("div",{className:"label-side",children:(0,r.jsx)("span",{className:"formfield-label",children:"Social Platform"})}),(0,r.jsx)("div",{className:"input-side",children:(0,r.jsxs)(j.Z,{style:{width:240},className:"social-dropdown",placeholder:"Social platform...",defaultValue:s,value:s,onSelect:function(e){t&&t(e)},children:[n.map((function(e){var n=e.platform,a=e.icon,t=e.key,s="".concat(v.WB).concat(a.slice(1));return(0,r.jsxs)(j.Z.Option,{className:"social-option",value:t,children:[(0,r.jsx)("span",{className:"option-icon",children:(0,r.jsx)("img",{src:s,alt:"",className:"option-icon"})}),(0,r.jsx)("span",{className:"option-label",children:n})]},"platform-".concat(t))})),(0,r.jsx)(j.Z.Option,{className:"social-option",value:N.z_,children:"Other..."},"platform-".concat(N.z_))]})})]})]})},Z=a(35159),b=a(19411),g=a(24389),y=a(83192),S=a(25521),w=d.Z.Title,C=function(){var e=(0,u.useState)([]),n=e[0],a=e[1],d=(0,u.useState)([]),j=d[0],C=d[1],_=(0,u.useState)(!1),E=_[0],O=_[1],z=(0,u.useState)(!1),I=z[0],T=z[1],H=(0,u.useState)(!1),L=H[0],A=H[1],B=(0,u.useState)(-1),P=B[0],U=B[1],D=(0,u.useState)(N.wC),V=D[0],W=D[1],F=(0,u.useState)(null),K=F[0],Q=F[1],R=(0,u.useContext)(Z.aC)||{},Y=R.serverConfig,$=R.setFieldInConfigState,q=Y.instanceDetails,G=q.socialHandles,J=null,M=function(){var e=(0,t.Z)((function(){var e,n,t,s;return(0,o.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),n={},[4,(0,v.rQ)(v.$i,(n.auth=!1,n))];case 1:return e=i.sent(),t=Object.keys(e).map((function(n){return(0,l.Z)({key:n},e[n])})),a(t),[3,3];case 2:return s=i.sent(),console.log(s),[3,3];case 3:return[2]}}))}));return function(){return e.apply(this,arguments)}}(),X=function(e){return n.find((function(n){return n.key===e}))||!1},ee=""!==V.platform&&!n.find((function(e){return e.key===V.platform}));(0,u.useEffect)((function(){M()}),[]),(0,u.useEffect)((function(){q.socialHandles&&C(G)}),[q]);var ne=function(){Q(null),J=null,clearTimeout(J)},ae=function(){O(!1),U(-1),T(!1),A(!1),W((0,l.Z)({},N.wC))},te=function(){ae()},se=function(e,n){W((0,i.Z)((0,l.Z)({},V),(0,s.Z)({},e,n)))},le=function(){var e=(0,t.Z)((function(e){var n;return(0,o.__generator)(this,(function(a){switch(a.label){case 0:return n={},[4,(0,N.Si)((n.apiPath=N.c9,n.data={value:e},n.onSuccess=function(){$({fieldName:"socialHandles",value:e,path:"instanceDetails"}),A(!1),te(),Q((0,y.kg)(y.zv)),J=setTimeout(ne,N.sI)},n.onError=function(e){Q((0,y.kg)(y.Un,"There was an error: ".concat(e))),A(!1),J=setTimeout(ne,N.sI)},n))];case 1:return a.sent(),[2]}}))}));return function(n){return e.apply(this,arguments)}}(),ie=[{title:"Social Link",dataIndex:"",key:"combo",render:function(e,n){var a=n.platform,t=n.url,s=X(a);if(!s)return(0,r.jsx)("div",{className:"social-handle-cell",children:(0,r.jsxs)("p",{className:"option-label",children:[(0,r.jsx)("strong",{children:a}),(0,r.jsx)("span",{className:"handle-url",title:t,children:t})]})});var l=s.icon,i=s.platform,c="".concat(v.WB).concat(l.slice(1));return(0,r.jsxs)("div",{className:"social-handle-cell",children:[(0,r.jsx)("span",{className:"option-icon",children:(0,r.jsx)("img",{src:c,alt:"",className:"option-icon"})}),(0,r.jsxs)("p",{className:"option-label",children:[(0,r.jsx)("strong",{children:i}),(0,r.jsx)("span",{className:"handle-url",title:t,children:t})]})]})}},{title:"",dataIndex:"",key:"edit",render:function(e,n,a){return(0,r.jsxs)("div",{className:"actions",children:[(0,r.jsx)(f.Z,{size:"small",onClick:function(){var e=j[a];U(a),W((0,l.Z)({},e)),O(!0),X(e.platform)||T(!0)},children:"Edit"}),(0,r.jsx)(f.Z,{className:"delete-button",icon:(0,r.jsx)(x.Z,{}),size:"small",onClick:function(){return function(e){var n=(0,c.Z)(j);n.splice(e,1),le(n)}(a)}})]})}}],ce={disabled:!(0,b.Z)(V.url)},oe=(0,r.jsxs)("div",{className:"other-field-container formfield-container",children:[(0,r.jsx)("div",{className:"label-side"}),(0,r.jsx)("div",{className:"input-side",children:(0,r.jsx)(m.Z,{placeholder:"Other platform name",defaultValue:V.platform,onChange:function(e){var n=e.target.value;se("platform",n)}})})]});return(0,r.jsxs)("div",{className:"social-links-edit-container",children:[(0,r.jsx)(w,{level:3,className:"section-title",children:"Your Social Handles"}),(0,r.jsx)("p",{className:"description",children:"Add all your social media handles and links to your other profiles here."}),(0,r.jsx)(S.E,{status:K}),(0,r.jsx)(p.Z,{className:"social-handles-table",pagination:!1,size:"small",rowKey:function(e){return"".concat(e.platform,"-").concat(e.url)},columns:ie,dataSource:j}),(0,r.jsx)(h.Z,{title:"Edit Social Handle",visible:E,onOk:function(){A(!0);var e=j.length?(0,c.Z)(j):[];-1===P?e.push(V):e.splice(P,1,V),le(e)},onCancel:te,confirmLoading:L,okButtonProps:ce,children:(0,r.jsxs)("div",{className:"social-handle-modal-content",children:[(0,r.jsx)(k,{iconList:n,selectedOption:ee?N.z_:V.platform,onSelected:function(e){e===N.z_?(T(!0),se("platform","")):(T(!1),se("platform",e))}}),I&&oe,(0,r.jsx)("br",{}),(0,r.jsx)(g.nv,{fieldName:"social-url",label:"URL",placeholder:{mastodon:"https://mastodon.social/@username",twitter:"https://twitter.com/username"}[V.platform]||"Url to page",value:V.url,onChange:function(e){var n=e.value;se("url",n)},useTrim:!0,type:"url",pattern:b.a}),(0,r.jsx)(S.E,{status:K})]})}),(0,r.jsx)("br",{}),(0,r.jsx)(f.Z,{type:"primary",onClick:function(){ae(),O(!0)},children:"Add a new social link"})]})}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/2877-6814b98389ffaf4c.js b/static/web/_next/static/chunks/2877-6814b98389ffaf4c.js deleted file mode 100644 index 266e1bd08..000000000 --- a/static/web/_next/static/chunks/2877-6814b98389ffaf4c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2877],{72877:function(e,n,a){a.d(n,{h:function(){return E}});var t=a(47568),s=a(14924),l=a(26042),i=a(69396),c=a(29815),o=a(34051),r=a.n(o),u=a(85893),d=a(67294),p=a(84485),f=a(71577),m=a(69677),h=a(10355),x=a(85402),v=a(48689),j=a(38939),N=a(58827),k=a(25964),Z=function(e){var n=e.iconList,a=e.selectedOption,t=e.onSelected,s=""===a?null:a;return(0,u.jsxs)("div",{className:"social-dropdown-container",children:[(0,u.jsx)("p",{className:"description",children:"If you are looking for a platform name not on this list, please select Other and type in your own name. A logo will not be provided."}),(0,u.jsxs)("div",{className:"formfield-container",children:[(0,u.jsx)("div",{className:"label-side",children:(0,u.jsx)("span",{className:"formfield-label",children:"Social Platform"})}),(0,u.jsx)("div",{className:"input-side",children:(0,u.jsxs)(j.Z,{style:{width:240},className:"social-dropdown",placeholder:"Social platform...",defaultValue:s,value:s,onSelect:function(e){t&&t(e)},children:[n.map((function(e){var n=e.platform,a=e.icon,t=e.key,s="".concat(N.WB).concat(a.slice(1));return(0,u.jsxs)(j.Z.Option,{className:"social-option",value:t,children:[(0,u.jsx)("span",{className:"option-icon",children:(0,u.jsx)("img",{src:s,alt:"",className:"option-icon"})}),(0,u.jsx)("span",{className:"option-label",children:n})]},"platform-".concat(t))})),(0,u.jsx)(j.Z.Option,{className:"social-option",value:k.z_,children:"Other..."},"platform-".concat(k.z_))]})})]})]})},S=a(35159),b=a(19411),y=a(24389),g=a(83192),w=a(25521),C=p.Z.Title,E=function(){var e=(0,d.useState)([]),n=e[0],a=e[1],o=(0,d.useState)([]),p=o[0],j=o[1],E=(0,d.useState)(!1),O=E[0],z=E[1],_=(0,d.useState)(!1),I=_[0],T=_[1],H=(0,d.useState)(!1),L=H[0],A=H[1],B=(0,d.useState)(-1),P=B[0],U=B[1],D=(0,d.useState)(k.wC),V=D[0],W=D[1],F=(0,d.useState)(null),K=F[0],Q=F[1],R=(0,d.useContext)(S.aC)||{},Y=R.serverConfig,$=R.setFieldInConfigState,q=Y.instanceDetails,G=q.socialHandles,J=null,M=function(){var e=(0,t.Z)(r().mark((function e(){var n,t;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,N.rQ)(N.$i,{auth:!1});case 3:n=e.sent,t=Object.keys(n).map((function(e){return(0,l.Z)({key:e},n[e])})),a(t),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),X=function(e){return n.find((function(n){return n.key===e}))||!1},ee=""!==V.platform&&!n.find((function(e){return e.key===V.platform}));(0,d.useEffect)((function(){M()}),[]),(0,d.useEffect)((function(){q.socialHandles&&j(G)}),[q]);var ne=function(){Q(null),J=null,clearTimeout(J)},ae=function(){z(!1),U(-1),T(!1),A(!1),W((0,l.Z)({},k.wC))},te=function(){ae()},se=function(e,n){W((0,i.Z)((0,l.Z)({},V),(0,s.Z)({},e,n)))},le=function(){var e=(0,t.Z)(r().mark((function e(n){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,k.Si)({apiPath:k.c9,data:{value:n},onSuccess:function(){$({fieldName:"socialHandles",value:n,path:"instanceDetails"}),A(!1),te(),Q((0,g.kg)(g.zv)),J=setTimeout(ne,k.sI)},onError:function(e){Q((0,g.kg)(g.Un,"There was an error: ".concat(e))),A(!1),J=setTimeout(ne,k.sI)}});case 2:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),ie=[{title:"Social Link",dataIndex:"",key:"combo",render:function(e,n){var a=n.platform,t=n.url,s=X(a);if(!s)return(0,u.jsx)("div",{className:"social-handle-cell",children:(0,u.jsxs)("p",{className:"option-label",children:[(0,u.jsx)("strong",{children:a}),(0,u.jsx)("span",{className:"handle-url",title:t,children:t})]})});var l=s.icon,i=s.platform,c="".concat(N.WB).concat(l.slice(1));return(0,u.jsxs)("div",{className:"social-handle-cell",children:[(0,u.jsx)("span",{className:"option-icon",children:(0,u.jsx)("img",{src:c,alt:"",className:"option-icon"})}),(0,u.jsxs)("p",{className:"option-label",children:[(0,u.jsx)("strong",{children:i}),(0,u.jsx)("span",{className:"handle-url",title:t,children:t})]})]})}},{title:"",dataIndex:"",key:"edit",render:function(e,n,a){return(0,u.jsxs)("div",{className:"actions",children:[(0,u.jsx)(f.Z,{size:"small",onClick:function(){var e=p[a];U(a),W((0,l.Z)({},e)),z(!0),X(e.platform)||T(!0)},children:"Edit"}),(0,u.jsx)(f.Z,{className:"delete-button",icon:(0,u.jsx)(v.Z,{}),size:"small",onClick:function(){return function(e){var n=(0,c.Z)(p);n.splice(e,1),le(n)}(a)}})]})}}],ce={disabled:!(0,b.Z)(V.url)},oe=(0,u.jsxs)("div",{className:"other-field-container formfield-container",children:[(0,u.jsx)("div",{className:"label-side"}),(0,u.jsx)("div",{className:"input-side",children:(0,u.jsx)(m.Z,{placeholder:"Other platform name",defaultValue:V.platform,onChange:function(e){var n=e.target.value;se("platform",n)}})})]});return(0,u.jsxs)("div",{className:"social-links-edit-container",children:[(0,u.jsx)(C,{level:3,className:"section-title",children:"Your Social Handles"}),(0,u.jsx)("p",{className:"description",children:"Add all your social media handles and links to your other profiles here."}),(0,u.jsx)(w.E,{status:K}),(0,u.jsx)(h.Z,{className:"social-handles-table",pagination:!1,size:"small",rowKey:function(e){return"".concat(e.platform,"-").concat(e.url)},columns:ie,dataSource:p}),(0,u.jsx)(x.Z,{title:"Edit Social Handle",visible:O,onOk:function(){A(!0);var e=p.length?(0,c.Z)(p):[];-1===P?e.push(V):e.splice(P,1,V),le(e)},onCancel:te,confirmLoading:L,okButtonProps:ce,children:(0,u.jsxs)("div",{className:"social-handle-modal-content",children:[(0,u.jsx)(Z,{iconList:n,selectedOption:ee?k.z_:V.platform,onSelected:function(e){e===k.z_?(T(!0),se("platform","")):(T(!1),se("platform",e))}}),I&&oe,(0,u.jsx)("br",{}),(0,u.jsx)(y.nv,{fieldName:"social-url",label:"URL",placeholder:{mastodon:"https://mastodon.social/@username",twitter:"https://twitter.com/username"}[V.platform]||"Url to page",value:V.url,onChange:function(e){var n=e.value;se("url",n)},useTrim:!0,type:"url",pattern:b.a}),(0,u.jsx)(w.E,{status:K})]})}),(0,u.jsx)("br",{}),(0,u.jsx)(f.Z,{type:"primary",onClick:function(){ae(),z(!0)},children:"Add a new social link"})]})}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/927-f6193b1a63a6a532.js b/static/web/_next/static/chunks/927-8d644c10fb3512bc.js similarity index 65% rename from static/web/_next/static/chunks/927-f6193b1a63a6a532.js rename to static/web/_next/static/chunks/927-8d644c10fb3512bc.js index 56dcbacbb..5a2eae753 100644 --- a/static/web/_next/static/chunks/927-f6193b1a63a6a532.js +++ b/static/web/_next/static/chunks/927-8d644c10fb3512bc.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[927],{48689:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(1413),o=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},s=r(42135),a=function(e,t){return o.createElement(s.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:i}))};a.displayName="DeleteOutlined";var c=o.forwardRef(a)},88484:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(1413),o=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},s=r(42135),a=function(e,t){return o.createElement(s.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:i}))};a.displayName="UploadOutlined";var c=o.forwardRef(a)},94594:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(87462),o=r(4942),i=r(50888),s=r(94184),a=r.n(s),c=r(97685),l=r(91),u=r(67294),p=r(21770),f=r(15105),h=u.forwardRef((function(e,t){var r,n=e.prefixCls,i=void 0===n?"rc-switch":n,s=e.className,h=e.checked,d=e.defaultChecked,m=e.disabled,g=e.loadingIcon,_=e.checkedChildren,v=e.unCheckedChildren,b=e.onClick,k=e.onChange,y=e.onKeyDown,C=(0,l.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),x=(0,p.Z)(!1,{value:h,defaultValue:d}),w=(0,c.Z)(x,2),E=w[0],A=w[1];function D(e,t){var r=E;return m||(A(r=e),null===k||void 0===k||k(r,t)),r}var S=a()(i,s,(r={},(0,o.Z)(r,"".concat(i,"-checked"),E),(0,o.Z)(r,"".concat(i,"-disabled"),m),r));return u.createElement("button",Object.assign({},C,{type:"button",role:"switch","aria-checked":E,disabled:m,className:S,ref:t,onKeyDown:function(e){e.which===f.Z.LEFT?D(!1,e):e.which===f.Z.RIGHT&&D(!0,e),null===y||void 0===y||y(e)},onClick:function(e){var t=D(!E,e);null===b||void 0===b||b(t,e)}}),g,u.createElement("span",{className:"".concat(i,"-inner")},E?_:v))}));h.displayName="Switch";var d=h,m=r(53124),g=r(98866),_=r(97647),v=r(68349),b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var r=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var n=e.data[t];Array.isArray(n)?n.forEach((function(e){r.append("".concat(t,"[]"),e)})):r.append(t,n)})),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}(e,t),b(t)):e.onSuccess(b(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return null!==n["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach((function(e){null!==n[e]&&t.setRequestHeader(e,n[e])})),t.send(r),{abort:function(){t.abort()}}}var y=+new Date,C=0;function x(){return"rc-upload-".concat(y,"-").concat(++C)}var w=r(80334),E=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return r.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var r=n.toLowerCase(),s=t.toLowerCase(),a=[s];return".jpg"!==s&&".jpeg"!==s||(a=[".jpg",".jpeg"]),a.some((function(e){return r.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,w.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};var A=function(e,t,r){var n=function e(n,o){n.path=o||"",n.isFile?n.file((function(e){r(e)&&(n.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=n.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):n.isDirectory&&function(e,t){var r=e.createReader(),n=[];!function e(){r.readEntries((function(r){var o=Array.prototype.slice.apply(r);n=n.concat(o),o.length?e():t(n)}))}()}(n,(function(t){t.forEach((function(t){e(t,"".concat(o).concat(n.name,"/"))}))}))};e.forEach((function(e){n(e.webkitGetAsEntry())}))},D=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],S=function(e){(0,d.Z)(r,e);var t=(0,m.Z)(r);function r(){var e;(0,f.Z)(this,r);for(var n=arguments.length,o=new Array(n),i=0;ii?l=-((a=i*(se/e))-s)/2:c=-((s=e*(se/i))-a)/2,n.drawImage(o,c,l,s,a);var u=r.toDataURL();document.body.removeChild(r),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){var i=new FileReader;i.addEventListener("load",(function(){i.result&&(o.src=i.result)})),i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)}else t("")}))},isImageUrl:function(e){if(e.type&&!e.thumbUrl)return ie(e.type);var t=e.thumbUrl||e.url||"",r=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(r))||!/^data:/.test(t)&&!r}};var ve=_e,be=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(t){i(t)}}function a(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},ke="__LIST_IGNORE_".concat(Date.now(),"__"),ye=function(e,t){var r,u=e.fileList,f=e.defaultFileList,h=e.onRemove,d=e.showUploadList,m=e.listType,g=e.onPreview,_=e.onDownload,v=e.onChange,b=e.onDrop,k=e.previewFile,y=e.disabled,C=e.locale,x=e.iconRender,w=e.isImageUrl,E=e.progress,A=e.prefixCls,D=e.className,S=e.type,q=e.children,F=e.style,L=e.itemRender,N=e.maxCount,P=o.useContext(T.Z),j=y||P,B=(0,z.Z)(f||[],{value:u,postState:function(e){return null!==e&&void 0!==e?e:[]}}),U=(0,l.Z)(B,2),V=U[0],H=U[1],$=o.useState("drop"),G=(0,l.Z)($,2),J=G[0],W=G[1],K=o.useRef();o.useMemo((function(){var e=Date.now();(u||[]).forEach((function(t,r){t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(r,"__"))}))}),[u]);var Y=function(e,t,r){var n=(0,c.Z)(t);1===N?n=n.slice(-1):N&&(n=n.slice(0,N)),(0,I.flushSync)((function(){H(n)}));var o={file:e,fileList:n};r&&(o.event=r),null===v||void 0===v||v(o)},X=function(e){var t=e.filter((function(e){return!e.file[ke]}));if(t.length){var r=t.map((function(e){return re(e.file)})),n=(0,c.Z)(V);r.forEach((function(e){n=ne(e,n)})),r.forEach((function(e,r){var o=e;if(t[r].parsedFile)e.status="uploading";else{var i,s=e.originFileObj;try{i=new File([s],s.name,{type:s.type})}catch(a){(i=new Blob([s],{type:s.type})).name=s.name,i.lastModifiedDate=new Date,i.lastModified=(new Date).getTime()}i.uid=e.uid,o=i}Y(o,n)}))}},Q=function(e,t,r){try{"string"===typeof e&&(e=JSON.parse(e))}catch(i){}if(oe(t,V)){var n=re(t);n.status="done",n.percent=100,n.response=e,n.xhr=r;var o=ne(n,V);Y(n,o)}},ee=function(e,t){if(oe(t,V)){var r=re(t);r.status="uploading",r.percent=e.percent;var n=ne(r,V);Y(r,n,e)}},te=function(e,t,r){if(oe(r,V)){var n=re(r);n.error=e,n.response=t,n.status="error";var o=ne(n,V);Y(n,o)}},ie=function(e){var t;Promise.resolve("function"===typeof h?h(e):h).then((function(r){var o;if(!1!==r){var i=function(e,t){var r=void 0!==e.uid?"uid":"name",n=t.filter((function(t){return t[r]!==e[r]}));return n.length===t.length?null:n}(e,V);i&&(t=(0,n.Z)((0,n.Z)({},e),{status:"removed"}),null===V||void 0===V||V.forEach((function(e){var r=void 0!==t.uid?"uid":"name";e[r]!==t[r]||Object.isFrozen(e)||(e.status="removed")})),null===(o=K.current)||void 0===o||o.abort(t),Y(t,i))}}))},se=function(e){W(e.type),"drop"===e.type&&(null===b||void 0===b||b(e))};o.useImperativeHandle(t,(function(){return{onBatchStart:X,onSuccess:Q,onProgress:ee,onError:te,fileList:V,upload:K.current}}));var ae=o.useContext(R.E_),ce=ae.getPrefixCls,le=ae.direction,ue=ce("upload",A),pe=(0,n.Z)((0,n.Z)({onBatchStart:X,onError:te,onProgress:ee,onSuccess:Q},e),{prefixCls:ue,disabled:j,beforeUpload:function(t,r){return be(void 0,void 0,void 0,(0,s.Z)().mark((function n(){var o,i,c,l;return(0,s.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=e.beforeUpload,i=e.transformFile,c=t,!o){n.next=13;break}return n.next=5,o(t,r);case 5:if(!1!==(l=n.sent)){n.next=8;break}return n.abrupt("return",!1);case 8:if(delete t[ke],l!==ke){n.next=12;break}return Object.defineProperty(t,ke,{value:!0,configurable:!0}),n.abrupt("return",!1);case 12:"object"===(0,a.Z)(l)&&l&&(c=l);case 13:if(!i){n.next=17;break}return n.next=16,i(c);case 16:c=n.sent;case 17:return n.abrupt("return",c);case 18:case"end":return n.stop()}}),n)})))},onChange:void 0});delete pe.className,delete pe.style,q&&!j||delete pe.id;var fe=function(e,t){return d?o.createElement(M.Z,{componentName:"Upload",defaultLocale:O.Z.Upload},(function(r){var i="boolean"===typeof d?{}:d,s=i.showRemoveIcon,a=i.showPreviewIcon,c=i.showDownloadIcon,l=i.removeIcon,u=i.previewIcon,p=i.downloadIcon;return o.createElement(ve,{prefixCls:ue,listType:m,items:V,previewFile:k,onPreview:g,onDownload:_,onRemove:ie,showRemoveIcon:!j&&s,showPreviewIcon:a,showDownloadIcon:c,removeIcon:l,previewIcon:u,downloadIcon:p,iconRender:x,locale:(0,n.Z)((0,n.Z)({},r),C),isImageUrl:w,progress:E,appendAction:e,appendActionVisible:t,itemRender:L})})):e};if("drag"===S){var he,de=p()(ue,(he={},(0,i.Z)(he,"".concat(ue,"-drag"),!0),(0,i.Z)(he,"".concat(ue,"-drag-uploading"),V.some((function(e){return"uploading"===e.status}))),(0,i.Z)(he,"".concat(ue,"-drag-hover"),"dragover"===J),(0,i.Z)(he,"".concat(ue,"-disabled"),j),(0,i.Z)(he,"".concat(ue,"-rtl"),"rtl"===le),he),D);return o.createElement("span",null,o.createElement("div",{className:de,onDrop:se,onDragOver:se,onDragLeave:se,style:F},o.createElement(Z,(0,n.Z)({},pe,{ref:K,className:"".concat(ue,"-btn")}),o.createElement("div",{className:"".concat(ue,"-drag-container")},q))),fe())}var me,ge=p()(ue,(r={},(0,i.Z)(r,"".concat(ue,"-select"),!0),(0,i.Z)(r,"".concat(ue,"-select-").concat(m),!0),(0,i.Z)(r,"".concat(ue,"-disabled"),j),(0,i.Z)(r,"".concat(ue,"-rtl"),"rtl"===le),r)),_e=(me=q?void 0:{display:"none"},o.createElement("div",{className:ge,style:me},o.createElement(Z,(0,n.Z)({},pe,{ref:K}))));return"picture-card"===m?o.createElement("span",{className:p()("".concat(ue,"-picture-card-wrapper"),D)},fe(_e,!!q)):o.createElement("span",{className:D},_e,fe())},Ce=o.forwardRef(ye);Ce.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var xe=Ce,we=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){var n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function u(e){var t=e.re=r(36066)(e.__opts__),n=e.__tlds__.slice();function a(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(a(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(a(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(a(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(a(t.tpl_host_fuzzy_test),"i");var c=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var r=e.__schemas__[t];if(null!==r){var n={validate:null,link:null};if(e.__compiled__[t]=n,"[object Object]"===o(r))return!function(e){return"[object RegExp]"===o(e)}(r.validate)?i(r.validate)?n.validate=r.validate:l(t,r):n.validate=function(e){return function(t,r){var n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}(r.validate),void(i(r.normalize)?n.normalize=r.normalize:r.normalize?l(t,r):n.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===o(e)}(r)?l(t,r):c.push(t)}})),c.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(s).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){var r=e.__index__,n=e.__last_index__,o=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=o,this.text=o,this.url=o}function f(e,t){var r=new p(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function h(e,t){if(!(this instanceof h))return new h(e,t);var r;t||(r=e,Object.keys(r||{}).reduce((function(e,t){return e||a.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=n({},a,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},c,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},u(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},h.prototype.set=function(e){return this.__opts__=n(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,r,n,o,i,s,a,c;if(this.re.schema_test.test(e))for((a=this.re.schema_search).lastIndex=0;null!==(t=a.exec(e));)if(o=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||c=0&&null!==(n=e.match(this.re.email_fuzzy))&&(i=n.index+n[1].length,s=n.index+n[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=s)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},h.prototype.match=function(e){var t=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(f(this,t)),t=this.__last_index__);for(var n=t?e.slice(t):e;this.test(n);)r.push(f(this,t)),n=n.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null},h.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,f(this,0)):null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,r){return e!==r[t-1]})).reverse(),u(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,u(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},36066:function(e,t,r){"use strict";e.exports=function(e){var t={};e=e||{},t.src_Any=r(29369).source,t.src_Cc=r(99413).source,t.src_Z=r(35045).source,t.src_P=r(73189).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+"[><\uff5c]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},9980:function(e,t,r){"use strict";e.exports=r(17024)},26233:function(e,t,r){"use strict";e.exports=r(95485)},40813:function(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},51947:function(e){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",n=new RegExp("^(?:"+t+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),o=new RegExp("^(?:"+t+"|"+r+")");e.exports.n=n,e.exports.q=o},67022:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;function o(e,t){return n.call(e,t)}function i(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function s(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var a=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=new RegExp(a.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=r(26233);var p=/[&<>"]/,f=/[&<>"]/g,h={"&":"&","<":"<",">":">",'"':"""};function d(e){return h[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var g=r(73189);t.lib={},t.lib.mdurl=r(48765),t.lib.ucmicro=r(84205),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!==typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(r){e[r]=t[r]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=o,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(a,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(c,(function(e,t,r){return t||function(e,t){var r=0;return o(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&i(r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?s(r):e}(e,r)}))},t.isValidEntityCode=i,t.fromCodePoint=s,t.escapeHtml=function(e){return p.test(e)?e.replace(f,d):e},t.arrayReplaceAt=function(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"\u1e7e"==="\u1e9e".toLowerCase()&&(e=e.replace(/\u1e9e/g,"\xdf")),e.toLowerCase().toUpperCase()}},51685:function(e,t,r){"use strict";t.parseLinkLabel=r(33595),t.parseLinkDestination=r(12548),t.parseLinkTitle=r(88040)},12548:function(e,t,r){"use strict";var n=r(67022).unescapeAll;e.exports=function(e,t,r){var o,i,s=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t32)return a;if(41===o){if(0===i)break;i--}t++}return s===t||0!==i||(a.str=n(e.slice(s,t)),a.lines=0,a.pos=t,a.ok=!0),a}},33595:function(e){"use strict";e.exports=function(e,t,r){var n,o,i,s,a=-1,c=e.posMax,l=e.pos;for(e.pos=t+1,n=1;e.pos=r)return c;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return c;for(t++,40===i&&(i=41);t=0))try{t.hostname=p.toASCII(t.hostname)}catch(r){}return u.encode(u.format(t))}function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(r){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||n.isString(e)||(t=e||{},e="default"),this.inline=new c,this.block=new a,this.core=new s,this.renderer=new i,this.linkify=new l,this.validateLink=m,this.normalizeLink=_,this.normalizeLinkText=v,this.utils=n,this.helpers=n.assign({},o),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return n.assign(this.options,e),this},b.prototype.configure=function(e){var t,r=this;if(n.isString(e)&&!(e=f[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&r.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&r[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&r[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.prototype.enable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){r=r.concat(this[t].ruler.enable(e,!0))}),this),r=r.concat(this.inline.ruler2.enable(e,!0));var n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},b.prototype.disable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){r=r.concat(this[t].ruler.disable(e,!0))}),this),r=r.concat(this.inline.ruler2.disable(e,!0));var n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!==typeof e)throw new Error("Input data should be a String");var r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},82471:function(e,t,r){"use strict";var n=r(79580),o=[["table",r(91785),["paragraph","reference"]],["code",r(38768)],["fence",r(13542),["paragraph","reference","blockquote","list"]],["blockquote",r(45258),["paragraph","reference","blockquote","list"]],["hr",r(35634),["paragraph","reference","blockquote","list"]],["list",r(18532),["paragraph","reference","blockquote"]],["reference",r(43804)],["html_block",r(76329),["paragraph","reference","blockquote"]],["heading",r(61630),["paragraph","reference","blockquote"]],["lheading",r(56850)],["paragraph",r(96864)]];function i(){this.ruler=new n;for(var e=0;e=r))&&!(e.sCount[s]=c){e.line=r;break}for(n=0;n=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},s.prototype.parse=function(e,t,r,n){var o,i,s,a=new this.State(e,t,r,n);for(this.tokenize(a),s=(i=this.ruler2.getRules("")).length,o=0;o"+i(e[t].content)+""},s.code_block=function(e,t,r,n,o){var s=e[t];return""+i(e[t].content)+"\n"},s.fence=function(e,t,r,n,s){var a,c,l,u,p,f=e[t],h=f.info?o(f.info).trim():"",d="",m="";return h&&(d=(l=h.split(/(\s+)/g))[0],m=l.slice(2).join("")),0===(a=r.highlight&&r.highlight(f.content,d,m)||i(f.content)).indexOf(""+a+"\n"):"
"+a+"
\n"},s.image=function(e,t,r,n,o){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,r,n),o.renderToken(e,t,r)},s.hardbreak=function(e,t,r){return r.xhtmlOut?"
\n":"
\n"},s.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"
\n":"
\n":"\n"},s.text=function(e,t){return i(e[t].content)},s.html_block=function(e,t){return e[t].content},s.html_inline=function(e,t){return e[t].content},a.prototype.renderAttrs=function(e){var t,r,n;if(!e.attrs)return"";for(n="",t=0,r=e.attrs.length;t\n":">")},a.prototype.renderInline=function(e,t,r){for(var n,o="",i=this.rules,s=0,a=e.length;s=4)return!1;if(62!==e.src.charCodeAt(A++))return!1;if(o)return!0;for(c=h=e.sCount[t]+1,32===e.src.charCodeAt(A)?(A++,c++,h++,i=!1,k=!0):9===e.src.charCodeAt(A)?(k=!0,(e.bsCount[t]+h)%4===3?(A++,c++,h++,i=!1):i=!0):k=!1,d=[e.bMarks[t]],e.bMarks[t]=A;A=D,v=[e.sCount[t]],e.sCount[t]=h-c,b=[e.tShift[t]],e.tShift[t]=A-e.bMarks[t],C=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",f=t+1;f=(D=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(A++)||w){if(u)break;for(y=!1,a=0,l=C.length;a=D,m.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(k?1:0),v.push(e.sCount[f]),e.sCount[f]=h-c,b.push(e.tShift[f]),e.tShift[f]=A-e.bMarks[f]}for(g=e.blkIndent,e.blkIndent=0,(x=e.push("blockquote_open","blockquote",1)).markup=">",x.map=p=[t,0],e.md.block.tokenize(e,t,f),(x=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=E,e.parentType=_,p[1]=e.line,a=0;a=4))break;o=++n}return e.line=o,(i=e.push("code_block","code",0)).content=e.getLines(t,o,4+e.blkIndent,!1)+"\n",i.map=[t,e.line],!0}},13542:function(e){"use strict";e.exports=function(e,t,r,n){var o,i,s,a,c,l,u,p=!1,f=e.bMarks[t]+e.tShift[t],h=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(f+3>h)return!1;if(126!==(o=e.src.charCodeAt(f))&&96!==o)return!1;if(c=f,(i=(f=e.skipChars(f,o))-c)<3)return!1;if(u=e.src.slice(c,f),s=e.src.slice(f,h),96===o&&s.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;for(a=t;!(++a>=r)&&!((f=c=e.bMarks[a]+e.tShift[a])<(h=e.eMarks[a])&&e.sCount[a]=4)&&!((f=e.skipChars(f,o))-c=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=u)return!1;for(s=1,i=e.src.charCodeAt(++l);35===i&&l6||ll&&n(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,(c=e.push("heading_open","h"+String(s),1)).markup="########".slice(0,s),c.map=[t,e.line],(c=e.push("inline","",0)).content=e.src.slice(l,u).trim(),c.map=[t,e.line],c.children=[],(c=e.push("heading_close","h"+String(s),-1)).markup="########".slice(0,s)),!0)}},35634:function(e,t,r){"use strict";var n=r(67022).isSpace;e.exports=function(e,t,r,o){var i,s,a,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(s=1;l|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(o.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,r,n){var o,s,a,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(c=e.src.slice(l,u),o=0;o=4)return!1;for(f=e.parentType,e.parentType="paragraph";h3)){if(e.sCount[h]>=e.blkIndent&&(c=e.bMarks[h]+e.tShift[h])<(l=e.eMarks[h])&&(45===(p=e.src.charCodeAt(c))||61===p)&&(c=e.skipChars(c,p),(c=e.skipSpaces(c))>=l)){u=61===p?1:2;break}if(!(e.sCount[h]<0)){for(o=!1,i=0,s=d.length;i=s)return-1;if((r=e.src.charCodeAt(i++))<48||r>57)return-1;for(;;){if(i>=s)return-1;if(!((r=e.src.charCodeAt(i++))>=48&&r<=57)){if(41===r||46===r)break;return-1}if(i-o>=10)return-1}return i=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(I=!0),(S=i(e,t))>=0){if(f=!0,F=e.bMarks[t]+e.tShift[t],v=Number(e.src.slice(F,S-1)),I&&1!==v)return!1}else{if(!((S=o(e,t))>=0))return!1;f=!1}if(I&&e.skipSpaces(S)>=e.eMarks[t])return!1;if(_=e.src.charCodeAt(S-1),n)return!0;for(g=e.tokens.length,f?(z=e.push("ordered_list_open","ol",1),1!==v&&(z.attrs=[["start",v]])):z=e.push("bullet_list_open","ul",1),z.map=m=[t,0],z.markup=String.fromCharCode(_),k=t,q=!1,Z=e.md.block.ruler.getRules("list"),x=e.parentType,e.parentType="list";k=b?1:y-p)>4&&(u=1),l=p+u,(z=e.push("list_item_open","li",1)).markup=String.fromCharCode(_),z.map=h=[t,0],f&&(z.info=e.src.slice(F,S-1)),A=e.tight,E=e.tShift[t],w=e.sCount[t],C=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[t]=a-e.bMarks[t],e.sCount[t]=y,a>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,t,r,!0),e.tight&&!q||(R=!1),q=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=C,e.tShift[t]=E,e.sCount[t]=w,e.tight=A,(z=e.push("list_item_close","li",-1)).markup=String.fromCharCode(_),k=t=e.line,h[1]=k,a=e.bMarks[t],k>=r)break;if(e.sCount[k]=4)break;for(L=!1,c=0,d=Z.length;c3)&&!(e.sCount[c]<0)){for(n=!1,o=0,i=l.length;o=4)return!1;if(91!==e.src.charCodeAt(x))return!1;for(;++x3)&&!(e.sCount[E]<0)){for(b=!1,p=0,f=k.length;p0&&this.level++,this.tokens.push(o),o},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!o(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var r=this.src.length;er;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,r,n){var i,s,a,c,l,u,p,f=e;if(e>=t)return"";for(u=new Array(t-e),i=0;fr?new Array(s-r+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return u.join("")},i.prototype.Token=n,e.exports=i},91785:function(e,t,r){"use strict";var n=r(67022).isSpace;function o(e,t){var r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function i(e){var t,r=[],n=0,o=e.length,i=!1,s=0,a="";for(t=e.charCodeAt(n);nr)return!1;if(f=t+1,e.sCount[f]=4)return!1;if((l=e.bMarks[f]+e.tShift[f])>=e.eMarks[f])return!1;if(124!==(x=e.src.charCodeAt(l++))&&45!==x&&58!==x)return!1;if(l>=e.eMarks[f])return!1;if(124!==(w=e.src.charCodeAt(l++))&&45!==w&&58!==w&&!n(w))return!1;if(45===x&&n(w))return!1;for(;l=4)return!1;if((h=i(c)).length&&""===h[0]&&h.shift(),h.length&&""===h[h.length-1]&&h.pop(),0===(d=h.length)||d!==g.length)return!1;if(s)return!0;for(k=e.parentType,e.parentType="table",C=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=v=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u=4)break;for((h=i(c)).length&&""===h[0]&&h.shift(),h.length&&""===h[h.length-1]&&h.pop(),f===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[f,f+1],u=0;u/i.test(e)}e.exports=function(e){var t,r,i,s,a,c,l,u,p,f,h,d,m,g,_,v,b,k,y=e.tokens;if(e.md.options.linkify)for(r=0,i=y.length;r=0;t--)if("link_close"!==(c=s[t]).type){if("html_inline"===c.type&&(k=c.content,/^\s]/i.test(k)&&m>0&&m--,o(c.content)&&m++),!(m>0)&&"text"===c.type&&e.md.linkify.test(c.content)){for(p=c.content,b=e.md.linkify.match(p),l=[],d=c.level,h=0,b.length>0&&0===b[0].index&&t>0&&"text_special"===s[t-1].type&&(b=b.slice(1)),u=0;uh&&((a=new e.Token("text","",0)).content=p.slice(h,f),a.level=d,l.push(a)),(a=new e.Token("link_open","a",1)).attrs=[["href",_]],a.level=d++,a.markup="linkify",a.info="auto",l.push(a),(a=new e.Token("text","",0)).content=v,a.level=d,l.push(a),(a=new e.Token("link_close","a",-1)).level=--d,a.markup="linkify",a.info="auto",l.push(a),h=b[u].lastIndex);h=0;t--)"text"!==(r=e[t]).type||o||(r.content=r.content.replace(n,i)),"link_open"===r.type&&"auto"===r.info&&o--,"link_close"===r.type&&"auto"===r.info&&o++}function a(e){var r,n,o=0;for(r=e.length-1;r>=0;r--)"text"!==(n=e[r]).type||o||t.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),"link_open"===n.type&&"auto"===n.info&&o--,"link_close"===n.type&&"auto"===n.info&&o++}e.exports=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)"inline"===e.tokens[n].type&&(r.test(e.tokens[n].content)&&s(e.tokens[n].children),t.test(e.tokens[n].content)&&a(e.tokens[n].children))}},58450:function(e,t,r){"use strict";var n=r(67022).isWhiteSpace,o=r(67022).isPunctChar,i=r(67022).isMdAsciiPunct,s=/['"]/,a=/['"]/g;function c(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function l(e,t){var r,s,l,u,p,f,h,d,m,g,_,v,b,k,y,C,x,w,E,A,D;for(E=[],r=0;r=0&&!(E[x].level<=h);x--);if(E.length=x+1,"text"===s.type){p=0,f=(l=s.content).length;e:for(;p=0)m=l.charCodeAt(u.index-1);else for(x=r-1;x>=0&&("softbreak"!==e[x].type&&"hardbreak"!==e[x].type);x--)if(e[x].content){m=e[x].content.charCodeAt(e[x].content.length-1);break}if(g=32,p=48&&m<=57&&(C=y=!1),y&&C&&(y=_,C=v),y||C){if(C)for(x=E.length-1;x>=0&&(d=E[x],!(E[x].level=0;t--)"inline"===e.tokens[t].type&&s.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}},16480:function(e,t,r){"use strict";var n=r(75872);function o(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}o.prototype.Token=n,e.exports=o},46633:function(e){"use strict";e.exports=function(e){var t,r,n,o,i,s,a=e.tokens;for(t=0,r=a.length;t\x00-\x20]*)$/;e.exports=function(e,n){var o,i,s,a,c,l,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(c=e.pos,l=e.posMax;;){if(++u>=l)return!1;if(60===(a=e.src.charCodeAt(u)))return!1;if(62===a)break}return o=e.src.slice(c+1,u),r.test(o)?(i=e.md.normalizeLink(o),!!e.md.validateLink(i)&&(n||((s=e.push("link_open","a",1)).attrs=[["href",i]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(o),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=o.length+2,!0)):!!t.test(o)&&(i=e.md.normalizeLink("mailto:"+o),!!e.md.validateLink(i)&&(n||((s=e.push("link_open","a",1)).attrs=[["href",i]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(o),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=o.length+2,!0))}},79755:function(e){"use strict";e.exports=function(e,t){var r,n,o,i,s,a,c,l,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(r=u,u++,n=e.posMax;us;n-=d[n]+1)if((i=t[n]).marker===o.marker&&i.open&&i.end<0&&(c=!1,(i.close||o.open)&&(i.length+o.length)%3===0&&(i.length%3===0&&o.length%3===0||(c=!0)),!c)){l=n>0&&!t[n-1].open?d[n-1]+1:0,d[r]=r-n+l,d[n]=l,o.open=!1,i.end=r,i.close=!1,a=-1,h=-2;break}-1!==a&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}e.exports=function(e){var r,n=e.tokens_meta,o=e.tokens_meta.length;for(t(0,e.delimiters),r=0;r=0;r--)95!==(n=t[r]).marker&&42!==n.marker||-1!==n.end&&(o=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===o.token+1,s=String.fromCharCode(n.marker),(i=e.tokens[n.token]).type=a?"strong_open":"em_open",i.tag=a?"strong":"em",i.nesting=1,i.markup=a?s+s:s,i.content="",(i=e.tokens[o.token]).type=a?"strong_close":"em_close",i.tag=a?"strong":"em",i.nesting=-1,i.markup=a?s+s:s,i.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--))}e.exports.w=function(e,t){var r,n,o=e.pos,i=e.src.charCodeAt(o);if(t)return!1;if(95!==i&&42!==i)return!1;for(n=e.scanDelims(e.pos,42===i),r=0;r=f)return!1;if(35===e.src.charCodeAt(p+1)){if(l=e.src.slice(p).match(a))return t||(r="x"===l[1][0].toLowerCase()?parseInt(l[1].slice(1),16):parseInt(l[1],10),(u=e.push("text_special","",0)).content=i(r)?s(r):s(65533),u.markup=l[0],u.info="entity"),e.pos+=l[0].length,!0}else if((l=e.src.slice(p).match(c))&&o(n,l[1]))return t||((u=e.push("text_special","",0)).content=n[l[1]],u.markup=l[0],u.info="entity"),e.pos+=l[0].length,!0;return!1}},1917:function(e,t,r){"use strict";for(var n=r(67022).isSpace,o=[],i=0;i<256;i++)o.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){o[e.charCodeAt(0)]=1})),e.exports=function(e,t){var r,i,s,a,c,l=e.pos,u=e.posMax;if(92!==e.src.charCodeAt(l))return!1;if(++l>=u)return!1;if(10===(r=e.src.charCodeAt(l))){for(t||e.push("hardbreak","br",0),l++;l=55296&&r<=56319&&l+1=56320&&i<=57343&&(a+=e.src[l+1],l++),s="\\"+a,t||(c=e.push("text_special","",0),r<256&&0!==o[r]?c.content=a:c.content=s,c.markup=s,c.info="escape"),e.pos=l+1,!0}},69969:function(e){"use strict";e.exports=function(e){var t,r,n=0,o=e.tokens,i=e.tokens.length;for(t=r=0;t0&&n++,"text"===o[t].type&&t+1=i)&&(!(33!==(r=e.src.charCodeAt(c+1))&&63!==r&&47!==r&&!function(e){var t=32|e;return t>=97&&t<=122}(r))&&(!!(o=e.src.slice(c).match(n))&&(t||((s=e.push("html_inline","",0)).content=e.src.slice(c,c+o[0].length),a=s.content,/^\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(s.content)&&e.linkLevel--),e.pos+=o[0].length,!0))))}},83006:function(e,t,r){"use strict";var n=r(67022).normalizeReference,o=r(67022).isSpace;e.exports=function(e,t){var r,i,s,a,c,l,u,p,f,h,d,m,g,_="",v=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(c=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=c+1)=b)return!1;for(g=u,(f=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(_=e.md.normalizeLink(f.str),e.md.validateLink(_)?u=f.pos:_=""),g=u;u=b||41!==e.src.charCodeAt(u))return e.pos=v,!1;u++}else{if("undefined"===typeof e.env.references)return!1;if(u=0?a=e.src.slice(g,u++):u=c+1):u=c+1,a||(a=e.src.slice(l,c)),!(p=e.env.references[n(a)]))return e.pos=v,!1;_=p.href,h=p.title}return t||(s=e.src.slice(l,c),e.md.inline.parse(s,e.md,e.env,m=[]),(d=e.push("image","img",0)).attrs=r=[["src",_],["alt",""]],d.children=m,d.content=s,h&&r.push(["title",h])),e.pos=u,e.posMax=b,!0}},81727:function(e,t,r){"use strict";var n=r(67022).normalizeReference,o=r(67022).isSpace;e.exports=function(e,t){var r,i,s,a,c,l,u,p,f="",h="",d=e.pos,m=e.posMax,g=e.pos,_=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(c=e.pos+1,(a=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((l=a+1)=m)return!1;if(g=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok){for(f=e.md.normalizeLink(u.str),e.md.validateLink(f)?l=u.pos:f="",g=l;l=m||41!==e.src.charCodeAt(l))&&(_=!0),l++}if(_){if("undefined"===typeof e.env.references)return!1;if(l=0?s=e.src.slice(g,l++):l=a+1):l=a+1,s||(s=e.src.slice(c,a)),!(p=e.env.references[n(s)]))return e.pos=d,!1;f=p.href,h=p.title}return t||(e.pos=c,e.posMax=a,e.push("link_open","a",1).attrs=r=[["href",f]],h&&r.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0}},12906:function(e){"use strict";var t=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;e.exports=function(e,r){var n,o,i,s,a,c,l;return!!e.md.options.linkify&&(!(e.linkLevel>0)&&(!((n=e.pos)+3>e.posMax)&&(58===e.src.charCodeAt(n)&&(47===e.src.charCodeAt(n+1)&&(47===e.src.charCodeAt(n+2)&&(!!(o=e.pending.match(t))&&(i=o[1],!!(s=e.md.linkify.matchAtStart(e.src.slice(n-i.length)))&&(a=(a=s.url).replace(/\*+$/,""),c=e.md.normalizeLink(a),!!e.md.validateLink(c)&&(r||(e.pending=e.pending.slice(0,-i.length),(l=e.push("link_open","a",1)).attrs=[["href",c]],l.markup="linkify",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(a),(l=e.push("link_close","a",-1)).markup="linkify",l.info="auto"),e.pos+=a.length-i.length,!0)))))))))}},43905:function(e,t,r){"use strict";var n=r(67022).isSpace;e.exports=function(e,t){var r,o,i,s=e.pos;if(10!==e.src.charCodeAt(s))return!1;if(r=e.pending.length-1,o=e.posMax,!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){for(i=r-1;i>=1&&32===e.pending.charCodeAt(i-1);)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(s++;s0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o},a.prototype.scanDelims=function(e,t){var r,n,a,c,l,u,p,f,h,d=e,m=!0,g=!0,_=this.posMax,v=this.src.charCodeAt(e);for(r=e>0?this.src.charCodeAt(e-1):32;d<_&&this.src.charCodeAt(d)===v;)d++;return a=d-e,n=d<_?this.src.charCodeAt(d):32,p=s(r)||i(String.fromCharCode(r)),h=s(n)||i(String.fromCharCode(n)),u=o(r),(f=o(n))?m=!1:h&&(u||p||(m=!1)),u?g=!1:p&&(f||h||(g=!1)),t?(c=m,l=g):(c=m&&(!g||p),l=g&&(!m||h)),{can_open:c,can_close:l,length:a}},a.prototype.Token=n,e.exports=a},44814:function(e){"use strict";function t(e,t){var r,n,o,i,s,a=[],c=t.length;for(r=0;r=0&&(r=this.attrs[t][1]),r},t.prototype.attrJoin=function(e,t){var r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t},e.exports=t},83122:function(e){"use strict";var t={};function r(e,n){var o;return"string"!==typeof n&&(n=r.defaultChars),o=function(e){var r,n,o=t[e];if(o)return o;for(o=t[e]=[],r=0;r<128;r++)n=String.fromCharCode(r),o.push(n);for(r=0;r=55296&&c<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(c),t+=6):240===(248&n)&&t+91114111?l+="\ufffd\ufffd\ufffd\ufffd":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="\ufffd";return l}))}r.defaultChars=";/?:@&=+$,#",r.componentChars="",e.exports=r},70729:function(e){"use strict";var t={};function r(e,n,o){var i,s,a,c,l,u="";for("string"!==typeof n&&(o=n,n=r.defaultChars),"undefined"===typeof o&&(o=!0),l=function(e){var r,n,o=t[e];if(o)return o;for(o=t[e]=[],r=0;r<128;r++)n=String.fromCharCode(r),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2));for(r=0;r=55296&&a<=57343){if(a>=55296&&a<=56319&&i+1=56320&&c<=57343){u+=encodeURIComponent(e[i]+e[i+1]),i++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[i]);return u}r.defaultChars=";/?:@&=+$,-_.!~*'()#",r.componentChars="-_.!~*'()",e.exports=r},2201:function(e){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},48765:function(e,t,r){"use strict";e.exports.encode=r(70729),e.exports.decode=r(83122),e.exports.format=r(2201),e.exports.parse=r(9553)},9553:function(e){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(i),a=["%","/","?",";","#"].concat(s),c=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var n,i,s,h,d,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=o.exec(m);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var _=r.exec(m);if(_&&(s=(_=_[0]).toLowerCase(),this.protocol=_,m=m.substr(_.length)),(t||_||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(d="//"===m.substr(0,2))||_&&p[_]||(m=m.substr(2),this.slashes=!0)),!p[_]&&(d||_&&!f[_])){var v,b,k=-1;for(n=0;n127?E+="x":E+=w[A];if(!E.match(l)){var S=x.slice(0,n),q=x.slice(n+1),F=w.match(u);F&&(S.push(F[1]),q.unshift(F[2])),q.length&&(m=q.join(".")+m),this.hostname=S.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var L=m.indexOf("#");-1!==L&&(this.hash=m.substr(L),m=m.slice(0,L));var Z=m.indexOf("?");return-1!==Z&&(this.search=m.substr(Z),m=m.slice(0,Z)),m&&(this.pathname=m),f[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=n.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,r){if(e&&e instanceof t)return e;var n=new t;return n.parse(e,r),n}},90638:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(96856).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=s.default,i={loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};n(e,Promise)?i.loader=function(){return e}:"function"===typeof e?i.loader=e:"object"===typeof e&&(i=o({},i,e));if((i=o({},i,t)).suspense)throw new Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");i.loadableGenerated&&delete(i=o({},i,i.loadableGenerated)).loadableGenerated;if("boolean"===typeof i.ssr&&!i.suspense){if(!i.ssr)return delete i.ssr,a(r,i);delete i.ssr}return r(i)},t.noSSR=a;var o=r(6495).Z,i=r(92648).Z,s=(i(r(67294)),i(r(14302)));function a(e,t){return delete t.webpack,delete t.modules,e(t)}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16319:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var n=(0,r(92648).Z)(r(67294)).default.createContext(null);t.LoadableContext=n},14302:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(79658).Z,o=r(7222).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(6495).Z,s=(0,r(92648).Z)(r(67294)),a=r(16319),c=r(61688).useSyncExternalStore,l=[],u=[],p=!1;function f(e){var t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then((function(e){return r.loading=!1,r.loaded=e,e})).catch((function(e){throw r.loading=!1,r.error=e,e})),r}var h=function(){function e(t,r){n(this,e),this._loadFn=t,this._opts=r,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return o(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,r=this._opts;t.loading&&("number"===typeof r.delay&&(0===r.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),r.delay)),"number"===typeof r.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),r.timeout))),this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(t){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=i({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),e}();function d(e){return function(e,t){var r=function(){if(!l){var t=new h(e,o);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()},n=function(){r();var e=s.default.useContext(a.LoadableContext);e&&Array.isArray(o.modules)&&o.modules.forEach((function(t){e(t)}))},o=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},t);o.suspense&&(o.lazy=s.default.lazy(o.loader));var l=null;if(!p){var f=o.webpack?o.webpack():o.modules;f&&u.push((function(e){var t=!0,n=!1,o=void 0;try{for(var i,s=f[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var a=i.value;if(-1!==e.indexOf(a))return r()}}catch(c){n=!0,o=c}finally{try{t||null==s.return||s.return()}finally{if(n)throw o}}}))}var d=o.suspense?function(e,t){return n(),s.default.createElement(o.lazy,i({},e,{ref:t}))}:function(e,t){n();var r=c(l.subscribe,l.getCurrentValue,l.getCurrentValue);return s.default.useImperativeHandle(t,(function(){return{retry:l.retry}}),[]),s.default.useMemo((function(){return r.loading||r.error?s.default.createElement(o.loading,{isLoading:r.loading,pastDelay:r.pastDelay,timedOut:r.timedOut,error:r.error,retry:l.retry}):r.loaded?s.default.createElement((t=r.loaded)&&t.__esModule?t.default:t,e):null;var t}),[e,r])};return d.preload=function(){return r()},d.displayName="LoadableComponent",s.default.forwardRef(d)}(f,e)}function m(e,t){for(var r=[];e.length;){var n=e.pop();r.push(n(t))}return Promise.all(r).then((function(){if(e.length)return m(e,t)}))}d.preloadAll=function(){return new Promise((function(e,t){m(l).then(e,t)}))},d.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var r=function(){return p=!0,t()};m(u,e).then(r,r)}))},window.__NEXT_PRELOADREADY=d.preloadReady;var g=d;t.default=g},69596:function(){},5152:function(e,t,r){e.exports=r(90638)},3689:function(e,t,r){"use strict";r.r(t),r.d(t,{decode:function(){return _},encode:function(){return v},toASCII:function(){return k},toUnicode:function(){return b},ucs2decode:function(){return h},ucs2encode:function(){return d}});const n=2147483647,o=36,i=/^xn--/,s=/[^\0-\x7E]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor,u=String.fromCharCode;function p(e){throw new RangeError(c[e])}function f(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const o=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(a,".")).split("."),t).join(".");return n+o}function h(e){const t=[];let r=0;const n=e.length;for(;r=55296&&o<=56319&&rString.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},g=function(e,t,r){let n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;n+=o)e=l(e/35);return l(n+36*e/(e+38))},_=function(e){const t=[],r=e.length;let i=0,s=128,a=72,c=e.lastIndexOf("-");c<0&&(c=0);for(let n=0;n=128&&p("not-basic"),t.push(e.charCodeAt(n));for(let f=c>0?c+1:0;f=r&&p("invalid-input");const c=(u=e.charCodeAt(f++))-48<10?u-22:u-65<26?u-65:u-97<26?u-97:o;(c>=o||c>l((n-i)/t))&&p("overflow"),i+=c*t;const h=s<=a?1:s>=a+26?26:s-a;if(cl(n/d)&&p("overflow"),t*=d}const h=t.length+1;a=g(i-c,h,0==c),l(i/h)>n-s&&p("overflow"),s+=l(i/h),i%=h,t.splice(i++,0,s)}var u;return String.fromCodePoint(...t)},v=function(e){const t=[];let r=(e=h(e)).length,i=128,s=0,a=72;for(const n of e)n<128&&t.push(u(n));let c=t.length,f=c;for(c&&t.push("-");f=i&&tl((n-s)/h)&&p("overflow"),s+=(r-i)*h,i=r;for(const d of e)if(dn&&p("overflow"),d==i){let e=s;for(let r=o;;r+=o){const n=r<=a?1:r>=a+26?26:r-a;if(ee.length)&&(t=e.length);for(var r=0,n=new Array(t);r","GT":">","Gt":"\u226b","gtdot":"\u22d7","gtlPar":"\u2995","gtquest":"\u2a7c","gtrapprox":"\u2a86","gtrarr":"\u2978","gtrdot":"\u22d7","gtreqless":"\u22db","gtreqqless":"\u2a8c","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\ufe00","gvnE":"\u2269\ufe00","Hacek":"\u02c7","hairsp":"\u200a","half":"\xbd","hamilt":"\u210b","HARDcy":"\u042a","hardcy":"\u044a","harrcir":"\u2948","harr":"\u2194","hArr":"\u21d4","harrw":"\u21ad","Hat":"^","hbar":"\u210f","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22b9","hfr":"\ud835\udd25","Hfr":"\u210c","HilbertSpace":"\u210b","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21ff","homtht":"\u223b","hookleftarrow":"\u21a9","hookrightarrow":"\u21aa","hopf":"\ud835\udd59","Hopf":"\u210d","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\ud835\udcbd","Hscr":"\u210b","hslash":"\u210f","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224e","HumpEqual":"\u224f","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xcd","iacute":"\xed","ic":"\u2063","Icirc":"\xce","icirc":"\xee","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xa1","iff":"\u21d4","ifr":"\ud835\udd26","Ifr":"\u2111","Igrave":"\xcc","igrave":"\xec","ii":"\u2148","iiiint":"\u2a0c","iiint":"\u222d","iinfin":"\u29dc","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012a","imacr":"\u012b","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22b7","imped":"\u01b5","Implies":"\u21d2","incare":"\u2105","in":"\u2208","infin":"\u221e","infintie":"\u29dd","inodot":"\u0131","intcal":"\u22ba","int":"\u222b","Int":"\u222c","integers":"\u2124","Integral":"\u222b","intercal":"\u22ba","Intersection":"\u22c2","intlarhk":"\u2a17","intprod":"\u2a3c","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012e","iogon":"\u012f","Iopf":"\ud835\udd40","iopf":"\ud835\udd5a","Iota":"\u0399","iota":"\u03b9","iprod":"\u2a3c","iquest":"\xbf","iscr":"\ud835\udcbe","Iscr":"\u2110","isin":"\u2208","isindot":"\u22f5","isinE":"\u22f9","isins":"\u22f4","isinsv":"\u22f3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xcf","iuml":"\xef","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\ud835\udd0d","jfr":"\ud835\udd27","jmath":"\u0237","Jopf":"\ud835\udd41","jopf":"\ud835\udd5b","Jscr":"\ud835\udca5","jscr":"\ud835\udcbf","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039a","kappa":"\u03ba","kappav":"\u03f0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041a","kcy":"\u043a","Kfr":"\ud835\udd0e","kfr":"\ud835\udd28","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040c","kjcy":"\u045c","Kopf":"\ud835\udd42","kopf":"\ud835\udd5c","Kscr":"\ud835\udca6","kscr":"\ud835\udcc0","lAarr":"\u21da","Lacute":"\u0139","lacute":"\u013a","laemptyv":"\u29b4","lagran":"\u2112","Lambda":"\u039b","lambda":"\u03bb","lang":"\u27e8","Lang":"\u27ea","langd":"\u2991","langle":"\u27e8","lap":"\u2a85","Laplacetrf":"\u2112","laquo":"\xab","larrb":"\u21e4","larrbfs":"\u291f","larr":"\u2190","Larr":"\u219e","lArr":"\u21d0","larrfs":"\u291d","larrhk":"\u21a9","larrlp":"\u21ab","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21a2","latail":"\u2919","lAtail":"\u291b","lat":"\u2aab","late":"\u2aad","lates":"\u2aad\ufe00","lbarr":"\u290c","lBarr":"\u290e","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298b","lbrksld":"\u298f","lbrkslu":"\u298d","Lcaron":"\u013d","lcaron":"\u013e","Lcedil":"\u013b","lcedil":"\u013c","lceil":"\u2308","lcub":"{","Lcy":"\u041b","lcy":"\u043b","ldca":"\u2936","ldquo":"\u201c","ldquor":"\u201e","ldrdhar":"\u2967","ldrushar":"\u294b","ldsh":"\u21b2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27e8","LeftArrowBar":"\u21e4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21d0","LeftArrowRightArrow":"\u21c6","leftarrowtail":"\u21a2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27e6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21c3","LeftFloor":"\u230a","leftharpoondown":"\u21bd","leftharpoonup":"\u21bc","leftleftarrows":"\u21c7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21d4","leftrightarrows":"\u21c6","leftrightharpoons":"\u21cb","leftrightsquigarrow":"\u21ad","LeftRightVector":"\u294e","LeftTeeArrow":"\u21a4","LeftTee":"\u22a3","LeftTeeVector":"\u295a","leftthreetimes":"\u22cb","LeftTriangleBar":"\u29cf","LeftTriangle":"\u22b2","LeftTriangleEqual":"\u22b4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21bf","LeftVectorBar":"\u2952","LeftVector":"\u21bc","lEg":"\u2a8b","leg":"\u22da","leq":"\u2264","leqq":"\u2266","leqslant":"\u2a7d","lescc":"\u2aa8","les":"\u2a7d","lesdot":"\u2a7f","lesdoto":"\u2a81","lesdotor":"\u2a83","lesg":"\u22da\ufe00","lesges":"\u2a93","lessapprox":"\u2a85","lessdot":"\u22d6","lesseqgtr":"\u22da","lesseqqgtr":"\u2a8b","LessEqualGreater":"\u22da","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2aa1","lesssim":"\u2272","LessSlantEqual":"\u2a7d","LessTilde":"\u2272","lfisht":"\u297c","lfloor":"\u230a","Lfr":"\ud835\udd0f","lfr":"\ud835\udd29","lg":"\u2276","lgE":"\u2a91","lHar":"\u2962","lhard":"\u21bd","lharu":"\u21bc","lharul":"\u296a","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21c7","ll":"\u226a","Ll":"\u22d8","llcorner":"\u231e","Lleftarrow":"\u21da","llhard":"\u296b","lltri":"\u25fa","Lmidot":"\u013f","lmidot":"\u0140","lmoustache":"\u23b0","lmoust":"\u23b0","lnap":"\u2a89","lnapprox":"\u2a89","lne":"\u2a87","lnE":"\u2268","lneq":"\u2a87","lneqq":"\u2268","lnsim":"\u22e6","loang":"\u27ec","loarr":"\u21fd","lobrk":"\u27e6","longleftarrow":"\u27f5","LongLeftArrow":"\u27f5","Longleftarrow":"\u27f8","longleftrightarrow":"\u27f7","LongLeftRightArrow":"\u27f7","Longleftrightarrow":"\u27fa","longmapsto":"\u27fc","longrightarrow":"\u27f6","LongRightArrow":"\u27f6","Longrightarrow":"\u27f9","looparrowleft":"\u21ab","looparrowright":"\u21ac","lopar":"\u2985","Lopf":"\ud835\udd43","lopf":"\ud835\udd5d","loplus":"\u2a2d","lotimes":"\u2a34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25ca","lozenge":"\u25ca","lozf":"\u29eb","lpar":"(","lparlt":"\u2993","lrarr":"\u21c6","lrcorner":"\u231f","lrhar":"\u21cb","lrhard":"\u296d","lrm":"\u200e","lrtri":"\u22bf","lsaquo":"\u2039","lscr":"\ud835\udcc1","Lscr":"\u2112","lsh":"\u21b0","Lsh":"\u21b0","lsim":"\u2272","lsime":"\u2a8d","lsimg":"\u2a8f","lsqb":"[","lsquo":"\u2018","lsquor":"\u201a","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2aa6","ltcir":"\u2a79","lt":"<","LT":"<","Lt":"\u226a","ltdot":"\u22d6","lthree":"\u22cb","ltimes":"\u22c9","ltlarr":"\u2976","ltquest":"\u2a7b","ltri":"\u25c3","ltrie":"\u22b4","ltrif":"\u25c2","ltrPar":"\u2996","lurdshar":"\u294a","luruhar":"\u2966","lvertneqq":"\u2268\ufe00","lvnE":"\u2268\ufe00","macr":"\xaf","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21a6","mapsto":"\u21a6","mapstodown":"\u21a7","mapstoleft":"\u21a4","mapstoup":"\u21a5","marker":"\u25ae","mcomma":"\u2a29","Mcy":"\u041c","mcy":"\u043c","mdash":"\u2014","mDDot":"\u223a","measuredangle":"\u2221","MediumSpace":"\u205f","Mellintrf":"\u2133","Mfr":"\ud835\udd10","mfr":"\ud835\udd2a","mho":"\u2127","micro":"\xb5","midast":"*","midcir":"\u2af0","mid":"\u2223","middot":"\xb7","minusb":"\u229f","minus":"\u2212","minusd":"\u2238","minusdu":"\u2a2a","MinusPlus":"\u2213","mlcp":"\u2adb","mldr":"\u2026","mnplus":"\u2213","models":"\u22a7","Mopf":"\ud835\udd44","mopf":"\ud835\udd5e","mp":"\u2213","mscr":"\ud835\udcc2","Mscr":"\u2133","mstpos":"\u223e","Mu":"\u039c","mu":"\u03bc","multimap":"\u22b8","mumap":"\u22b8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20d2","nap":"\u2249","napE":"\u2a70\u0338","napid":"\u224b\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266e","naturals":"\u2115","natur":"\u266e","nbsp":"\xa0","nbump":"\u224e\u0338","nbumpe":"\u224f\u0338","ncap":"\u2a43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2a6d\u0338","ncup":"\u2a42","Ncy":"\u041d","ncy":"\u043d","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21d7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200b","NegativeThickSpace":"\u200b","NegativeThinSpace":"\u200b","NegativeVeryThinSpace":"\u200b","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226b","NestedLessLess":"\u226a","NewLine":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\ud835\udd11","nfr":"\ud835\udd2b","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2a7e\u0338","nges":"\u2a7e\u0338","nGg":"\u22d9\u0338","ngsim":"\u2275","nGt":"\u226b\u20d2","ngt":"\u226f","ngtr":"\u226f","nGtv":"\u226b\u0338","nharr":"\u21ae","nhArr":"\u21ce","nhpar":"\u2af2","ni":"\u220b","nis":"\u22fc","nisd":"\u22fa","niv":"\u220b","NJcy":"\u040a","njcy":"\u045a","nlarr":"\u219a","nlArr":"\u21cd","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219a","nLeftarrow":"\u21cd","nleftrightarrow":"\u21ae","nLeftrightarrow":"\u21ce","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2a7d\u0338","nles":"\u2a7d\u0338","nless":"\u226e","nLl":"\u22d8\u0338","nlsim":"\u2274","nLt":"\u226a\u20d2","nlt":"\u226e","nltri":"\u22ea","nltrie":"\u22ec","nLtv":"\u226a\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xa0","nopf":"\ud835\udd5f","Nopf":"\u2115","Not":"\u2aec","not":"\xac","NotCongruent":"\u2262","NotCupCap":"\u226d","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226f","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226b\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2a7e\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224e\u0338","NotHumpEqual":"\u224f\u0338","notin":"\u2209","notindot":"\u22f5\u0338","notinE":"\u22f9\u0338","notinva":"\u2209","notinvb":"\u22f7","notinvc":"\u22f6","NotLeftTriangleBar":"\u29cf\u0338","NotLeftTriangle":"\u22ea","NotLeftTriangleEqual":"\u22ec","NotLess":"\u226e","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226a\u0338","NotLessSlantEqual":"\u2a7d\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2aa2\u0338","NotNestedLessLess":"\u2aa1\u0338","notni":"\u220c","notniva":"\u220c","notnivb":"\u22fe","notnivc":"\u22fd","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2aaf\u0338","NotPrecedesSlantEqual":"\u22e0","NotReverseElement":"\u220c","NotRightTriangleBar":"\u29d0\u0338","NotRightTriangle":"\u22eb","NotRightTriangleEqual":"\u22ed","NotSquareSubset":"\u228f\u0338","NotSquareSubsetEqual":"\u22e2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22e3","NotSubset":"\u2282\u20d2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2ab0\u0338","NotSucceedsSlantEqual":"\u22e1","NotSucceedsTilde":"\u227f\u0338","NotSuperset":"\u2283\u20d2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2afd\u20e5","npart":"\u2202\u0338","npolint":"\u2a14","npr":"\u2280","nprcue":"\u22e0","nprec":"\u2280","npreceq":"\u2aaf\u0338","npre":"\u2aaf\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219b","nrArr":"\u21cf","nrarrw":"\u219d\u0338","nrightarrow":"\u219b","nRightarrow":"\u21cf","nrtri":"\u22eb","nrtrie":"\u22ed","nsc":"\u2281","nsccue":"\u22e1","nsce":"\u2ab0\u0338","Nscr":"\ud835\udca9","nscr":"\ud835\udcc3","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22e2","nsqsupe":"\u22e3","nsub":"\u2284","nsubE":"\u2ac5\u0338","nsube":"\u2288","nsubset":"\u2282\u20d2","nsubseteq":"\u2288","nsubseteqq":"\u2ac5\u0338","nsucc":"\u2281","nsucceq":"\u2ab0\u0338","nsup":"\u2285","nsupE":"\u2ac6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20d2","nsupseteq":"\u2289","nsupseteqq":"\u2ac6\u0338","ntgl":"\u2279","Ntilde":"\xd1","ntilde":"\xf1","ntlg":"\u2278","ntriangleleft":"\u22ea","ntrianglelefteq":"\u22ec","ntriangleright":"\u22eb","ntrianglerighteq":"\u22ed","Nu":"\u039d","nu":"\u03bd","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224d\u20d2","nvdash":"\u22ac","nvDash":"\u22ad","nVdash":"\u22ae","nVDash":"\u22af","nvge":"\u2265\u20d2","nvgt":">\u20d2","nvHarr":"\u2904","nvinfin":"\u29de","nvlArr":"\u2902","nvle":"\u2264\u20d2","nvlt":"<\u20d2","nvltrie":"\u22b4\u20d2","nvrArr":"\u2903","nvrtrie":"\u22b5\u20d2","nvsim":"\u223c\u20d2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21d6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xd3","oacute":"\xf3","oast":"\u229b","Ocirc":"\xd4","ocirc":"\xf4","ocir":"\u229a","Ocy":"\u041e","ocy":"\u043e","odash":"\u229d","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2a38","odot":"\u2299","odsold":"\u29bc","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29bf","Ofr":"\ud835\udd12","ofr":"\ud835\udd2c","ogon":"\u02db","Ograve":"\xd2","ograve":"\xf2","ogt":"\u29c1","ohbar":"\u29b5","ohm":"\u03a9","oint":"\u222e","olarr":"\u21ba","olcir":"\u29be","olcross":"\u29bb","oline":"\u203e","olt":"\u29c0","Omacr":"\u014c","omacr":"\u014d","Omega":"\u03a9","omega":"\u03c9","Omicron":"\u039f","omicron":"\u03bf","omid":"\u29b6","ominus":"\u2296","Oopf":"\ud835\udd46","oopf":"\ud835\udd60","opar":"\u29b7","OpenCurlyDoubleQuote":"\u201c","OpenCurlyQuote":"\u2018","operp":"\u29b9","oplus":"\u2295","orarr":"\u21bb","Or":"\u2a54","or":"\u2228","ord":"\u2a5d","order":"\u2134","orderof":"\u2134","ordf":"\xaa","ordm":"\xba","origof":"\u22b6","oror":"\u2a56","orslope":"\u2a57","orv":"\u2a5b","oS":"\u24c8","Oscr":"\ud835\udcaa","oscr":"\u2134","Oslash":"\xd8","oslash":"\xf8","osol":"\u2298","Otilde":"\xd5","otilde":"\xf5","otimesas":"\u2a36","Otimes":"\u2a37","otimes":"\u2297","Ouml":"\xd6","ouml":"\xf6","ovbar":"\u233d","OverBar":"\u203e","OverBrace":"\u23de","OverBracket":"\u23b4","OverParenthesis":"\u23dc","para":"\xb6","parallel":"\u2225","par":"\u2225","parsim":"\u2af3","parsl":"\u2afd","part":"\u2202","PartialD":"\u2202","Pcy":"\u041f","pcy":"\u043f","percnt":"%","period":".","permil":"\u2030","perp":"\u22a5","pertenk":"\u2031","Pfr":"\ud835\udd13","pfr":"\ud835\udd2d","Phi":"\u03a6","phi":"\u03c6","phiv":"\u03d5","phmmat":"\u2133","phone":"\u260e","Pi":"\u03a0","pi":"\u03c0","pitchfork":"\u22d4","piv":"\u03d6","planck":"\u210f","planckh":"\u210e","plankv":"\u210f","plusacir":"\u2a23","plusb":"\u229e","pluscir":"\u2a22","plus":"+","plusdo":"\u2214","plusdu":"\u2a25","pluse":"\u2a72","PlusMinus":"\xb1","plusmn":"\xb1","plussim":"\u2a26","plustwo":"\u2a27","pm":"\xb1","Poincareplane":"\u210c","pointint":"\u2a15","popf":"\ud835\udd61","Popf":"\u2119","pound":"\xa3","prap":"\u2ab7","Pr":"\u2abb","pr":"\u227a","prcue":"\u227c","precapprox":"\u2ab7","prec":"\u227a","preccurlyeq":"\u227c","Precedes":"\u227a","PrecedesEqual":"\u2aaf","PrecedesSlantEqual":"\u227c","PrecedesTilde":"\u227e","preceq":"\u2aaf","precnapprox":"\u2ab9","precneqq":"\u2ab5","precnsim":"\u22e8","pre":"\u2aaf","prE":"\u2ab3","precsim":"\u227e","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2ab9","prnE":"\u2ab5","prnsim":"\u22e8","prod":"\u220f","Product":"\u220f","profalar":"\u232e","profline":"\u2312","profsurf":"\u2313","prop":"\u221d","Proportional":"\u221d","Proportion":"\u2237","propto":"\u221d","prsim":"\u227e","prurel":"\u22b0","Pscr":"\ud835\udcab","pscr":"\ud835\udcc5","Psi":"\u03a8","psi":"\u03c8","puncsp":"\u2008","Qfr":"\ud835\udd14","qfr":"\ud835\udd2e","qint":"\u2a0c","qopf":"\ud835\udd62","Qopf":"\u211a","qprime":"\u2057","Qscr":"\ud835\udcac","qscr":"\ud835\udcc6","quaternions":"\u210d","quatint":"\u2a16","quest":"?","questeq":"\u225f","quot":"\\"","QUOT":"\\"","rAarr":"\u21db","race":"\u223d\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221a","raemptyv":"\u29b3","rang":"\u27e9","Rang":"\u27eb","rangd":"\u2992","range":"\u29a5","rangle":"\u27e9","raquo":"\xbb","rarrap":"\u2975","rarrb":"\u21e5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21a0","rArr":"\u21d2","rarrfs":"\u291e","rarrhk":"\u21aa","rarrlp":"\u21ac","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21a3","rarrw":"\u219d","ratail":"\u291a","rAtail":"\u291c","ratio":"\u2236","rationals":"\u211a","rbarr":"\u290d","rBarr":"\u290f","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298c","rbrksld":"\u298e","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201d","rdquor":"\u201d","rdsh":"\u21b3","real":"\u211c","realine":"\u211b","realpart":"\u211c","reals":"\u211d","Re":"\u211c","rect":"\u25ad","reg":"\xae","REG":"\xae","ReverseElement":"\u220b","ReverseEquilibrium":"\u21cb","ReverseUpEquilibrium":"\u296f","rfisht":"\u297d","rfloor":"\u230b","rfr":"\ud835\udd2f","Rfr":"\u211c","rHar":"\u2964","rhard":"\u21c1","rharu":"\u21c0","rharul":"\u296c","Rho":"\u03a1","rho":"\u03c1","rhov":"\u03f1","RightAngleBracket":"\u27e9","RightArrowBar":"\u21e5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21d2","RightArrowLeftArrow":"\u21c4","rightarrowtail":"\u21a3","RightCeiling":"\u2309","RightDoubleBracket":"\u27e7","RightDownTeeVector":"\u295d","RightDownVectorBar":"\u2955","RightDownVector":"\u21c2","RightFloor":"\u230b","rightharpoondown":"\u21c1","rightharpoonup":"\u21c0","rightleftarrows":"\u21c4","rightleftharpoons":"\u21cc","rightrightarrows":"\u21c9","rightsquigarrow":"\u219d","RightTeeArrow":"\u21a6","RightTee":"\u22a2","RightTeeVector":"\u295b","rightthreetimes":"\u22cc","RightTriangleBar":"\u29d0","RightTriangle":"\u22b3","RightTriangleEqual":"\u22b5","RightUpDownVector":"\u294f","RightUpTeeVector":"\u295c","RightUpVectorBar":"\u2954","RightUpVector":"\u21be","RightVectorBar":"\u2953","RightVector":"\u21c0","ring":"\u02da","risingdotseq":"\u2253","rlarr":"\u21c4","rlhar":"\u21cc","rlm":"\u200f","rmoustache":"\u23b1","rmoust":"\u23b1","rnmid":"\u2aee","roang":"\u27ed","roarr":"\u21fe","robrk":"\u27e7","ropar":"\u2986","ropf":"\ud835\udd63","Ropf":"\u211d","roplus":"\u2a2e","rotimes":"\u2a35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2a12","rrarr":"\u21c9","Rrightarrow":"\u21db","rsaquo":"\u203a","rscr":"\ud835\udcc7","Rscr":"\u211b","rsh":"\u21b1","Rsh":"\u21b1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22cc","rtimes":"\u22ca","rtri":"\u25b9","rtrie":"\u22b5","rtrif":"\u25b8","rtriltri":"\u29ce","RuleDelayed":"\u29f4","ruluhar":"\u2968","rx":"\u211e","Sacute":"\u015a","sacute":"\u015b","sbquo":"\u201a","scap":"\u2ab8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2abc","sc":"\u227b","sccue":"\u227d","sce":"\u2ab0","scE":"\u2ab4","Scedil":"\u015e","scedil":"\u015f","Scirc":"\u015c","scirc":"\u015d","scnap":"\u2aba","scnE":"\u2ab6","scnsim":"\u22e9","scpolint":"\u2a13","scsim":"\u227f","Scy":"\u0421","scy":"\u0441","sdotb":"\u22a1","sdot":"\u22c5","sdote":"\u2a66","searhk":"\u2925","searr":"\u2198","seArr":"\u21d8","searrow":"\u2198","sect":"\xa7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\ud835\udd16","sfr":"\ud835\udd30","sfrown":"\u2322","sharp":"\u266f","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xad","Sigma":"\u03a3","sigma":"\u03c3","sigmaf":"\u03c2","sigmav":"\u03c2","sim":"\u223c","simdot":"\u2a6a","sime":"\u2243","simeq":"\u2243","simg":"\u2a9e","simgE":"\u2aa0","siml":"\u2a9d","simlE":"\u2a9f","simne":"\u2246","simplus":"\u2a24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2a33","smeparsl":"\u29e4","smid":"\u2223","smile":"\u2323","smt":"\u2aaa","smte":"\u2aac","smtes":"\u2aac\ufe00","SOFTcy":"\u042c","softcy":"\u044c","solbar":"\u233f","solb":"\u29c4","sol":"/","Sopf":"\ud835\udd4a","sopf":"\ud835\udd64","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\ufe00","sqcup":"\u2294","sqcups":"\u2294\ufe00","Sqrt":"\u221a","sqsub":"\u228f","sqsube":"\u2291","sqsubset":"\u228f","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25a1","Square":"\u25a1","SquareIntersection":"\u2293","SquareSubset":"\u228f","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25aa","squ":"\u25a1","squf":"\u25aa","srarr":"\u2192","Sscr":"\ud835\udcae","sscr":"\ud835\udcc8","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22c6","Star":"\u22c6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03f5","straightphi":"\u03d5","strns":"\xaf","sub":"\u2282","Sub":"\u22d0","subdot":"\u2abd","subE":"\u2ac5","sube":"\u2286","subedot":"\u2ac3","submult":"\u2ac1","subnE":"\u2acb","subne":"\u228a","subplus":"\u2abf","subrarr":"\u2979","subset":"\u2282","Subset":"\u22d0","subseteq":"\u2286","subseteqq":"\u2ac5","SubsetEqual":"\u2286","subsetneq":"\u228a","subsetneqq":"\u2acb","subsim":"\u2ac7","subsub":"\u2ad5","subsup":"\u2ad3","succapprox":"\u2ab8","succ":"\u227b","succcurlyeq":"\u227d","Succeeds":"\u227b","SucceedsEqual":"\u2ab0","SucceedsSlantEqual":"\u227d","SucceedsTilde":"\u227f","succeq":"\u2ab0","succnapprox":"\u2aba","succneqq":"\u2ab6","succnsim":"\u22e9","succsim":"\u227f","SuchThat":"\u220b","sum":"\u2211","Sum":"\u2211","sung":"\u266a","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","sup":"\u2283","Sup":"\u22d1","supdot":"\u2abe","supdsub":"\u2ad8","supE":"\u2ac6","supe":"\u2287","supedot":"\u2ac4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27c9","suphsub":"\u2ad7","suplarr":"\u297b","supmult":"\u2ac2","supnE":"\u2acc","supne":"\u228b","supplus":"\u2ac0","supset":"\u2283","Supset":"\u22d1","supseteq":"\u2287","supseteqq":"\u2ac6","supsetneq":"\u228b","supsetneqq":"\u2acc","supsim":"\u2ac8","supsub":"\u2ad4","supsup":"\u2ad6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21d9","swarrow":"\u2199","swnwar":"\u292a","szlig":"\xdf","Tab":"\\t","target":"\u2316","Tau":"\u03a4","tau":"\u03c4","tbrk":"\u23b4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20db","telrec":"\u2315","Tfr":"\ud835\udd17","tfr":"\ud835\udd31","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03b8","thetasym":"\u03d1","thetav":"\u03d1","thickapprox":"\u2248","thicksim":"\u223c","ThickSpace":"\u205f\u200a","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223c","THORN":"\xde","thorn":"\xfe","tilde":"\u02dc","Tilde":"\u223c","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2a31","timesb":"\u22a0","times":"\xd7","timesd":"\u2a30","tint":"\u222d","toea":"\u2928","topbot":"\u2336","topcir":"\u2af1","top":"\u22a4","Topf":"\ud835\udd4b","topf":"\ud835\udd65","topfork":"\u2ada","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25b5","triangledown":"\u25bf","triangleleft":"\u25c3","trianglelefteq":"\u22b4","triangleq":"\u225c","triangleright":"\u25b9","trianglerighteq":"\u22b5","tridot":"\u25ec","trie":"\u225c","triminus":"\u2a3a","TripleDot":"\u20db","triplus":"\u2a39","trisb":"\u29cd","tritime":"\u2a3b","trpezium":"\u23e2","Tscr":"\ud835\udcaf","tscr":"\ud835\udcc9","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040b","tshcy":"\u045b","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226c","twoheadleftarrow":"\u219e","twoheadrightarrow":"\u21a0","Uacute":"\xda","uacute":"\xfa","uarr":"\u2191","Uarr":"\u219f","uArr":"\u21d1","Uarrocir":"\u2949","Ubrcy":"\u040e","ubrcy":"\u045e","Ubreve":"\u016c","ubreve":"\u016d","Ucirc":"\xdb","ucirc":"\xfb","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21c5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296e","ufisht":"\u297e","Ufr":"\ud835\udd18","ufr":"\ud835\udd32","Ugrave":"\xd9","ugrave":"\xf9","uHar":"\u2963","uharl":"\u21bf","uharr":"\u21be","uhblk":"\u2580","ulcorn":"\u231c","ulcorner":"\u231c","ulcrop":"\u230f","ultri":"\u25f8","Umacr":"\u016a","umacr":"\u016b","uml":"\xa8","UnderBar":"_","UnderBrace":"\u23df","UnderBracket":"\u23b5","UnderParenthesis":"\u23dd","Union":"\u22c3","UnionPlus":"\u228e","Uogon":"\u0172","uogon":"\u0173","Uopf":"\ud835\udd4c","uopf":"\ud835\udd66","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21d1","UpArrowDownArrow":"\u21c5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21d5","UpEquilibrium":"\u296e","upharpoonleft":"\u21bf","upharpoonright":"\u21be","uplus":"\u228e","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03c5","Upsi":"\u03d2","upsih":"\u03d2","Upsilon":"\u03a5","upsilon":"\u03c5","UpTeeArrow":"\u21a5","UpTee":"\u22a5","upuparrows":"\u21c8","urcorn":"\u231d","urcorner":"\u231d","urcrop":"\u230e","Uring":"\u016e","uring":"\u016f","urtri":"\u25f9","Uscr":"\ud835\udcb0","uscr":"\ud835\udcca","utdot":"\u22f0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25b5","utrif":"\u25b4","uuarr":"\u21c8","Uuml":"\xdc","uuml":"\xfc","uwangle":"\u29a7","vangrt":"\u299c","varepsilon":"\u03f5","varkappa":"\u03f0","varnothing":"\u2205","varphi":"\u03d5","varpi":"\u03d6","varpropto":"\u221d","varr":"\u2195","vArr":"\u21d5","varrho":"\u03f1","varsigma":"\u03c2","varsubsetneq":"\u228a\ufe00","varsubsetneqq":"\u2acb\ufe00","varsupsetneq":"\u228b\ufe00","varsupsetneqq":"\u2acc\ufe00","vartheta":"\u03d1","vartriangleleft":"\u22b2","vartriangleright":"\u22b3","vBar":"\u2ae8","Vbar":"\u2aeb","vBarv":"\u2ae9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22a2","vDash":"\u22a8","Vdash":"\u22a9","VDash":"\u22ab","Vdashl":"\u2ae6","veebar":"\u22bb","vee":"\u2228","Vee":"\u22c1","veeeq":"\u225a","vellip":"\u22ee","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200a","Vfr":"\ud835\udd19","vfr":"\ud835\udd33","vltri":"\u22b2","vnsub":"\u2282\u20d2","vnsup":"\u2283\u20d2","Vopf":"\ud835\udd4d","vopf":"\ud835\udd67","vprop":"\u221d","vrtri":"\u22b3","Vscr":"\ud835\udcb1","vscr":"\ud835\udccb","vsubnE":"\u2acb\ufe00","vsubne":"\u228a\ufe00","vsupnE":"\u2acc\ufe00","vsupne":"\u228b\ufe00","Vvdash":"\u22aa","vzigzag":"\u299a","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2a5f","wedge":"\u2227","Wedge":"\u22c0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\ud835\udd1a","wfr":"\ud835\udd34","Wopf":"\ud835\udd4e","wopf":"\ud835\udd68","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\ud835\udcb2","wscr":"\ud835\udccc","xcap":"\u22c2","xcirc":"\u25ef","xcup":"\u22c3","xdtri":"\u25bd","Xfr":"\ud835\udd1b","xfr":"\ud835\udd35","xharr":"\u27f7","xhArr":"\u27fa","Xi":"\u039e","xi":"\u03be","xlarr":"\u27f5","xlArr":"\u27f8","xmap":"\u27fc","xnis":"\u22fb","xodot":"\u2a00","Xopf":"\ud835\udd4f","xopf":"\ud835\udd69","xoplus":"\u2a01","xotime":"\u2a02","xrarr":"\u27f6","xrArr":"\u27f9","Xscr":"\ud835\udcb3","xscr":"\ud835\udccd","xsqcup":"\u2a06","xuplus":"\u2a04","xutri":"\u25b3","xvee":"\u22c1","xwedge":"\u22c0","Yacute":"\xdd","yacute":"\xfd","YAcy":"\u042f","yacy":"\u044f","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042b","ycy":"\u044b","yen":"\xa5","Yfr":"\ud835\udd1c","yfr":"\ud835\udd36","YIcy":"\u0407","yicy":"\u0457","Yopf":"\ud835\udd50","yopf":"\ud835\udd6a","Yscr":"\ud835\udcb4","yscr":"\ud835\udcce","YUcy":"\u042e","yucy":"\u044e","yuml":"\xff","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017a","Zcaron":"\u017d","zcaron":"\u017e","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017b","zdot":"\u017c","zeetrf":"\u2128","ZeroWidthSpace":"\u200b","Zeta":"\u0396","zeta":"\u03b6","zfr":"\ud835\udd37","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21dd","zopf":"\ud835\udd6b","Zopf":"\u2124","Zscr":"\ud835\udcb5","zscr":"\ud835\udccf","zwj":"\u200d","zwnj":"\u200c"}')}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[927],{48689:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(1413),o=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},s=r(42135),a=function(e,t){return o.createElement(s.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:i}))};a.displayName="DeleteOutlined";var c=o.forwardRef(a)},88484:function(e,t,r){"use strict";r.d(t,{Z:function(){return c}});var n=r(1413),o=r(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},s=r(42135),a=function(e,t){return o.createElement(s.Z,(0,n.Z)((0,n.Z)({},e),{},{ref:t,icon:i}))};a.displayName="UploadOutlined";var c=o.forwardRef(a)},94594:function(e,t,r){"use strict";r.d(t,{Z:function(){return y}});var n=r(87462),o=r(4942),i=r(50888),s=r(94184),a=r.n(s),c=r(97685),l=r(91),u=r(67294),p=r(21770),f=r(15105),h=u.forwardRef((function(e,t){var r,n=e.prefixCls,i=void 0===n?"rc-switch":n,s=e.className,h=e.checked,d=e.defaultChecked,m=e.disabled,g=e.loadingIcon,_=e.checkedChildren,v=e.unCheckedChildren,b=e.onClick,k=e.onChange,y=e.onKeyDown,C=(0,l.Z)(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),x=(0,p.Z)(!1,{value:h,defaultValue:d}),w=(0,c.Z)(x,2),E=w[0],A=w[1];function D(e,t){var r=E;return m||(A(r=e),null===k||void 0===k||k(r,t)),r}var S=a()(i,s,(r={},(0,o.Z)(r,"".concat(i,"-checked"),E),(0,o.Z)(r,"".concat(i,"-disabled"),m),r));return u.createElement("button",Object.assign({},C,{type:"button",role:"switch","aria-checked":E,disabled:m,className:S,ref:t,onKeyDown:function(e){e.which===f.Z.LEFT?D(!1,e):e.which===f.Z.RIGHT&&D(!0,e),null===y||void 0===y||y(e)},onClick:function(e){var t=D(!E,e);null===b||void 0===b||b(t,e)}}),g,u.createElement("span",{className:"".concat(i,"-inner")},E?_:v))}));h.displayName="Switch";var d=h,m=r(53124),g=r(98866),_=r(97647),v=r(68349),b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var r=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var n=e.data[t];Array.isArray(n)?n.forEach((function(e){r.append("".concat(t,"[]"),e)})):r.append(t,n)})),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}(e,t),b(t)):e.onSuccess(b(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return null!==n["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach((function(e){null!==n[e]&&t.setRequestHeader(e,n[e])})),t.send(r),{abort:function(){t.abort()}}}var y=+new Date,C=0;function x(){return"rc-upload-".concat(y,"-").concat(++C)}var w=r(80334),E=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return r.some((function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var r=n.toLowerCase(),s=t.toLowerCase(),a=[s];return".jpg"!==s&&".jpeg"!==s||(a=[".jpg",".jpeg"]),a.some((function(e){return r.endsWith(e)}))}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):o===t||!!/^\w+$/.test(t)&&((0,w.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)}))}return!0};var A=function(e,t,r){var n=function e(n,o){n.path=o||"",n.isFile?n.file((function(e){r(e)&&(n.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=n.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):n.isDirectory&&function(e,t){var r=e.createReader(),n=[];!function e(){r.readEntries((function(r){var o=Array.prototype.slice.apply(r);n=n.concat(o),o.length?e():t(n)}))}()}(n,(function(t){t.forEach((function(t){e(t,"".concat(o).concat(n.name,"/"))}))}))};e.forEach((function(e){n(e.webkitGetAsEntry())}))},D=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],S=function(e){(0,d.Z)(r,e);var t=(0,m.Z)(r);function r(){var e;(0,f.Z)(this,r);for(var n=arguments.length,o=new Array(n),i=0;ii?l=-((a=i*(se/e))-s)/2:c=-((s=e*(se/i))-a)/2,n.drawImage(o,c,l,s,a);var u=r.toDataURL();document.body.removeChild(r),t(u)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){var i=new FileReader;i.addEventListener("load",(function(){i.result&&(o.src=i.result)})),i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)}else t("")}))},isImageUrl:function(e){if(e.type&&!e.thumbUrl)return ie(e.type);var t=e.thumbUrl||e.url||"",r=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(r))||!/^data:/.test(t)&&!r}};var ve=_e,be=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function s(e){try{c(n.next(e))}catch(t){i(t)}}function a(e){try{c(n.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}c((n=n.apply(e,t||[])).next())}))},ke="__LIST_IGNORE_".concat(Date.now(),"__"),ye=function(e,t){var r,u=e.fileList,f=e.defaultFileList,h=e.onRemove,d=e.showUploadList,m=e.listType,g=e.onPreview,_=e.onDownload,v=e.onChange,b=e.onDrop,k=e.previewFile,y=e.disabled,C=e.locale,x=e.iconRender,w=e.isImageUrl,E=e.progress,A=e.prefixCls,D=e.className,S=e.type,q=e.children,F=e.style,L=e.itemRender,N=e.maxCount,P=o.useContext(T.Z),j=y||P,B=(0,z.Z)(f||[],{value:u,postState:function(e){return null!==e&&void 0!==e?e:[]}}),U=(0,l.Z)(B,2),V=U[0],H=U[1],$=o.useState("drop"),G=(0,l.Z)($,2),J=G[0],W=G[1],K=o.useRef();o.useMemo((function(){var e=Date.now();(u||[]).forEach((function(t,r){t.uid||Object.isFrozen(t)||(t.uid="__AUTO__".concat(e,"_").concat(r,"__"))}))}),[u]);var Y=function(e,t,r){var n=(0,c.Z)(t);1===N?n=n.slice(-1):N&&(n=n.slice(0,N)),(0,I.flushSync)((function(){H(n)}));var o={file:e,fileList:n};r&&(o.event=r),null===v||void 0===v||v(o)},X=function(e){var t=e.filter((function(e){return!e.file[ke]}));if(t.length){var r=t.map((function(e){return re(e.file)})),n=(0,c.Z)(V);r.forEach((function(e){n=ne(e,n)})),r.forEach((function(e,r){var o=e;if(t[r].parsedFile)e.status="uploading";else{var i,s=e.originFileObj;try{i=new File([s],s.name,{type:s.type})}catch(a){(i=new Blob([s],{type:s.type})).name=s.name,i.lastModifiedDate=new Date,i.lastModified=(new Date).getTime()}i.uid=e.uid,o=i}Y(o,n)}))}},Q=function(e,t,r){try{"string"===typeof e&&(e=JSON.parse(e))}catch(i){}if(oe(t,V)){var n=re(t);n.status="done",n.percent=100,n.response=e,n.xhr=r;var o=ne(n,V);Y(n,o)}},ee=function(e,t){if(oe(t,V)){var r=re(t);r.status="uploading",r.percent=e.percent;var n=ne(r,V);Y(r,n,e)}},te=function(e,t,r){if(oe(r,V)){var n=re(r);n.error=e,n.response=t,n.status="error";var o=ne(n,V);Y(n,o)}},ie=function(e){var t;Promise.resolve("function"===typeof h?h(e):h).then((function(r){var o;if(!1!==r){var i=function(e,t){var r=void 0!==e.uid?"uid":"name",n=t.filter((function(t){return t[r]!==e[r]}));return n.length===t.length?null:n}(e,V);i&&(t=(0,n.Z)((0,n.Z)({},e),{status:"removed"}),null===V||void 0===V||V.forEach((function(e){var r=void 0!==t.uid?"uid":"name";e[r]!==t[r]||Object.isFrozen(e)||(e.status="removed")})),null===(o=K.current)||void 0===o||o.abort(t),Y(t,i))}}))},se=function(e){W(e.type),"drop"===e.type&&(null===b||void 0===b||b(e))};o.useImperativeHandle(t,(function(){return{onBatchStart:X,onSuccess:Q,onProgress:ee,onError:te,fileList:V,upload:K.current}}));var ae=o.useContext(R.E_),ce=ae.getPrefixCls,le=ae.direction,ue=ce("upload",A),pe=(0,n.Z)((0,n.Z)({onBatchStart:X,onError:te,onProgress:ee,onSuccess:Q},e),{prefixCls:ue,disabled:j,beforeUpload:function(t,r){return be(void 0,void 0,void 0,(0,s.Z)().mark((function n(){var o,i,c,l;return(0,s.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=e.beforeUpload,i=e.transformFile,c=t,!o){n.next=13;break}return n.next=5,o(t,r);case 5:if(!1!==(l=n.sent)){n.next=8;break}return n.abrupt("return",!1);case 8:if(delete t[ke],l!==ke){n.next=12;break}return Object.defineProperty(t,ke,{value:!0,configurable:!0}),n.abrupt("return",!1);case 12:"object"===(0,a.Z)(l)&&l&&(c=l);case 13:if(!i){n.next=17;break}return n.next=16,i(c);case 16:c=n.sent;case 17:return n.abrupt("return",c);case 18:case"end":return n.stop()}}),n)})))},onChange:void 0});delete pe.className,delete pe.style,q&&!j||delete pe.id;var fe=function(e,t){return d?o.createElement(M.Z,{componentName:"Upload",defaultLocale:O.Z.Upload},(function(r){var i="boolean"===typeof d?{}:d,s=i.showRemoveIcon,a=i.showPreviewIcon,c=i.showDownloadIcon,l=i.removeIcon,u=i.previewIcon,p=i.downloadIcon;return o.createElement(ve,{prefixCls:ue,listType:m,items:V,previewFile:k,onPreview:g,onDownload:_,onRemove:ie,showRemoveIcon:!j&&s,showPreviewIcon:a,showDownloadIcon:c,removeIcon:l,previewIcon:u,downloadIcon:p,iconRender:x,locale:(0,n.Z)((0,n.Z)({},r),C),isImageUrl:w,progress:E,appendAction:e,appendActionVisible:t,itemRender:L})})):e};if("drag"===S){var he,de=p()(ue,(he={},(0,i.Z)(he,"".concat(ue,"-drag"),!0),(0,i.Z)(he,"".concat(ue,"-drag-uploading"),V.some((function(e){return"uploading"===e.status}))),(0,i.Z)(he,"".concat(ue,"-drag-hover"),"dragover"===J),(0,i.Z)(he,"".concat(ue,"-disabled"),j),(0,i.Z)(he,"".concat(ue,"-rtl"),"rtl"===le),he),D);return o.createElement("span",null,o.createElement("div",{className:de,onDrop:se,onDragOver:se,onDragLeave:se,style:F},o.createElement(Z,(0,n.Z)({},pe,{ref:K,className:"".concat(ue,"-btn")}),o.createElement("div",{className:"".concat(ue,"-drag-container")},q))),fe())}var me,ge=p()(ue,(r={},(0,i.Z)(r,"".concat(ue,"-select"),!0),(0,i.Z)(r,"".concat(ue,"-select-").concat(m),!0),(0,i.Z)(r,"".concat(ue,"-disabled"),j),(0,i.Z)(r,"".concat(ue,"-rtl"),"rtl"===le),r)),_e=(me=q?void 0:{display:"none"},o.createElement("div",{className:ge,style:me},o.createElement(Z,(0,n.Z)({},pe,{ref:K}))));return"picture-card"===m?o.createElement("span",{className:p()("".concat(ue,"-picture-card-wrapper"),D)},fe(_e,!!q)):o.createElement("span",{className:D},_e,fe())},Ce=o.forwardRef(ye);Ce.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var xe=Ce,we=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){var n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},l="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function u(e){var t=e.re=r(36066)(e.__opts__),n=e.__tlds__.slice();function a(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(a(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(a(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(a(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(a(t.tpl_host_fuzzy_test),"i");var c=[];function l(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var r=e.__schemas__[t];if(null!==r){var n={validate:null,link:null};if(e.__compiled__[t]=n,"[object Object]"===o(r))return!function(e){return"[object RegExp]"===o(e)}(r.validate)?i(r.validate)?n.validate=r.validate:l(t,r):n.validate=function(e){return function(t,r){var n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}(r.validate),void(i(r.normalize)?n.normalize=r.normalize:r.normalize?l(t,r):n.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===o(e)}(r)?l(t,r):c.push(t)}})),c.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var u=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(s).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+u+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+u+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function p(e,t){var r=e.__index__,n=e.__last_index__,o=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=o,this.text=o,this.url=o}function f(e,t){var r=new p(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function h(e,t){if(!(this instanceof h))return new h(e,t);var r;t||(r=e,Object.keys(r||{}).reduce((function(e,t){return e||a.hasOwnProperty(t)}),!1)&&(t=e,e={})),this.__opts__=n({},a,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},c,e),this.__compiled__={},this.__tlds__=l,this.__tlds_replaced__=!1,this.re={},u(this)}h.prototype.add=function(e,t){return this.__schemas__[e]=t,u(this),this},h.prototype.set=function(e){return this.__opts__=n(this.__opts__,e),this},h.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,r,n,o,i,s,a,c;if(this.re.schema_test.test(e))for((a=this.re.schema_search).lastIndex=0;null!==(t=a.exec(e));)if(o=this.testSchemaAt(e,t[2],a.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(c=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||c=0&&null!==(n=e.match(this.re.email_fuzzy))&&(i=n.index+n[1].length,s=n.index+n[0].length,(this.__index__<0||ithis.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=s)),this.__index__>=0},h.prototype.pretest=function(e){return this.re.pretest.test(e)},h.prototype.testSchemaAt=function(e,t,r){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,r,this):0},h.prototype.match=function(e){var t=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(f(this,t)),t=this.__last_index__);for(var n=t?e.slice(t):e;this.test(n);)r.push(f(this,t)),n=n.slice(this.__last_index__),t+=this.__last_index__;return r.length?r:null},h.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var r=this.testSchemaAt(e,t[2],t[0].length);return r?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+r,f(this,0)):null},h.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,r){return e!==r[t-1]})).reverse(),u(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,u(this),this)},h.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},h.prototype.onCompile=function(){},e.exports=h},36066:function(e,t,r){"use strict";e.exports=function(e){var t={};e=e||{},t.src_Any=r(29369).source,t.src_Cc=r(99413).source,t.src_Z=r(35045).source,t.src_P=r(73189).source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><\uff5c]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><\uff5c]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+"[><\uff5c]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><\uff5c]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},9980:function(e,t,r){"use strict";e.exports=r(17024)},26233:function(e,t,r){"use strict";e.exports=r(95485)},40813:function(e){"use strict";e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},51947:function(e){"use strict";var t="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",n=new RegExp("^(?:"+t+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),o=new RegExp("^(?:"+t+"|"+r+")");e.exports.n=n,e.exports.q=o},67022:function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty;function o(e,t){return n.call(e,t)}function i(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function s(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var a=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,c=new RegExp(a.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),l=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,u=r(26233);var p=/[&<>"]/,f=/[&<>"]/g,h={"&":"&","<":"<",">":">",'"':"""};function d(e){return h[e]}var m=/[.?*+^$[\]\\(){}|-]/g;var g=r(73189);t.lib={},t.lib.mdurl=r(48765),t.lib.ucmicro=r(84205),t.assign=function(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach((function(t){if(t){if("object"!==typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(r){e[r]=t[r]}))}})),e},t.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},t.has=o,t.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(a,"$1")},t.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(c,(function(e,t,r){return t||function(e,t){var r=0;return o(u,t)?u[t]:35===t.charCodeAt(0)&&l.test(t)&&i(r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?s(r):e}(e,r)}))},t.isValidEntityCode=i,t.fromCodePoint=s,t.escapeHtml=function(e){return p.test(e)?e.replace(f,d):e},t.arrayReplaceAt=function(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))},t.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},t.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},t.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},t.isPunctChar=function(e){return g.test(e)},t.escapeRE=function(e){return e.replace(m,"\\$&")},t.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"\u1e7e"==="\u1e9e".toLowerCase()&&(e=e.replace(/\u1e9e/g,"\xdf")),e.toLowerCase().toUpperCase()}},51685:function(e,t,r){"use strict";t.parseLinkLabel=r(33595),t.parseLinkDestination=r(12548),t.parseLinkTitle=r(88040)},12548:function(e,t,r){"use strict";var n=r(67022).unescapeAll;e.exports=function(e,t,r){var o,i,s=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t32)return a;if(41===o){if(0===i)break;i--}t++}return s===t||0!==i||(a.str=n(e.slice(s,t)),a.lines=0,a.pos=t,a.ok=!0),a}},33595:function(e){"use strict";e.exports=function(e,t,r){var n,o,i,s,a=-1,c=e.posMax,l=e.pos;for(e.pos=t+1,n=1;e.pos=r)return c;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return c;for(t++,40===i&&(i=41);t=0))try{t.hostname=p.toASCII(t.hostname)}catch(r){}return u.encode(u.format(t))}function v(e){var t=u.parse(e,!0);if(t.hostname&&(!t.protocol||g.indexOf(t.protocol)>=0))try{t.hostname=p.toUnicode(t.hostname)}catch(r){}return u.decode(u.format(t),u.decode.defaultChars+"%")}function b(e,t){if(!(this instanceof b))return new b(e,t);t||n.isString(e)||(t=e||{},e="default"),this.inline=new c,this.block=new a,this.core=new s,this.renderer=new i,this.linkify=new l,this.validateLink=m,this.normalizeLink=_,this.normalizeLinkText=v,this.utils=n,this.helpers=n.assign({},o),this.options={},this.configure(e),t&&this.set(t)}b.prototype.set=function(e){return n.assign(this.options,e),this},b.prototype.configure=function(e){var t,r=this;if(n.isString(e)&&!(e=f[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&r.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&r[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&r[t].ruler2.enableOnly(e.components[t].rules2)})),this},b.prototype.enable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){r=r.concat(this[t].ruler.enable(e,!0))}),this),r=r.concat(this.inline.ruler2.enable(e,!0));var n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},b.prototype.disable=function(e,t){var r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){r=r.concat(this[t].ruler.disable(e,!0))}),this),r=r.concat(this.inline.ruler2.disable(e,!0));var n=e.filter((function(e){return r.indexOf(e)<0}));if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},b.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},b.prototype.parse=function(e,t){if("string"!==typeof e)throw new Error("Input data should be a String");var r=new this.core.State(e,this,t);return this.core.process(r),r.tokens},b.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},b.prototype.parseInline=function(e,t){var r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens},b.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)},e.exports=b},82471:function(e,t,r){"use strict";var n=r(79580),o=[["table",r(91785),["paragraph","reference"]],["code",r(38768)],["fence",r(13542),["paragraph","reference","blockquote","list"]],["blockquote",r(45258),["paragraph","reference","blockquote","list"]],["hr",r(35634),["paragraph","reference","blockquote","list"]],["list",r(18532),["paragraph","reference","blockquote"]],["reference",r(43804)],["html_block",r(76329),["paragraph","reference","blockquote"]],["heading",r(61630),["paragraph","reference","blockquote"]],["lheading",r(56850)],["paragraph",r(96864)]];function i(){this.ruler=new n;for(var e=0;e=r))&&!(e.sCount[s]=c){e.line=r;break}for(n=0;n=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},s.prototype.parse=function(e,t,r,n){var o,i,s,a=new this.State(e,t,r,n);for(this.tokenize(a),s=(i=this.ruler2.getRules("")).length,o=0;o"+i(e[t].content)+""},s.code_block=function(e,t,r,n,o){var s=e[t];return""+i(e[t].content)+"\n"},s.fence=function(e,t,r,n,s){var a,c,l,u,p,f=e[t],h=f.info?o(f.info).trim():"",d="",m="";return h&&(d=(l=h.split(/(\s+)/g))[0],m=l.slice(2).join("")),0===(a=r.highlight&&r.highlight(f.content,d,m)||i(f.content)).indexOf(""+a+"\n"):"
"+a+"
\n"},s.image=function(e,t,r,n,o){var i=e[t];return i.attrs[i.attrIndex("alt")][1]=o.renderInlineAsText(i.children,r,n),o.renderToken(e,t,r)},s.hardbreak=function(e,t,r){return r.xhtmlOut?"
\n":"
\n"},s.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"
\n":"
\n":"\n"},s.text=function(e,t){return i(e[t].content)},s.html_block=function(e,t){return e[t].content},s.html_inline=function(e,t){return e[t].content},a.prototype.renderAttrs=function(e){var t,r,n;if(!e.attrs)return"";for(n="",t=0,r=e.attrs.length;t\n":">")},a.prototype.renderInline=function(e,t,r){for(var n,o="",i=this.rules,s=0,a=e.length;s=4)return!1;if(62!==e.src.charCodeAt(A++))return!1;if(o)return!0;for(c=h=e.sCount[t]+1,32===e.src.charCodeAt(A)?(A++,c++,h++,i=!1,k=!0):9===e.src.charCodeAt(A)?(k=!0,(e.bsCount[t]+h)%4===3?(A++,c++,h++,i=!1):i=!0):k=!1,d=[e.bMarks[t]],e.bMarks[t]=A;A=D,v=[e.sCount[t]],e.sCount[t]=h-c,b=[e.tShift[t]],e.tShift[t]=A-e.bMarks[t],C=e.md.block.ruler.getRules("blockquote"),_=e.parentType,e.parentType="blockquote",f=t+1;f=(D=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(A++)||w){if(u)break;for(y=!1,a=0,l=C.length;a=D,m.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(k?1:0),v.push(e.sCount[f]),e.sCount[f]=h-c,b.push(e.tShift[f]),e.tShift[f]=A-e.bMarks[f]}for(g=e.blkIndent,e.blkIndent=0,(x=e.push("blockquote_open","blockquote",1)).markup=">",x.map=p=[t,0],e.md.block.tokenize(e,t,f),(x=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=E,e.parentType=_,p[1]=e.line,a=0;a=4))break;o=++n}return e.line=o,(i=e.push("code_block","code",0)).content=e.getLines(t,o,4+e.blkIndent,!1)+"\n",i.map=[t,e.line],!0}},13542:function(e){"use strict";e.exports=function(e,t,r,n){var o,i,s,a,c,l,u,p=!1,f=e.bMarks[t]+e.tShift[t],h=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(f+3>h)return!1;if(126!==(o=e.src.charCodeAt(f))&&96!==o)return!1;if(c=f,(i=(f=e.skipChars(f,o))-c)<3)return!1;if(u=e.src.slice(c,f),s=e.src.slice(f,h),96===o&&s.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;for(a=t;!(++a>=r)&&!((f=c=e.bMarks[a]+e.tShift[a])<(h=e.eMarks[a])&&e.sCount[a]=4)&&!((f=e.skipChars(f,o))-c=4)return!1;if(35!==(i=e.src.charCodeAt(l))||l>=u)return!1;for(s=1,i=e.src.charCodeAt(++l);35===i&&l6||ll&&n(e.src.charCodeAt(a-1))&&(u=a),e.line=t+1,(c=e.push("heading_open","h"+String(s),1)).markup="########".slice(0,s),c.map=[t,e.line],(c=e.push("inline","",0)).content=e.src.slice(l,u).trim(),c.map=[t,e.line],c.children=[],(c=e.push("heading_close","h"+String(s),-1)).markup="########".slice(0,s)),!0)}},35634:function(e,t,r){"use strict";var n=r(67022).isSpace;e.exports=function(e,t,r,o){var i,s,a,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(l++))&&45!==i&&95!==i)return!1;for(s=1;l|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(o.source+"\\s*$"),/^$/,!1]];e.exports=function(e,t,r,n){var o,s,a,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(l))return!1;for(c=e.src.slice(l,u),o=0;o=4)return!1;for(f=e.parentType,e.parentType="paragraph";h3)){if(e.sCount[h]>=e.blkIndent&&(c=e.bMarks[h]+e.tShift[h])<(l=e.eMarks[h])&&(45===(p=e.src.charCodeAt(c))||61===p)&&(c=e.skipChars(c,p),(c=e.skipSpaces(c))>=l)){u=61===p?1:2;break}if(!(e.sCount[h]<0)){for(o=!1,i=0,s=d.length;i=s)return-1;if((r=e.src.charCodeAt(i++))<48||r>57)return-1;for(;;){if(i>=s)return-1;if(!((r=e.src.charCodeAt(i++))>=48&&r<=57)){if(41===r||46===r)break;return-1}if(i-o>=10)return-1}return i=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]=e.blkIndent&&(I=!0),(S=i(e,t))>=0){if(f=!0,F=e.bMarks[t]+e.tShift[t],v=Number(e.src.slice(F,S-1)),I&&1!==v)return!1}else{if(!((S=o(e,t))>=0))return!1;f=!1}if(I&&e.skipSpaces(S)>=e.eMarks[t])return!1;if(_=e.src.charCodeAt(S-1),n)return!0;for(g=e.tokens.length,f?(z=e.push("ordered_list_open","ol",1),1!==v&&(z.attrs=[["start",v]])):z=e.push("bullet_list_open","ul",1),z.map=m=[t,0],z.markup=String.fromCharCode(_),k=t,q=!1,Z=e.md.block.ruler.getRules("list"),x=e.parentType,e.parentType="list";k=b?1:y-p)>4&&(u=1),l=p+u,(z=e.push("list_item_open","li",1)).markup=String.fromCharCode(_),z.map=h=[t,0],f&&(z.info=e.src.slice(F,S-1)),A=e.tight,E=e.tShift[t],w=e.sCount[t],C=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[t]=a-e.bMarks[t],e.sCount[t]=y,a>=b&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,t,r,!0),e.tight&&!q||(R=!1),q=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=C,e.tShift[t]=E,e.sCount[t]=w,e.tight=A,(z=e.push("list_item_close","li",-1)).markup=String.fromCharCode(_),k=t=e.line,h[1]=k,a=e.bMarks[t],k>=r)break;if(e.sCount[k]=4)break;for(L=!1,c=0,d=Z.length;c3)&&!(e.sCount[c]<0)){for(n=!1,o=0,i=l.length;o=4)return!1;if(91!==e.src.charCodeAt(x))return!1;for(;++x3)&&!(e.sCount[E]<0)){for(b=!1,p=0,f=k.length;p0&&this.level++,this.tokens.push(o),o},i.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},i.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;et;)if(!o(this.src.charCodeAt(--e)))return e+1;return e},i.prototype.skipChars=function(e,t){for(var r=this.src.length;er;)if(t!==this.src.charCodeAt(--e))return e+1;return e},i.prototype.getLines=function(e,t,r,n){var i,s,a,c,l,u,p,f=e;if(e>=t)return"";for(u=new Array(t-e),i=0;fr?new Array(s-r+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return u.join("")},i.prototype.Token=n,e.exports=i},91785:function(e,t,r){"use strict";var n=r(67022).isSpace;function o(e,t){var r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function i(e){var t,r=[],n=0,o=e.length,i=!1,s=0,a="";for(t=e.charCodeAt(n);nr)return!1;if(f=t+1,e.sCount[f]=4)return!1;if((l=e.bMarks[f]+e.tShift[f])>=e.eMarks[f])return!1;if(124!==(x=e.src.charCodeAt(l++))&&45!==x&&58!==x)return!1;if(l>=e.eMarks[f])return!1;if(124!==(w=e.src.charCodeAt(l++))&&45!==w&&58!==w&&!n(w))return!1;if(45===x&&n(w))return!1;for(;l=4)return!1;if((h=i(c)).length&&""===h[0]&&h.shift(),h.length&&""===h[h.length-1]&&h.pop(),0===(d=h.length)||d!==g.length)return!1;if(s)return!0;for(k=e.parentType,e.parentType="table",C=e.md.block.ruler.getRules("blockquote"),(m=e.push("table_open","table",1)).map=v=[t,0],(m=e.push("thead_open","thead",1)).map=[t,t+1],(m=e.push("tr_open","tr",1)).map=[t,t+1],u=0;u=4)break;for((h=i(c)).length&&""===h[0]&&h.shift(),h.length&&""===h[h.length-1]&&h.pop(),f===t+2&&((m=e.push("tbody_open","tbody",1)).map=b=[t+2,0]),(m=e.push("tr_open","tr",1)).map=[f,f+1],u=0;u/i.test(e)}e.exports=function(e){var t,r,i,s,a,c,l,u,p,f,h,d,m,g,_,v,b,k,y=e.tokens;if(e.md.options.linkify)for(r=0,i=y.length;r=0;t--)if("link_close"!==(c=s[t]).type){if("html_inline"===c.type&&(k=c.content,/^\s]/i.test(k)&&m>0&&m--,o(c.content)&&m++),!(m>0)&&"text"===c.type&&e.md.linkify.test(c.content)){for(p=c.content,b=e.md.linkify.match(p),l=[],d=c.level,h=0,b.length>0&&0===b[0].index&&t>0&&"text_special"===s[t-1].type&&(b=b.slice(1)),u=0;uh&&((a=new e.Token("text","",0)).content=p.slice(h,f),a.level=d,l.push(a)),(a=new e.Token("link_open","a",1)).attrs=[["href",_]],a.level=d++,a.markup="linkify",a.info="auto",l.push(a),(a=new e.Token("text","",0)).content=v,a.level=d,l.push(a),(a=new e.Token("link_close","a",-1)).level=--d,a.markup="linkify",a.info="auto",l.push(a),h=b[u].lastIndex);h=0;t--)"text"!==(r=e[t]).type||o||(r.content=r.content.replace(n,i)),"link_open"===r.type&&"auto"===r.info&&o--,"link_close"===r.type&&"auto"===r.info&&o++}function a(e){var r,n,o=0;for(r=e.length-1;r>=0;r--)"text"!==(n=e[r]).type||o||t.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1\u2014").replace(/(^|\s)--(?=\s|$)/gm,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1\u2013")),"link_open"===n.type&&"auto"===n.info&&o--,"link_close"===n.type&&"auto"===n.info&&o++}e.exports=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)"inline"===e.tokens[n].type&&(r.test(e.tokens[n].content)&&s(e.tokens[n].children),t.test(e.tokens[n].content)&&a(e.tokens[n].children))}},58450:function(e,t,r){"use strict";var n=r(67022).isWhiteSpace,o=r(67022).isPunctChar,i=r(67022).isMdAsciiPunct,s=/['"]/,a=/['"]/g;function c(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function l(e,t){var r,s,l,u,p,f,h,d,m,g,_,v,b,k,y,C,x,w,E,A,D;for(E=[],r=0;r=0&&!(E[x].level<=h);x--);if(E.length=x+1,"text"===s.type){p=0,f=(l=s.content).length;e:for(;p=0)m=l.charCodeAt(u.index-1);else for(x=r-1;x>=0&&("softbreak"!==e[x].type&&"hardbreak"!==e[x].type);x--)if(e[x].content){m=e[x].content.charCodeAt(e[x].content.length-1);break}if(g=32,p=48&&m<=57&&(C=y=!1),y&&C&&(y=_,C=v),y||C){if(C)for(x=E.length-1;x>=0&&(d=E[x],!(E[x].level=0;t--)"inline"===e.tokens[t].type&&s.test(e.tokens[t].content)&&l(e.tokens[t].children,e)}},16480:function(e,t,r){"use strict";var n=r(75872);function o(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}o.prototype.Token=n,e.exports=o},46633:function(e){"use strict";e.exports=function(e){var t,r,n,o,i,s,a=e.tokens;for(t=0,r=a.length;t\x00-\x20]*)$/;e.exports=function(e,n){var o,i,s,a,c,l,u=e.pos;if(60!==e.src.charCodeAt(u))return!1;for(c=e.pos,l=e.posMax;;){if(++u>=l)return!1;if(60===(a=e.src.charCodeAt(u)))return!1;if(62===a)break}return o=e.src.slice(c+1,u),r.test(o)?(i=e.md.normalizeLink(o),!!e.md.validateLink(i)&&(n||((s=e.push("link_open","a",1)).attrs=[["href",i]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(o),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=o.length+2,!0)):!!t.test(o)&&(i=e.md.normalizeLink("mailto:"+o),!!e.md.validateLink(i)&&(n||((s=e.push("link_open","a",1)).attrs=[["href",i]],s.markup="autolink",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(o),(s=e.push("link_close","a",-1)).markup="autolink",s.info="auto"),e.pos+=o.length+2,!0))}},79755:function(e){"use strict";e.exports=function(e,t){var r,n,o,i,s,a,c,l,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(r=u,u++,n=e.posMax;us;n-=d[n]+1)if((i=t[n]).marker===o.marker&&i.open&&i.end<0&&(c=!1,(i.close||o.open)&&(i.length+o.length)%3===0&&(i.length%3===0&&o.length%3===0||(c=!0)),!c)){l=n>0&&!t[n-1].open?d[n-1]+1:0,d[r]=r-n+l,d[n]=l,o.open=!1,i.end=r,i.close=!1,a=-1,h=-2;break}-1!==a&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=a)}}}e.exports=function(e){var r,n=e.tokens_meta,o=e.tokens_meta.length;for(t(0,e.delimiters),r=0;r=0;r--)95!==(n=t[r]).marker&&42!==n.marker||-1!==n.end&&(o=t[n.end],a=r>0&&t[r-1].end===n.end+1&&t[r-1].marker===n.marker&&t[r-1].token===n.token-1&&t[n.end+1].token===o.token+1,s=String.fromCharCode(n.marker),(i=e.tokens[n.token]).type=a?"strong_open":"em_open",i.tag=a?"strong":"em",i.nesting=1,i.markup=a?s+s:s,i.content="",(i=e.tokens[o.token]).type=a?"strong_close":"em_close",i.tag=a?"strong":"em",i.nesting=-1,i.markup=a?s+s:s,i.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[n.end+1].token].content="",r--))}e.exports.w=function(e,t){var r,n,o=e.pos,i=e.src.charCodeAt(o);if(t)return!1;if(95!==i&&42!==i)return!1;for(n=e.scanDelims(e.pos,42===i),r=0;r=f)return!1;if(35===e.src.charCodeAt(p+1)){if(l=e.src.slice(p).match(a))return t||(r="x"===l[1][0].toLowerCase()?parseInt(l[1].slice(1),16):parseInt(l[1],10),(u=e.push("text_special","",0)).content=i(r)?s(r):s(65533),u.markup=l[0],u.info="entity"),e.pos+=l[0].length,!0}else if((l=e.src.slice(p).match(c))&&o(n,l[1]))return t||((u=e.push("text_special","",0)).content=n[l[1]],u.markup=l[0],u.info="entity"),e.pos+=l[0].length,!0;return!1}},1917:function(e,t,r){"use strict";for(var n=r(67022).isSpace,o=[],i=0;i<256;i++)o.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){o[e.charCodeAt(0)]=1})),e.exports=function(e,t){var r,i,s,a,c,l=e.pos,u=e.posMax;if(92!==e.src.charCodeAt(l))return!1;if(++l>=u)return!1;if(10===(r=e.src.charCodeAt(l))){for(t||e.push("hardbreak","br",0),l++;l=55296&&r<=56319&&l+1=56320&&i<=57343&&(a+=e.src[l+1],l++),s="\\"+a,t||(c=e.push("text_special","",0),r<256&&0!==o[r]?c.content=a:c.content=s,c.markup=s,c.info="escape"),e.pos=l+1,!0}},69969:function(e){"use strict";e.exports=function(e){var t,r,n=0,o=e.tokens,i=e.tokens.length;for(t=r=0;t0&&n++,"text"===o[t].type&&t+1=i)&&(!(33!==(r=e.src.charCodeAt(c+1))&&63!==r&&47!==r&&!function(e){var t=32|e;return t>=97&&t<=122}(r))&&(!!(o=e.src.slice(c).match(n))&&(t||((s=e.push("html_inline","",0)).content=e.src.slice(c,c+o[0].length),a=s.content,/^\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(s.content)&&e.linkLevel--),e.pos+=o[0].length,!0))))}},83006:function(e,t,r){"use strict";var n=r(67022).normalizeReference,o=r(67022).isSpace;e.exports=function(e,t){var r,i,s,a,c,l,u,p,f,h,d,m,g,_="",v=e.pos,b=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(l=e.pos+2,(c=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((u=c+1)=b)return!1;for(g=u,(f=e.md.helpers.parseLinkDestination(e.src,u,e.posMax)).ok&&(_=e.md.normalizeLink(f.str),e.md.validateLink(_)?u=f.pos:_=""),g=u;u=b||41!==e.src.charCodeAt(u))return e.pos=v,!1;u++}else{if("undefined"===typeof e.env.references)return!1;if(u=0?a=e.src.slice(g,u++):u=c+1):u=c+1,a||(a=e.src.slice(l,c)),!(p=e.env.references[n(a)]))return e.pos=v,!1;_=p.href,h=p.title}return t||(s=e.src.slice(l,c),e.md.inline.parse(s,e.md,e.env,m=[]),(d=e.push("image","img",0)).attrs=r=[["src",_],["alt",""]],d.children=m,d.content=s,h&&r.push(["title",h])),e.pos=u,e.posMax=b,!0}},81727:function(e,t,r){"use strict";var n=r(67022).normalizeReference,o=r(67022).isSpace;e.exports=function(e,t){var r,i,s,a,c,l,u,p,f="",h="",d=e.pos,m=e.posMax,g=e.pos,_=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(c=e.pos+1,(a=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((l=a+1)=m)return!1;if(g=l,(u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax)).ok){for(f=e.md.normalizeLink(u.str),e.md.validateLink(f)?l=u.pos:f="",g=l;l=m||41!==e.src.charCodeAt(l))&&(_=!0),l++}if(_){if("undefined"===typeof e.env.references)return!1;if(l=0?s=e.src.slice(g,l++):l=a+1):l=a+1,s||(s=e.src.slice(c,a)),!(p=e.env.references[n(s)]))return e.pos=d,!1;f=p.href,h=p.title}return t||(e.pos=c,e.posMax=a,e.push("link_open","a",1).attrs=r=[["href",f]],h&&r.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)),e.pos=l,e.posMax=m,!0}},12906:function(e){"use strict";var t=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;e.exports=function(e,r){var n,o,i,s,a,c,l;return!!e.md.options.linkify&&(!(e.linkLevel>0)&&(!((n=e.pos)+3>e.posMax)&&(58===e.src.charCodeAt(n)&&(47===e.src.charCodeAt(n+1)&&(47===e.src.charCodeAt(n+2)&&(!!(o=e.pending.match(t))&&(i=o[1],!!(s=e.md.linkify.matchAtStart(e.src.slice(n-i.length)))&&(a=(a=s.url).replace(/\*+$/,""),c=e.md.normalizeLink(a),!!e.md.validateLink(c)&&(r||(e.pending=e.pending.slice(0,-i.length),(l=e.push("link_open","a",1)).attrs=[["href",c]],l.markup="linkify",l.info="auto",(l=e.push("text","",0)).content=e.md.normalizeLinkText(a),(l=e.push("link_close","a",-1)).markup="linkify",l.info="auto"),e.pos+=a.length-i.length,!0)))))))))}},43905:function(e,t,r){"use strict";var n=r(67022).isSpace;e.exports=function(e,t){var r,o,i,s=e.pos;if(10!==e.src.charCodeAt(s))return!1;if(r=e.pending.length-1,o=e.posMax,!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){for(i=r-1;i>=1&&32===e.pending.charCodeAt(i-1);)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(s++;s0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(i),o},a.prototype.scanDelims=function(e,t){var r,n,a,c,l,u,p,f,h,d=e,m=!0,g=!0,_=this.posMax,v=this.src.charCodeAt(e);for(r=e>0?this.src.charCodeAt(e-1):32;d<_&&this.src.charCodeAt(d)===v;)d++;return a=d-e,n=d<_?this.src.charCodeAt(d):32,p=s(r)||i(String.fromCharCode(r)),h=s(n)||i(String.fromCharCode(n)),u=o(r),(f=o(n))?m=!1:h&&(u||p||(m=!1)),u?g=!1:p&&(f||h||(g=!1)),t?(c=m,l=g):(c=m&&(!g||p),l=g&&(!m||h)),{can_open:c,can_close:l,length:a}},a.prototype.Token=n,e.exports=a},44814:function(e){"use strict";function t(e,t){var r,n,o,i,s,a=[],c=t.length;for(r=0;r=0&&(r=this.attrs[t][1]),r},t.prototype.attrJoin=function(e,t){var r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t},e.exports=t},83122:function(e){"use strict";var t={};function r(e,n){var o;return"string"!==typeof n&&(n=r.defaultChars),o=function(e){var r,n,o=t[e];if(o)return o;for(o=t[e]=[],r=0;r<128;r++)n=String.fromCharCode(r),o.push(n);for(r=0;r=55296&&c<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(c),t+=6):240===(248&n)&&t+91114111?l+="\ufffd\ufffd\ufffd\ufffd":(c-=65536,l+=String.fromCharCode(55296+(c>>10),56320+(1023&c))),t+=9):l+="\ufffd";return l}))}r.defaultChars=";/?:@&=+$,#",r.componentChars="",e.exports=r},70729:function(e){"use strict";var t={};function r(e,n,o){var i,s,a,c,l,u="";for("string"!==typeof n&&(o=n,n=r.defaultChars),"undefined"===typeof o&&(o=!0),l=function(e){var r,n,o=t[e];if(o)return o;for(o=t[e]=[],r=0;r<128;r++)n=String.fromCharCode(r),/^[0-9a-z]$/i.test(n)?o.push(n):o.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2));for(r=0;r=55296&&a<=57343){if(a>=55296&&a<=56319&&i+1=56320&&c<=57343){u+=encodeURIComponent(e[i]+e[i+1]),i++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[i]);return u}r.defaultChars=";/?:@&=+$,-_.!~*'()#",r.componentChars="-_.!~*'()",e.exports=r},2201:function(e){"use strict";e.exports=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""}},48765:function(e,t,r){"use strict";e.exports.encode=r(70729),e.exports.decode=r(83122),e.exports.format=r(2201),e.exports.parse=r(9553)},9553:function(e){"use strict";function t(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(i),a=["%","/","?",";","#"].concat(s),c=["/","?","#"],l=/^[+a-z0-9A-Z_-]{0,63}$/,u=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,p={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};t.prototype.parse=function(e,t){var n,i,s,h,d,m=e;if(m=m.trim(),!t&&1===e.split("#").length){var g=o.exec(m);if(g)return this.pathname=g[1],g[2]&&(this.search=g[2]),this}var _=r.exec(m);if(_&&(s=(_=_[0]).toLowerCase(),this.protocol=_,m=m.substr(_.length)),(t||_||m.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(d="//"===m.substr(0,2))||_&&p[_]||(m=m.substr(2),this.slashes=!0)),!p[_]&&(d||_&&!f[_])){var v,b,k=-1;for(n=0;n127?E+="x":E+=w[A];if(!E.match(l)){var S=x.slice(0,n),q=x.slice(n+1),F=w.match(u);F&&(S.push(F[1]),q.unshift(F[2])),q.length&&(m=q.join(".")+m),this.hostname=S.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var L=m.indexOf("#");-1!==L&&(this.hash=m.substr(L),m=m.slice(0,L));var Z=m.indexOf("?");return-1!==Z&&(this.search=m.substr(Z),m=m.slice(0,Z)),m&&(this.pathname=m),f[s]&&this.hostname&&!this.pathname&&(this.pathname=""),this},t.prototype.parseHost=function(e){var t=n.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=function(e,r){if(e&&e instanceof t)return e;var n=new t;return n.parse(e,r),n}},90638:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(96856).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=s.default,i={loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};n(e,Promise)?i.loader=function(){return e}:"function"===typeof e?i.loader=e:"object"===typeof e&&(i=o({},i,e));if((i=o({},i,t)).suspense)throw new Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");0;i.loadableGenerated&&delete(i=o({},i,i.loadableGenerated)).loadableGenerated;if("boolean"===typeof i.ssr&&!i.suspense){if(!i.ssr)return delete i.ssr,a(r,i);delete i.ssr}return r(i)},t.noSSR=a;var o=r(6495).Z,i=r(92648).Z,s=(i(r(67294)),i(r(14302)));function a(e,t){return delete t.webpack,delete t.modules,e(t)}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16319:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var n=(0,r(92648).Z)(r(67294)).default.createContext(null);t.LoadableContext=n},14302:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(79658).Z,o=r(7222).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(6495).Z,s=(0,r(92648).Z)(r(67294)),a=r(16319),c=r(61688).useSyncExternalStore,l=[],u=[],p=!1;function f(e){var t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then((function(e){return r.loading=!1,r.loaded=e,e})).catch((function(e){throw r.loading=!1,r.error=e,e})),r}var h=function(){function e(t,r){n(this,e),this._loadFn=t,this._opts=r,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return o(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,r=this._opts;t.loading&&("number"===typeof r.delay&&(0===r.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),r.delay)),"number"===typeof r.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),r.timeout))),this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(t){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=i({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),e}();function d(e){return function(e,t){var r=function(){if(!l){var t=new h(e,o);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()},n=function(){r();var e=s.default.useContext(a.LoadableContext);e&&Array.isArray(o.modules)&&o.modules.forEach((function(t){e(t)}))},o=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},t);o.suspense&&(o.lazy=s.default.lazy(o.loader));var l=null;if(!p){var f=o.webpack?o.webpack():o.modules;f&&u.push((function(e){var t=!0,n=!1,o=void 0;try{for(var i,s=f[Symbol.iterator]();!(t=(i=s.next()).done);t=!0){var a=i.value;if(-1!==e.indexOf(a))return r()}}catch(c){n=!0,o=c}finally{try{t||null==s.return||s.return()}finally{if(n)throw o}}}))}var d=o.suspense?function(e,t){return n(),s.default.createElement(o.lazy,i({},e,{ref:t}))}:function(e,t){n();var r=c(l.subscribe,l.getCurrentValue,l.getCurrentValue);return s.default.useImperativeHandle(t,(function(){return{retry:l.retry}}),[]),s.default.useMemo((function(){return r.loading||r.error?s.default.createElement(o.loading,{isLoading:r.loading,pastDelay:r.pastDelay,timedOut:r.timedOut,error:r.error,retry:l.retry}):r.loaded?s.default.createElement((t=r.loaded)&&t.__esModule?t.default:t,e):null;var t}),[e,r])};return d.preload=function(){return r()},d.displayName="LoadableComponent",s.default.forwardRef(d)}(f,e)}function m(e,t){for(var r=[];e.length;){var n=e.pop();r.push(n(t))}return Promise.all(r).then((function(){if(e.length)return m(e,t)}))}d.preloadAll=function(){return new Promise((function(e,t){m(l).then(e,t)}))},d.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var r=function(){return p=!0,t()};m(u,e).then(r,r)}))},window.__NEXT_PRELOADREADY=d.preloadReady;var g=d;t.default=g},69596:function(){},5152:function(e,t,r){e.exports=r(90638)},3689:function(e,t,r){"use strict";r.r(t),r.d(t,{decode:function(){return _},encode:function(){return v},toASCII:function(){return k},toUnicode:function(){return b},ucs2decode:function(){return h},ucs2encode:function(){return d}});const n=2147483647,o=36,i=/^xn--/,s=/[^\0-\x7E]/,a=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},l=Math.floor,u=String.fromCharCode;function p(e){throw new RangeError(c[e])}function f(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const o=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(a,".")).split("."),t).join(".");return n+o}function h(e){const t=[];let r=0;const n=e.length;for(;r=55296&&o<=56319&&rString.fromCodePoint(...e),m=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},g=function(e,t,r){let n=0;for(e=r?l(e/700):e>>1,e+=l(e/t);e>455;n+=o)e=l(e/35);return l(n+36*e/(e+38))},_=function(e){const t=[],r=e.length;let i=0,s=128,a=72,c=e.lastIndexOf("-");c<0&&(c=0);for(let n=0;n=128&&p("not-basic"),t.push(e.charCodeAt(n));for(let f=c>0?c+1:0;f=r&&p("invalid-input");const c=(u=e.charCodeAt(f++))-48<10?u-22:u-65<26?u-65:u-97<26?u-97:o;(c>=o||c>l((n-i)/t))&&p("overflow"),i+=c*t;const h=s<=a?1:s>=a+26?26:s-a;if(cl(n/d)&&p("overflow"),t*=d}const h=t.length+1;a=g(i-c,h,0==c),l(i/h)>n-s&&p("overflow"),s+=l(i/h),i%=h,t.splice(i++,0,s)}var u;return String.fromCodePoint(...t)},v=function(e){const t=[];let r=(e=h(e)).length,i=128,s=0,a=72;for(const n of e)n<128&&t.push(u(n));let c=t.length,f=c;for(c&&t.push("-");f=i&&tl((n-s)/h)&&p("overflow"),s+=(r-i)*h,i=r;for(const d of e)if(dn&&p("overflow"),d==i){let e=s;for(let r=o;;r+=o){const n=r<=a?1:r>=a+26?26:r-a;if(ee.length)&&(t=e.length);for(var r=0,n=new Array(t);r","GT":">","Gt":"\u226b","gtdot":"\u22d7","gtlPar":"\u2995","gtquest":"\u2a7c","gtrapprox":"\u2a86","gtrarr":"\u2978","gtrdot":"\u22d7","gtreqless":"\u22db","gtreqqless":"\u2a8c","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\ufe00","gvnE":"\u2269\ufe00","Hacek":"\u02c7","hairsp":"\u200a","half":"\xbd","hamilt":"\u210b","HARDcy":"\u042a","hardcy":"\u044a","harrcir":"\u2948","harr":"\u2194","hArr":"\u21d4","harrw":"\u21ad","Hat":"^","hbar":"\u210f","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22b9","hfr":"\ud835\udd25","Hfr":"\u210c","HilbertSpace":"\u210b","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21ff","homtht":"\u223b","hookleftarrow":"\u21a9","hookrightarrow":"\u21aa","hopf":"\ud835\udd59","Hopf":"\u210d","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\ud835\udcbd","Hscr":"\u210b","hslash":"\u210f","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224e","HumpEqual":"\u224f","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xcd","iacute":"\xed","ic":"\u2063","Icirc":"\xce","icirc":"\xee","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xa1","iff":"\u21d4","ifr":"\ud835\udd26","Ifr":"\u2111","Igrave":"\xcc","igrave":"\xec","ii":"\u2148","iiiint":"\u2a0c","iiint":"\u222d","iinfin":"\u29dc","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012a","imacr":"\u012b","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22b7","imped":"\u01b5","Implies":"\u21d2","incare":"\u2105","in":"\u2208","infin":"\u221e","infintie":"\u29dd","inodot":"\u0131","intcal":"\u22ba","int":"\u222b","Int":"\u222c","integers":"\u2124","Integral":"\u222b","intercal":"\u22ba","Intersection":"\u22c2","intlarhk":"\u2a17","intprod":"\u2a3c","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012e","iogon":"\u012f","Iopf":"\ud835\udd40","iopf":"\ud835\udd5a","Iota":"\u0399","iota":"\u03b9","iprod":"\u2a3c","iquest":"\xbf","iscr":"\ud835\udcbe","Iscr":"\u2110","isin":"\u2208","isindot":"\u22f5","isinE":"\u22f9","isins":"\u22f4","isinsv":"\u22f3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xcf","iuml":"\xef","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\ud835\udd0d","jfr":"\ud835\udd27","jmath":"\u0237","Jopf":"\ud835\udd41","jopf":"\ud835\udd5b","Jscr":"\ud835\udca5","jscr":"\ud835\udcbf","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039a","kappa":"\u03ba","kappav":"\u03f0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041a","kcy":"\u043a","Kfr":"\ud835\udd0e","kfr":"\ud835\udd28","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040c","kjcy":"\u045c","Kopf":"\ud835\udd42","kopf":"\ud835\udd5c","Kscr":"\ud835\udca6","kscr":"\ud835\udcc0","lAarr":"\u21da","Lacute":"\u0139","lacute":"\u013a","laemptyv":"\u29b4","lagran":"\u2112","Lambda":"\u039b","lambda":"\u03bb","lang":"\u27e8","Lang":"\u27ea","langd":"\u2991","langle":"\u27e8","lap":"\u2a85","Laplacetrf":"\u2112","laquo":"\xab","larrb":"\u21e4","larrbfs":"\u291f","larr":"\u2190","Larr":"\u219e","lArr":"\u21d0","larrfs":"\u291d","larrhk":"\u21a9","larrlp":"\u21ab","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21a2","latail":"\u2919","lAtail":"\u291b","lat":"\u2aab","late":"\u2aad","lates":"\u2aad\ufe00","lbarr":"\u290c","lBarr":"\u290e","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298b","lbrksld":"\u298f","lbrkslu":"\u298d","Lcaron":"\u013d","lcaron":"\u013e","Lcedil":"\u013b","lcedil":"\u013c","lceil":"\u2308","lcub":"{","Lcy":"\u041b","lcy":"\u043b","ldca":"\u2936","ldquo":"\u201c","ldquor":"\u201e","ldrdhar":"\u2967","ldrushar":"\u294b","ldsh":"\u21b2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27e8","LeftArrowBar":"\u21e4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21d0","LeftArrowRightArrow":"\u21c6","leftarrowtail":"\u21a2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27e6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21c3","LeftFloor":"\u230a","leftharpoondown":"\u21bd","leftharpoonup":"\u21bc","leftleftarrows":"\u21c7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21d4","leftrightarrows":"\u21c6","leftrightharpoons":"\u21cb","leftrightsquigarrow":"\u21ad","LeftRightVector":"\u294e","LeftTeeArrow":"\u21a4","LeftTee":"\u22a3","LeftTeeVector":"\u295a","leftthreetimes":"\u22cb","LeftTriangleBar":"\u29cf","LeftTriangle":"\u22b2","LeftTriangleEqual":"\u22b4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21bf","LeftVectorBar":"\u2952","LeftVector":"\u21bc","lEg":"\u2a8b","leg":"\u22da","leq":"\u2264","leqq":"\u2266","leqslant":"\u2a7d","lescc":"\u2aa8","les":"\u2a7d","lesdot":"\u2a7f","lesdoto":"\u2a81","lesdotor":"\u2a83","lesg":"\u22da\ufe00","lesges":"\u2a93","lessapprox":"\u2a85","lessdot":"\u22d6","lesseqgtr":"\u22da","lesseqqgtr":"\u2a8b","LessEqualGreater":"\u22da","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2aa1","lesssim":"\u2272","LessSlantEqual":"\u2a7d","LessTilde":"\u2272","lfisht":"\u297c","lfloor":"\u230a","Lfr":"\ud835\udd0f","lfr":"\ud835\udd29","lg":"\u2276","lgE":"\u2a91","lHar":"\u2962","lhard":"\u21bd","lharu":"\u21bc","lharul":"\u296a","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21c7","ll":"\u226a","Ll":"\u22d8","llcorner":"\u231e","Lleftarrow":"\u21da","llhard":"\u296b","lltri":"\u25fa","Lmidot":"\u013f","lmidot":"\u0140","lmoustache":"\u23b0","lmoust":"\u23b0","lnap":"\u2a89","lnapprox":"\u2a89","lne":"\u2a87","lnE":"\u2268","lneq":"\u2a87","lneqq":"\u2268","lnsim":"\u22e6","loang":"\u27ec","loarr":"\u21fd","lobrk":"\u27e6","longleftarrow":"\u27f5","LongLeftArrow":"\u27f5","Longleftarrow":"\u27f8","longleftrightarrow":"\u27f7","LongLeftRightArrow":"\u27f7","Longleftrightarrow":"\u27fa","longmapsto":"\u27fc","longrightarrow":"\u27f6","LongRightArrow":"\u27f6","Longrightarrow":"\u27f9","looparrowleft":"\u21ab","looparrowright":"\u21ac","lopar":"\u2985","Lopf":"\ud835\udd43","lopf":"\ud835\udd5d","loplus":"\u2a2d","lotimes":"\u2a34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25ca","lozenge":"\u25ca","lozf":"\u29eb","lpar":"(","lparlt":"\u2993","lrarr":"\u21c6","lrcorner":"\u231f","lrhar":"\u21cb","lrhard":"\u296d","lrm":"\u200e","lrtri":"\u22bf","lsaquo":"\u2039","lscr":"\ud835\udcc1","Lscr":"\u2112","lsh":"\u21b0","Lsh":"\u21b0","lsim":"\u2272","lsime":"\u2a8d","lsimg":"\u2a8f","lsqb":"[","lsquo":"\u2018","lsquor":"\u201a","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2aa6","ltcir":"\u2a79","lt":"<","LT":"<","Lt":"\u226a","ltdot":"\u22d6","lthree":"\u22cb","ltimes":"\u22c9","ltlarr":"\u2976","ltquest":"\u2a7b","ltri":"\u25c3","ltrie":"\u22b4","ltrif":"\u25c2","ltrPar":"\u2996","lurdshar":"\u294a","luruhar":"\u2966","lvertneqq":"\u2268\ufe00","lvnE":"\u2268\ufe00","macr":"\xaf","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21a6","mapsto":"\u21a6","mapstodown":"\u21a7","mapstoleft":"\u21a4","mapstoup":"\u21a5","marker":"\u25ae","mcomma":"\u2a29","Mcy":"\u041c","mcy":"\u043c","mdash":"\u2014","mDDot":"\u223a","measuredangle":"\u2221","MediumSpace":"\u205f","Mellintrf":"\u2133","Mfr":"\ud835\udd10","mfr":"\ud835\udd2a","mho":"\u2127","micro":"\xb5","midast":"*","midcir":"\u2af0","mid":"\u2223","middot":"\xb7","minusb":"\u229f","minus":"\u2212","minusd":"\u2238","minusdu":"\u2a2a","MinusPlus":"\u2213","mlcp":"\u2adb","mldr":"\u2026","mnplus":"\u2213","models":"\u22a7","Mopf":"\ud835\udd44","mopf":"\ud835\udd5e","mp":"\u2213","mscr":"\ud835\udcc2","Mscr":"\u2133","mstpos":"\u223e","Mu":"\u039c","mu":"\u03bc","multimap":"\u22b8","mumap":"\u22b8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20d2","nap":"\u2249","napE":"\u2a70\u0338","napid":"\u224b\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266e","naturals":"\u2115","natur":"\u266e","nbsp":"\xa0","nbump":"\u224e\u0338","nbumpe":"\u224f\u0338","ncap":"\u2a43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2a6d\u0338","ncup":"\u2a42","Ncy":"\u041d","ncy":"\u043d","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21d7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200b","NegativeThickSpace":"\u200b","NegativeThinSpace":"\u200b","NegativeVeryThinSpace":"\u200b","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226b","NestedLessLess":"\u226a","NewLine":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\ud835\udd11","nfr":"\ud835\udd2b","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2a7e\u0338","nges":"\u2a7e\u0338","nGg":"\u22d9\u0338","ngsim":"\u2275","nGt":"\u226b\u20d2","ngt":"\u226f","ngtr":"\u226f","nGtv":"\u226b\u0338","nharr":"\u21ae","nhArr":"\u21ce","nhpar":"\u2af2","ni":"\u220b","nis":"\u22fc","nisd":"\u22fa","niv":"\u220b","NJcy":"\u040a","njcy":"\u045a","nlarr":"\u219a","nlArr":"\u21cd","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219a","nLeftarrow":"\u21cd","nleftrightarrow":"\u21ae","nLeftrightarrow":"\u21ce","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2a7d\u0338","nles":"\u2a7d\u0338","nless":"\u226e","nLl":"\u22d8\u0338","nlsim":"\u2274","nLt":"\u226a\u20d2","nlt":"\u226e","nltri":"\u22ea","nltrie":"\u22ec","nLtv":"\u226a\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xa0","nopf":"\ud835\udd5f","Nopf":"\u2115","Not":"\u2aec","not":"\xac","NotCongruent":"\u2262","NotCupCap":"\u226d","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226f","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226b\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2a7e\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224e\u0338","NotHumpEqual":"\u224f\u0338","notin":"\u2209","notindot":"\u22f5\u0338","notinE":"\u22f9\u0338","notinva":"\u2209","notinvb":"\u22f7","notinvc":"\u22f6","NotLeftTriangleBar":"\u29cf\u0338","NotLeftTriangle":"\u22ea","NotLeftTriangleEqual":"\u22ec","NotLess":"\u226e","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226a\u0338","NotLessSlantEqual":"\u2a7d\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2aa2\u0338","NotNestedLessLess":"\u2aa1\u0338","notni":"\u220c","notniva":"\u220c","notnivb":"\u22fe","notnivc":"\u22fd","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2aaf\u0338","NotPrecedesSlantEqual":"\u22e0","NotReverseElement":"\u220c","NotRightTriangleBar":"\u29d0\u0338","NotRightTriangle":"\u22eb","NotRightTriangleEqual":"\u22ed","NotSquareSubset":"\u228f\u0338","NotSquareSubsetEqual":"\u22e2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22e3","NotSubset":"\u2282\u20d2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2ab0\u0338","NotSucceedsSlantEqual":"\u22e1","NotSucceedsTilde":"\u227f\u0338","NotSuperset":"\u2283\u20d2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2afd\u20e5","npart":"\u2202\u0338","npolint":"\u2a14","npr":"\u2280","nprcue":"\u22e0","nprec":"\u2280","npreceq":"\u2aaf\u0338","npre":"\u2aaf\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219b","nrArr":"\u21cf","nrarrw":"\u219d\u0338","nrightarrow":"\u219b","nRightarrow":"\u21cf","nrtri":"\u22eb","nrtrie":"\u22ed","nsc":"\u2281","nsccue":"\u22e1","nsce":"\u2ab0\u0338","Nscr":"\ud835\udca9","nscr":"\ud835\udcc3","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22e2","nsqsupe":"\u22e3","nsub":"\u2284","nsubE":"\u2ac5\u0338","nsube":"\u2288","nsubset":"\u2282\u20d2","nsubseteq":"\u2288","nsubseteqq":"\u2ac5\u0338","nsucc":"\u2281","nsucceq":"\u2ab0\u0338","nsup":"\u2285","nsupE":"\u2ac6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20d2","nsupseteq":"\u2289","nsupseteqq":"\u2ac6\u0338","ntgl":"\u2279","Ntilde":"\xd1","ntilde":"\xf1","ntlg":"\u2278","ntriangleleft":"\u22ea","ntrianglelefteq":"\u22ec","ntriangleright":"\u22eb","ntrianglerighteq":"\u22ed","Nu":"\u039d","nu":"\u03bd","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224d\u20d2","nvdash":"\u22ac","nvDash":"\u22ad","nVdash":"\u22ae","nVDash":"\u22af","nvge":"\u2265\u20d2","nvgt":">\u20d2","nvHarr":"\u2904","nvinfin":"\u29de","nvlArr":"\u2902","nvle":"\u2264\u20d2","nvlt":"<\u20d2","nvltrie":"\u22b4\u20d2","nvrArr":"\u2903","nvrtrie":"\u22b5\u20d2","nvsim":"\u223c\u20d2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21d6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xd3","oacute":"\xf3","oast":"\u229b","Ocirc":"\xd4","ocirc":"\xf4","ocir":"\u229a","Ocy":"\u041e","ocy":"\u043e","odash":"\u229d","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2a38","odot":"\u2299","odsold":"\u29bc","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29bf","Ofr":"\ud835\udd12","ofr":"\ud835\udd2c","ogon":"\u02db","Ograve":"\xd2","ograve":"\xf2","ogt":"\u29c1","ohbar":"\u29b5","ohm":"\u03a9","oint":"\u222e","olarr":"\u21ba","olcir":"\u29be","olcross":"\u29bb","oline":"\u203e","olt":"\u29c0","Omacr":"\u014c","omacr":"\u014d","Omega":"\u03a9","omega":"\u03c9","Omicron":"\u039f","omicron":"\u03bf","omid":"\u29b6","ominus":"\u2296","Oopf":"\ud835\udd46","oopf":"\ud835\udd60","opar":"\u29b7","OpenCurlyDoubleQuote":"\u201c","OpenCurlyQuote":"\u2018","operp":"\u29b9","oplus":"\u2295","orarr":"\u21bb","Or":"\u2a54","or":"\u2228","ord":"\u2a5d","order":"\u2134","orderof":"\u2134","ordf":"\xaa","ordm":"\xba","origof":"\u22b6","oror":"\u2a56","orslope":"\u2a57","orv":"\u2a5b","oS":"\u24c8","Oscr":"\ud835\udcaa","oscr":"\u2134","Oslash":"\xd8","oslash":"\xf8","osol":"\u2298","Otilde":"\xd5","otilde":"\xf5","otimesas":"\u2a36","Otimes":"\u2a37","otimes":"\u2297","Ouml":"\xd6","ouml":"\xf6","ovbar":"\u233d","OverBar":"\u203e","OverBrace":"\u23de","OverBracket":"\u23b4","OverParenthesis":"\u23dc","para":"\xb6","parallel":"\u2225","par":"\u2225","parsim":"\u2af3","parsl":"\u2afd","part":"\u2202","PartialD":"\u2202","Pcy":"\u041f","pcy":"\u043f","percnt":"%","period":".","permil":"\u2030","perp":"\u22a5","pertenk":"\u2031","Pfr":"\ud835\udd13","pfr":"\ud835\udd2d","Phi":"\u03a6","phi":"\u03c6","phiv":"\u03d5","phmmat":"\u2133","phone":"\u260e","Pi":"\u03a0","pi":"\u03c0","pitchfork":"\u22d4","piv":"\u03d6","planck":"\u210f","planckh":"\u210e","plankv":"\u210f","plusacir":"\u2a23","plusb":"\u229e","pluscir":"\u2a22","plus":"+","plusdo":"\u2214","plusdu":"\u2a25","pluse":"\u2a72","PlusMinus":"\xb1","plusmn":"\xb1","plussim":"\u2a26","plustwo":"\u2a27","pm":"\xb1","Poincareplane":"\u210c","pointint":"\u2a15","popf":"\ud835\udd61","Popf":"\u2119","pound":"\xa3","prap":"\u2ab7","Pr":"\u2abb","pr":"\u227a","prcue":"\u227c","precapprox":"\u2ab7","prec":"\u227a","preccurlyeq":"\u227c","Precedes":"\u227a","PrecedesEqual":"\u2aaf","PrecedesSlantEqual":"\u227c","PrecedesTilde":"\u227e","preceq":"\u2aaf","precnapprox":"\u2ab9","precneqq":"\u2ab5","precnsim":"\u22e8","pre":"\u2aaf","prE":"\u2ab3","precsim":"\u227e","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2ab9","prnE":"\u2ab5","prnsim":"\u22e8","prod":"\u220f","Product":"\u220f","profalar":"\u232e","profline":"\u2312","profsurf":"\u2313","prop":"\u221d","Proportional":"\u221d","Proportion":"\u2237","propto":"\u221d","prsim":"\u227e","prurel":"\u22b0","Pscr":"\ud835\udcab","pscr":"\ud835\udcc5","Psi":"\u03a8","psi":"\u03c8","puncsp":"\u2008","Qfr":"\ud835\udd14","qfr":"\ud835\udd2e","qint":"\u2a0c","qopf":"\ud835\udd62","Qopf":"\u211a","qprime":"\u2057","Qscr":"\ud835\udcac","qscr":"\ud835\udcc6","quaternions":"\u210d","quatint":"\u2a16","quest":"?","questeq":"\u225f","quot":"\\"","QUOT":"\\"","rAarr":"\u21db","race":"\u223d\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221a","raemptyv":"\u29b3","rang":"\u27e9","Rang":"\u27eb","rangd":"\u2992","range":"\u29a5","rangle":"\u27e9","raquo":"\xbb","rarrap":"\u2975","rarrb":"\u21e5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21a0","rArr":"\u21d2","rarrfs":"\u291e","rarrhk":"\u21aa","rarrlp":"\u21ac","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21a3","rarrw":"\u219d","ratail":"\u291a","rAtail":"\u291c","ratio":"\u2236","rationals":"\u211a","rbarr":"\u290d","rBarr":"\u290f","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298c","rbrksld":"\u298e","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201d","rdquor":"\u201d","rdsh":"\u21b3","real":"\u211c","realine":"\u211b","realpart":"\u211c","reals":"\u211d","Re":"\u211c","rect":"\u25ad","reg":"\xae","REG":"\xae","ReverseElement":"\u220b","ReverseEquilibrium":"\u21cb","ReverseUpEquilibrium":"\u296f","rfisht":"\u297d","rfloor":"\u230b","rfr":"\ud835\udd2f","Rfr":"\u211c","rHar":"\u2964","rhard":"\u21c1","rharu":"\u21c0","rharul":"\u296c","Rho":"\u03a1","rho":"\u03c1","rhov":"\u03f1","RightAngleBracket":"\u27e9","RightArrowBar":"\u21e5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21d2","RightArrowLeftArrow":"\u21c4","rightarrowtail":"\u21a3","RightCeiling":"\u2309","RightDoubleBracket":"\u27e7","RightDownTeeVector":"\u295d","RightDownVectorBar":"\u2955","RightDownVector":"\u21c2","RightFloor":"\u230b","rightharpoondown":"\u21c1","rightharpoonup":"\u21c0","rightleftarrows":"\u21c4","rightleftharpoons":"\u21cc","rightrightarrows":"\u21c9","rightsquigarrow":"\u219d","RightTeeArrow":"\u21a6","RightTee":"\u22a2","RightTeeVector":"\u295b","rightthreetimes":"\u22cc","RightTriangleBar":"\u29d0","RightTriangle":"\u22b3","RightTriangleEqual":"\u22b5","RightUpDownVector":"\u294f","RightUpTeeVector":"\u295c","RightUpVectorBar":"\u2954","RightUpVector":"\u21be","RightVectorBar":"\u2953","RightVector":"\u21c0","ring":"\u02da","risingdotseq":"\u2253","rlarr":"\u21c4","rlhar":"\u21cc","rlm":"\u200f","rmoustache":"\u23b1","rmoust":"\u23b1","rnmid":"\u2aee","roang":"\u27ed","roarr":"\u21fe","robrk":"\u27e7","ropar":"\u2986","ropf":"\ud835\udd63","Ropf":"\u211d","roplus":"\u2a2e","rotimes":"\u2a35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2a12","rrarr":"\u21c9","Rrightarrow":"\u21db","rsaquo":"\u203a","rscr":"\ud835\udcc7","Rscr":"\u211b","rsh":"\u21b1","Rsh":"\u21b1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22cc","rtimes":"\u22ca","rtri":"\u25b9","rtrie":"\u22b5","rtrif":"\u25b8","rtriltri":"\u29ce","RuleDelayed":"\u29f4","ruluhar":"\u2968","rx":"\u211e","Sacute":"\u015a","sacute":"\u015b","sbquo":"\u201a","scap":"\u2ab8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2abc","sc":"\u227b","sccue":"\u227d","sce":"\u2ab0","scE":"\u2ab4","Scedil":"\u015e","scedil":"\u015f","Scirc":"\u015c","scirc":"\u015d","scnap":"\u2aba","scnE":"\u2ab6","scnsim":"\u22e9","scpolint":"\u2a13","scsim":"\u227f","Scy":"\u0421","scy":"\u0441","sdotb":"\u22a1","sdot":"\u22c5","sdote":"\u2a66","searhk":"\u2925","searr":"\u2198","seArr":"\u21d8","searrow":"\u2198","sect":"\xa7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\ud835\udd16","sfr":"\ud835\udd30","sfrown":"\u2322","sharp":"\u266f","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xad","Sigma":"\u03a3","sigma":"\u03c3","sigmaf":"\u03c2","sigmav":"\u03c2","sim":"\u223c","simdot":"\u2a6a","sime":"\u2243","simeq":"\u2243","simg":"\u2a9e","simgE":"\u2aa0","siml":"\u2a9d","simlE":"\u2a9f","simne":"\u2246","simplus":"\u2a24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2a33","smeparsl":"\u29e4","smid":"\u2223","smile":"\u2323","smt":"\u2aaa","smte":"\u2aac","smtes":"\u2aac\ufe00","SOFTcy":"\u042c","softcy":"\u044c","solbar":"\u233f","solb":"\u29c4","sol":"/","Sopf":"\ud835\udd4a","sopf":"\ud835\udd64","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\ufe00","sqcup":"\u2294","sqcups":"\u2294\ufe00","Sqrt":"\u221a","sqsub":"\u228f","sqsube":"\u2291","sqsubset":"\u228f","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25a1","Square":"\u25a1","SquareIntersection":"\u2293","SquareSubset":"\u228f","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25aa","squ":"\u25a1","squf":"\u25aa","srarr":"\u2192","Sscr":"\ud835\udcae","sscr":"\ud835\udcc8","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22c6","Star":"\u22c6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03f5","straightphi":"\u03d5","strns":"\xaf","sub":"\u2282","Sub":"\u22d0","subdot":"\u2abd","subE":"\u2ac5","sube":"\u2286","subedot":"\u2ac3","submult":"\u2ac1","subnE":"\u2acb","subne":"\u228a","subplus":"\u2abf","subrarr":"\u2979","subset":"\u2282","Subset":"\u22d0","subseteq":"\u2286","subseteqq":"\u2ac5","SubsetEqual":"\u2286","subsetneq":"\u228a","subsetneqq":"\u2acb","subsim":"\u2ac7","subsub":"\u2ad5","subsup":"\u2ad3","succapprox":"\u2ab8","succ":"\u227b","succcurlyeq":"\u227d","Succeeds":"\u227b","SucceedsEqual":"\u2ab0","SucceedsSlantEqual":"\u227d","SucceedsTilde":"\u227f","succeq":"\u2ab0","succnapprox":"\u2aba","succneqq":"\u2ab6","succnsim":"\u22e9","succsim":"\u227f","SuchThat":"\u220b","sum":"\u2211","Sum":"\u2211","sung":"\u266a","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","sup":"\u2283","Sup":"\u22d1","supdot":"\u2abe","supdsub":"\u2ad8","supE":"\u2ac6","supe":"\u2287","supedot":"\u2ac4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27c9","suphsub":"\u2ad7","suplarr":"\u297b","supmult":"\u2ac2","supnE":"\u2acc","supne":"\u228b","supplus":"\u2ac0","supset":"\u2283","Supset":"\u22d1","supseteq":"\u2287","supseteqq":"\u2ac6","supsetneq":"\u228b","supsetneqq":"\u2acc","supsim":"\u2ac8","supsub":"\u2ad4","supsup":"\u2ad6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21d9","swarrow":"\u2199","swnwar":"\u292a","szlig":"\xdf","Tab":"\\t","target":"\u2316","Tau":"\u03a4","tau":"\u03c4","tbrk":"\u23b4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20db","telrec":"\u2315","Tfr":"\ud835\udd17","tfr":"\ud835\udd31","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03b8","thetasym":"\u03d1","thetav":"\u03d1","thickapprox":"\u2248","thicksim":"\u223c","ThickSpace":"\u205f\u200a","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223c","THORN":"\xde","thorn":"\xfe","tilde":"\u02dc","Tilde":"\u223c","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2a31","timesb":"\u22a0","times":"\xd7","timesd":"\u2a30","tint":"\u222d","toea":"\u2928","topbot":"\u2336","topcir":"\u2af1","top":"\u22a4","Topf":"\ud835\udd4b","topf":"\ud835\udd65","topfork":"\u2ada","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25b5","triangledown":"\u25bf","triangleleft":"\u25c3","trianglelefteq":"\u22b4","triangleq":"\u225c","triangleright":"\u25b9","trianglerighteq":"\u22b5","tridot":"\u25ec","trie":"\u225c","triminus":"\u2a3a","TripleDot":"\u20db","triplus":"\u2a39","trisb":"\u29cd","tritime":"\u2a3b","trpezium":"\u23e2","Tscr":"\ud835\udcaf","tscr":"\ud835\udcc9","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040b","tshcy":"\u045b","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226c","twoheadleftarrow":"\u219e","twoheadrightarrow":"\u21a0","Uacute":"\xda","uacute":"\xfa","uarr":"\u2191","Uarr":"\u219f","uArr":"\u21d1","Uarrocir":"\u2949","Ubrcy":"\u040e","ubrcy":"\u045e","Ubreve":"\u016c","ubreve":"\u016d","Ucirc":"\xdb","ucirc":"\xfb","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21c5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296e","ufisht":"\u297e","Ufr":"\ud835\udd18","ufr":"\ud835\udd32","Ugrave":"\xd9","ugrave":"\xf9","uHar":"\u2963","uharl":"\u21bf","uharr":"\u21be","uhblk":"\u2580","ulcorn":"\u231c","ulcorner":"\u231c","ulcrop":"\u230f","ultri":"\u25f8","Umacr":"\u016a","umacr":"\u016b","uml":"\xa8","UnderBar":"_","UnderBrace":"\u23df","UnderBracket":"\u23b5","UnderParenthesis":"\u23dd","Union":"\u22c3","UnionPlus":"\u228e","Uogon":"\u0172","uogon":"\u0173","Uopf":"\ud835\udd4c","uopf":"\ud835\udd66","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21d1","UpArrowDownArrow":"\u21c5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21d5","UpEquilibrium":"\u296e","upharpoonleft":"\u21bf","upharpoonright":"\u21be","uplus":"\u228e","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03c5","Upsi":"\u03d2","upsih":"\u03d2","Upsilon":"\u03a5","upsilon":"\u03c5","UpTeeArrow":"\u21a5","UpTee":"\u22a5","upuparrows":"\u21c8","urcorn":"\u231d","urcorner":"\u231d","urcrop":"\u230e","Uring":"\u016e","uring":"\u016f","urtri":"\u25f9","Uscr":"\ud835\udcb0","uscr":"\ud835\udcca","utdot":"\u22f0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25b5","utrif":"\u25b4","uuarr":"\u21c8","Uuml":"\xdc","uuml":"\xfc","uwangle":"\u29a7","vangrt":"\u299c","varepsilon":"\u03f5","varkappa":"\u03f0","varnothing":"\u2205","varphi":"\u03d5","varpi":"\u03d6","varpropto":"\u221d","varr":"\u2195","vArr":"\u21d5","varrho":"\u03f1","varsigma":"\u03c2","varsubsetneq":"\u228a\ufe00","varsubsetneqq":"\u2acb\ufe00","varsupsetneq":"\u228b\ufe00","varsupsetneqq":"\u2acc\ufe00","vartheta":"\u03d1","vartriangleleft":"\u22b2","vartriangleright":"\u22b3","vBar":"\u2ae8","Vbar":"\u2aeb","vBarv":"\u2ae9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22a2","vDash":"\u22a8","Vdash":"\u22a9","VDash":"\u22ab","Vdashl":"\u2ae6","veebar":"\u22bb","vee":"\u2228","Vee":"\u22c1","veeeq":"\u225a","vellip":"\u22ee","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200a","Vfr":"\ud835\udd19","vfr":"\ud835\udd33","vltri":"\u22b2","vnsub":"\u2282\u20d2","vnsup":"\u2283\u20d2","Vopf":"\ud835\udd4d","vopf":"\ud835\udd67","vprop":"\u221d","vrtri":"\u22b3","Vscr":"\ud835\udcb1","vscr":"\ud835\udccb","vsubnE":"\u2acb\ufe00","vsubne":"\u228a\ufe00","vsupnE":"\u2acc\ufe00","vsupne":"\u228b\ufe00","Vvdash":"\u22aa","vzigzag":"\u299a","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2a5f","wedge":"\u2227","Wedge":"\u22c0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\ud835\udd1a","wfr":"\ud835\udd34","Wopf":"\ud835\udd4e","wopf":"\ud835\udd68","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\ud835\udcb2","wscr":"\ud835\udccc","xcap":"\u22c2","xcirc":"\u25ef","xcup":"\u22c3","xdtri":"\u25bd","Xfr":"\ud835\udd1b","xfr":"\ud835\udd35","xharr":"\u27f7","xhArr":"\u27fa","Xi":"\u039e","xi":"\u03be","xlarr":"\u27f5","xlArr":"\u27f8","xmap":"\u27fc","xnis":"\u22fb","xodot":"\u2a00","Xopf":"\ud835\udd4f","xopf":"\ud835\udd69","xoplus":"\u2a01","xotime":"\u2a02","xrarr":"\u27f6","xrArr":"\u27f9","Xscr":"\ud835\udcb3","xscr":"\ud835\udccd","xsqcup":"\u2a06","xuplus":"\u2a04","xutri":"\u25b3","xvee":"\u22c1","xwedge":"\u22c0","Yacute":"\xdd","yacute":"\xfd","YAcy":"\u042f","yacy":"\u044f","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042b","ycy":"\u044b","yen":"\xa5","Yfr":"\ud835\udd1c","yfr":"\ud835\udd36","YIcy":"\u0407","yicy":"\u0457","Yopf":"\ud835\udd50","yopf":"\ud835\udd6a","Yscr":"\ud835\udcb4","yscr":"\ud835\udcce","YUcy":"\u042e","yucy":"\u044e","yuml":"\xff","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017a","Zcaron":"\u017d","zcaron":"\u017e","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017b","zdot":"\u017c","zeetrf":"\u2128","ZeroWidthSpace":"\u200b","Zeta":"\u0396","zeta":"\u03b6","zfr":"\ud835\udd37","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21dd","zopf":"\ud835\udd6b","Zopf":"\u2124","Zscr":"\ud835\udcb5","zscr":"\ud835\udccf","zwj":"\u200d","zwnj":"\u200c"}')}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/9640-3eea7e3561a5f3d4.js b/static/web/_next/static/chunks/9640-3eea7e3561a5f3d4.js deleted file mode 100644 index 58f082139..000000000 --- a/static/web/_next/static/chunks/9640-3eea7e3561a5f3d4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9640],{77891:function(e,n,t){t.d(n,{e:function(){return f}});var r=t(47568),s=t(34051),a=t.n(s),i=t(85893),o=t(85402),l=t(71577),c=t(21640),u=t(82911),d=t(84674),m=t(58827),f=function(e){var n=e.user,t=e.isEnabled,s=e.label,f=e.onClick;function h(){return h=(0,r.Z)(a().mark((function e(n){var r,s,i;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.id,s={userId:r,enabled:!t},e.prev=2,e.next=5,(0,m.rQ)(m.NM,{data:s,method:"POST",auth:!0});case 5:return i=e.sent,e.abrupt("return",i.success);case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])}))),h.apply(this,arguments)}var x=t?"ban":"unban",p=t?(0,i.jsx)(c.Z,{style:{color:"var(--ant-error)"}}):(0,i.jsx)(u.Z,{style:{color:"var(--ant-warning)"}}),j=(0,i.jsxs)(i.Fragment,{children:["Are you sure you want to ",x," ",(0,i.jsx)("strong",{children:n.displayName}),t?" and remove their messages?":"?"]});return(0,i.jsx)(l.Z,{onClick:function(){o.Z.confirm({title:"Confirm ".concat(x),content:j,onCancel:function(){},onOk:function(){return new Promise((function(e,t){var r=function(e){return h.apply(this,arguments)}(n);r?setTimeout((function(){e(r),null===f||void 0===f||f()}),3e3):t()}))},okType:"danger",okText:t?"Absolutely":null,icon:p})},size:"small",icon:t?(0,i.jsx)(d.Z,{twoToneColor:"#ff4d4f"}):null,className:"block-user-button",children:s||x})};f.defaultProps={label:"",onClick:null}},11085:function(e,n,t){t.d(n,{Z:function(){return D}});var r=t(29815),s=t(85893),a=t(67294),i=t(94199),o=t(85402),l=t(84485),c=t(25968),u=t(6226),d=t(27049),m=t(26713),f=t(45938),h=t(58091),x=t(96486),p=t(77891),j=t(47568),b=t(34051),v=t.n(b),y=t(71577),k=t(21640),g=t(82911),Z=t(84674),C=t(24478),w=t(58827),T=function(e){var n,t=e.user,r=e.onClick;function a(){return a=(0,j.Z)(v().mark((function e(n,t){var r,s,a;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.id,s={userId:r,isModerator:t},e.prev=2,e.next=5,(0,w.rQ)(w.jr,{data:s,method:"POST",auth:!0});case 5:return a=e.sent,e.abrupt("return",a.success);case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0);case 12:return e.abrupt("return",!1);case 13:case"end":return e.stop()}}),e,null,[[2,9]])}))),a.apply(this,arguments)}var i=null===(n=t.scopes)||void 0===n?void 0:n.includes("MODERATOR"),l=i?"remove moderator":"add moderator",c=i?(0,s.jsx)(k.Z,{style:{color:"var(--ant-error)"}}):(0,s.jsx)(g.Z,{style:{color:"var(--ant-warning)"}}),u=(0,s.jsxs)(s.Fragment,{children:["Are you sure you want to ",l," ",(0,s.jsx)("strong",{children:t.displayName}),"?"]});return(0,s.jsx)(y.Z,{onClick:function(){o.Z.confirm({title:"Confirm ".concat(l),content:u,onCancel:function(){},onOk:function(){return new Promise((function(e,n){var s=function(e,n){return a.apply(this,arguments)}(t,!i);s?setTimeout((function(){e(s),null===r||void 0===r||r()}),3e3):n()}))},okType:"danger",okText:i?"Yup!":null,icon:c})},size:"small",icon:i?(0,s.jsx)(Z.Z,{twoToneColor:"#ff4d4f"}):(0,s.jsx)(C.Z,{twoToneColor:"#22bb44"}),className:"block-user-button",children:l})};T.defaultProps={onClick:null};var N=t(41542),A=t(2766),D=function(e){var n=e.user,t=e.connectionInfo,j=e.children,b=(0,a.useState)(!1),v=b[0],y=b[1],k=function(){y(!1)},g=n.displayName,Z=n.createdAt,C=n.previousNames,w=n.nameChangedAt,D=n.disabledAt,P=t||{},O=P.connectedAt,E=P.messageCount,I=P.userAgent,M=null,S=C&&(0,r.Z)(C);C&&C.length>1&&w&&(M=new Date(w),S.reverse());var F=new Date(Z),z=(0,h.Z)(F,"PP pp"),U=M?(0,f.Z)(M):null;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Z,{title:(0,s.jsxs)(s.Fragment,{children:["Created at: ",z,".",(0,s.jsx)("br",{})," Click for more info."]}),placement:"bottomLeft",children:(0,s.jsx)("button",{type:"button","aria-label":"Display more details about this user",className:"user-item-container",onClick:function(){y(!0)},children:j})}),(0,s.jsx)(o.Z,{destroyOnClose:!0,width:600,cancelText:"Close",okButtonProps:{style:{display:"none"}},title:"User details: ".concat(g),visible:v,onOk:k,onCancel:k,children:(0,s.jsxs)("div",{className:"user-details",children:[(0,s.jsx)(l.Z.Title,{level:4,children:g}),(0,s.jsxs)("p",{className:"created-at",children:["User created at ",z,"."]}),(0,s.jsxs)(c.Z,{gutter:16,children:[t&&(0,s.jsxs)(u.Z,{md:M?12:24,children:[(0,s.jsx)(l.Z.Title,{level:5,children:"This user is currently connected to Chat."}),(0,s.jsxs)("ul",{className:"connection-info",children:[(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"Active for:"})," ",(0,f.Z)(new Date(O))]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"Messages sent:"})," ",E]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"User Agent:"}),(0,s.jsx)("br",{}),(0,A.AB)(I)]})]})]}),M&&(0,s.jsxs)(u.Z,{md:t?12:24,children:[(0,s.jsx)(l.Z.Title,{level:5,children:"This user is also seen as:"}),(0,s.jsx)("ul",{className:"previous-names-list",children:(0,x.uniq)(S).map((function(e,n){return(0,s.jsxs)("li",{className:0===n?"latest":"",children:[(0,s.jsx)("span",{className:"user-name-item",children:e}),0===n?" (Changed ".concat(U," ago)"):""]})}))})]})]}),(0,s.jsx)(d.Z,{}),(0,s.jsxs)(m.Z,{direction:"horizontal",children:[D?(0,s.jsxs)(s.Fragment,{children:["This user was banned on ",(0,s.jsx)("code",{children:(0,N.u)(D)}),".",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)(p.e,{label:"Unban this user",user:n,isEnabled:!1,onClick:k})]}):(0,s.jsx)(p.e,{label:"Ban this user",user:n,isEnabled:!0,onClick:k}),(0,s.jsx)(T,{user:n,onClick:k})]})]})})]})};D.defaultProps={connectionInfo:null}},41542:function(e,n,t){t.d(n,{K:function(){return c},u:function(){return l}});var r=t(85893),s=t(10355),a=t(58091),i=t(11085),o=t(77891);function l(e){return(0,a.Z)(new Date(e),"MMM d H:mma")}var c=function(e){var n=e.data,t=[{title:"Last Known Display Name",dataIndex:"displayName",key:"displayName",render:function(e,n){return(0,r.jsx)(i.Z,{user:n,children:(0,r.jsx)("span",{className:"display-name",children:e})})}},{title:"Created",dataIndex:"createdAt",key:"createdAt",render:function(e){return l(e)},sorter:function(e,n){return new Date(e.createdAt).getTime()-new Date(n.createdAt).getTime()},sortDirections:["descend","ascend"]},{title:"Disabled at",dataIndex:"disabledAt",key:"disabledAt",defaultSortOrder:"descend",render:function(e){return e?l(e):null},sorter:function(e,n){return new Date(e.disabledAt).getTime()-new Date(n.disabledAt).getTime()},sortDirections:["descend","ascend"]},{title:"",key:"block",className:"actions-col",render:function(e,n){return(0,r.jsx)(o.e,{user:n,isEnabled:!n.disabledAt})}}];return(0,r.jsx)(s.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:t,dataSource:n,size:"small",rowKey:"id"})}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/9640-a9765e176df0f25f.js b/static/web/_next/static/chunks/9640-a9765e176df0f25f.js new file mode 100644 index 000000000..804d38eb9 --- /dev/null +++ b/static/web/_next/static/chunks/9640-a9765e176df0f25f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9640],{77891:function(e,n,t){t.d(n,{e:function(){return h}});var r=t(47568),s=t(70655),a=t(85893),i=t(85402),l=t(71577),o=t(21640),c=t(82911),u=t(84674),d=t(58827),h=function(e){var n=e.user,t=e.isEnabled,h=e.label,m=e.onClick;function f(){return f=(0,r.Z)((function(e){var n,r,a,i,l;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:n=e.id,(a={}).userId=n,a.enabled=!t,r=a,s.label=1;case 1:return s.trys.push([1,3,,4]),i={},[4,(0,d.rQ)(d.NM,(i.data=r,i.method="POST",i.auth=!0,i))];case 2:return[2,s.sent().success];case 3:return l=s.sent(),console.error(l),[3,4];case 4:return[2,!1]}}))})),f.apply(this,arguments)}var x=t?"ban":"unban",j=t?(0,a.jsx)(o.Z,{style:{color:"var(--ant-error)"}}):(0,a.jsx)(c.Z,{style:{color:"var(--ant-warning)"}}),b=(0,a.jsxs)(a.Fragment,{children:["Are you sure you want to ",x," ",(0,a.jsx)("strong",{children:n.displayName}),t?" and remove their messages?":"?"]});return(0,a.jsx)(l.Z,{onClick:function(){i.Z.confirm({title:"Confirm ".concat(x),content:b,onCancel:function(){},onOk:function(){return new Promise((function(e,t){var r=function(e){return f.apply(this,arguments)}(n);r?setTimeout((function(){e(r),null===m||void 0===m||m()}),3e3):t()}))},okType:"danger",okText:t?"Absolutely":null,icon:j})},size:"small",icon:t?(0,a.jsx)(u.Z,{twoToneColor:"#ff4d4f"}):null,className:"block-user-button",children:h||x})};h.defaultProps={label:"",onClick:null}},11085:function(e,n,t){t.d(n,{Z:function(){return A}});var r=t(29815),s=t(85893),a=t(67294),i=t(94199),l=t(85402),o=t(84485),c=t(25968),u=t(6226),d=t(27049),h=t(26713),m=t(45938),f=t(58091),x=t(96486),j=t(77891),b=t(47568),p=t(70655),v=t(71577),y=t(21640),g=t(82911),Z=t(84674),k=t(24478),C=t(58827),w=function(e){var n,t=e.user,r=e.onClick;function a(){return a=(0,b.Z)((function(e,n){var t,r,s,a,i;return(0,p.__generator)(this,(function(l){switch(l.label){case 0:t=e.id,(s={}).userId=t,s.isModerator=n,r=s,l.label=1;case 1:return l.trys.push([1,3,,4]),a={},[4,(0,C.rQ)(C.jr,(a.data=r,a.method="POST",a.auth=!0,a))];case 2:return[2,l.sent().success];case 3:return i=l.sent(),console.error(i),[3,4];case 4:return[2,!1]}}))})),a.apply(this,arguments)}var i=null===(n=t.scopes)||void 0===n?void 0:n.includes("MODERATOR"),o=i?"remove moderator":"add moderator",c=i?(0,s.jsx)(y.Z,{style:{color:"var(--ant-error)"}}):(0,s.jsx)(g.Z,{style:{color:"var(--ant-warning)"}}),u=(0,s.jsxs)(s.Fragment,{children:["Are you sure you want to ",o," ",(0,s.jsx)("strong",{children:t.displayName}),"?"]});return(0,s.jsx)(v.Z,{onClick:function(){l.Z.confirm({title:"Confirm ".concat(o),content:u,onCancel:function(){},onOk:function(){return new Promise((function(e,n){var s=function(e,n){return a.apply(this,arguments)}(t,!i);s?setTimeout((function(){e(s),null===r||void 0===r||r()}),3e3):n()}))},okType:"danger",okText:i?"Yup!":null,icon:c})},size:"small",icon:i?(0,s.jsx)(Z.Z,{twoToneColor:"#ff4d4f"}):(0,s.jsx)(k.Z,{twoToneColor:"#22bb44"}),className:"block-user-button",children:o})};w.defaultProps={onClick:null};var T=t(41542),N=t(2766),A=function(e){var n=e.user,t=e.connectionInfo,b=e.children,p=(0,a.useState)(!1),v=p[0],y=p[1],g=function(){y(!1)},Z=n.displayName,k=n.createdAt,C=n.previousNames,A=n.nameChangedAt,D=n.disabledAt,P=t||{},O=P.connectedAt,_=P.messageCount,E=P.userAgent,I=null,M=C&&(0,r.Z)(C);C&&C.length>1&&A&&(I=new Date(A),M.reverse());var S=new Date(k),F=(0,f.Z)(S,"PP pp"),z=I?(0,m.Z)(I):null;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(i.Z,{title:(0,s.jsxs)(s.Fragment,{children:["Created at: ",F,".",(0,s.jsx)("br",{})," Click for more info."]}),placement:"bottomLeft",children:(0,s.jsx)("button",{type:"button","aria-label":"Display more details about this user",className:"user-item-container",onClick:function(){y(!0)},children:b})}),(0,s.jsx)(l.Z,{destroyOnClose:!0,width:600,cancelText:"Close",okButtonProps:{style:{display:"none"}},title:"User details: ".concat(Z),visible:v,onOk:g,onCancel:g,children:(0,s.jsxs)("div",{className:"user-details",children:[(0,s.jsx)(o.Z.Title,{level:4,children:Z}),(0,s.jsxs)("p",{className:"created-at",children:["User created at ",F,"."]}),(0,s.jsxs)(c.Z,{gutter:16,children:[t&&(0,s.jsxs)(u.Z,{md:I?12:24,children:[(0,s.jsx)(o.Z.Title,{level:5,children:"This user is currently connected to Chat."}),(0,s.jsxs)("ul",{className:"connection-info",children:[(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"Active for:"})," ",(0,m.Z)(new Date(O))]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"Messages sent:"})," ",_]}),(0,s.jsxs)("li",{children:[(0,s.jsx)("strong",{children:"User Agent:"}),(0,s.jsx)("br",{}),(0,N.AB)(E)]})]})]}),I&&(0,s.jsxs)(u.Z,{md:t?12:24,children:[(0,s.jsx)(o.Z.Title,{level:5,children:"This user is also seen as:"}),(0,s.jsx)("ul",{className:"previous-names-list",children:(0,x.uniq)(M).map((function(e,n){return(0,s.jsxs)("li",{className:0===n?"latest":"",children:[(0,s.jsx)("span",{className:"user-name-item",children:e}),0===n?" (Changed ".concat(z," ago)"):""]})}))})]})]}),(0,s.jsx)(d.Z,{}),(0,s.jsxs)(h.Z,{direction:"horizontal",children:[D?(0,s.jsxs)(s.Fragment,{children:["This user was banned on ",(0,s.jsx)("code",{children:(0,T.u)(D)}),".",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)(j.e,{label:"Unban this user",user:n,isEnabled:!1,onClick:g})]}):(0,s.jsx)(j.e,{label:"Ban this user",user:n,isEnabled:!0,onClick:g}),(0,s.jsx)(w,{user:n,onClick:g})]})]})})]})};A.defaultProps={connectionInfo:null}},41542:function(e,n,t){t.d(n,{K:function(){return c},u:function(){return o}});var r=t(85893),s=t(10355),a=t(58091),i=t(11085),l=t(77891);function o(e){return(0,a.Z)(new Date(e),"MMM d H:mma")}var c=function(e){var n=e.data,t=[{title:"Last Known Display Name",dataIndex:"displayName",key:"displayName",render:function(e,n){return(0,r.jsx)(i.Z,{user:n,children:(0,r.jsx)("span",{className:"display-name",children:e})})}},{title:"Created",dataIndex:"createdAt",key:"createdAt",render:function(e){return o(e)},sorter:function(e,n){return new Date(e.createdAt).getTime()-new Date(n.createdAt).getTime()},sortDirections:["descend","ascend"]},{title:"Disabled at",dataIndex:"disabledAt",key:"disabledAt",defaultSortOrder:"descend",render:function(e){return e?o(e):null},sorter:function(e,n){return new Date(e.disabledAt).getTime()-new Date(n.disabledAt).getTime()},sortDirections:["descend","ascend"]},{title:"",key:"block",className:"actions-col",render:function(e,n){return(0,r.jsx)(l.e,{user:n,isEnabled:!n.disabledAt})}}];return(0,r.jsx)(s.Z,{pagination:{hideOnSinglePage:!0},className:"table-container",columns:t,dataSource:n,size:"small",rowKey:"id"})}}}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/main-04a633f9c14e298c.js b/static/web/_next/static/chunks/main-04a633f9c14e298c.js new file mode 100644 index 000000000..d26d6b7ab --- /dev/null +++ b/static/web/_next/static/chunks/main-04a633f9c14e298c.js @@ -0,0 +1 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{25300:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(a[r]=e[r]);return a}},29241:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t&&("object"===a.default(t)||"function"===typeof t))return t;return n.default(e)};var n=o(r(48646)),a=o(r(45753));function o(e){return e&&e.__esModule?e:{default:e}}},35814:function(e,t){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return r(e,t)}},94941:function(e,t,r){"use strict";t.Z=function(e,t){return n.default(e)||a.default(e,t)||i.default(e,t)||o.default()};var n=u(r(46564)),a=u(r(21301)),o=u(r(16936)),i=u(r(72149));function u(e){return e&&e.__esModule?e:{default:e}}},36678:function(e,t,r){"use strict";t.Z=function(e){return n.default(e)||a.default(e)||u.default(e,i)||o.default()};var n=c(r(46564)),a=c(r(21301)),o=c(r(16936)),u=c(r(72149));function c(e){return e&&e.__esModule?e:{default:e}}},53929:function(e,t,r){"use strict";t.Z=function(e){return n.default(e)||a.default(e)||i.default(e)||o.default()};var n=u(r(82568)),a=u(r(21301)),o=u(r(34162)),i=u(r(72149));function u(e){return e&&e.__esModule?e:{default:e}}},32401:function(e,t,r){"use strict";Object.defineProperty(t,"Z",{enumerable:!0,get:function(){return n.__generator}});var n=r(70655)},45753:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&e.constructor===Symbol?"symbol":typeof e}},72149:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)return;if("string"===typeof e)return a.default(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a.default(e,t)};var n,a=(n=r(25300))&&n.__esModule?n:{default:n}},79968:function(e,t,r){"use strict";t.Z=function(e){return c(e)};var n=u(r(5317)),a=u(r(4499)),o=u(r(20898)),i=u(r(35814));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t="function"===typeof Map?new Map:void 0;return c=function(e){if(null===e||!a.default(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return n.default(e,arguments,o.default(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i.default(r,e)},c(e)}},96086:function(e){"use strict";var t=Object.assign.bind(Object);e.exports=t,e.exports.default=e.exports},40037:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce((function(e,t){return e[t[0]]=t[1],e}),{})})},98684:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addBasePath=function(e,t){0;return a.normalizePathTrailingSlash(n.addPathPrefix(e,""))};var n=r(95391),a=r(82392);("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22725:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(53929).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.addLocale=void 0;r(82392);t.addLocale=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&void 0!==i[0]?i[0]:e,k=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=k,z=k.defaultLocale,t=k.assetPrefix||"",r.p="".concat(t,"/_next/"),n={},b.setConfig((n.serverRuntimeConfig={},n.publicRuntimeConfig=k.runtimeConfig||{},n)),I=P.getURL(),A.hasBasePath(I)&&(I=C.removeBasePath(I)),k.scriptLoader&&(0,r(20699).initScriptLoader)(k.scriptLoader),N=new E.default(k.buildId,t),a=function(e){var t=u(e,2),r=t[0],n=t[1];return N.routeLoader.onEntrypoint(r,n)},window.__NEXT_P&&window.__NEXT_P.map((function(e){return setTimeout((function(){return a(e)}),0)})),window.__NEXT_P=[],window.__NEXT_P.push=a,(q=S.default()).getIsSsr=function(){return p.isSsr},D=document.getElementById("__next"),[2,((o={}).assetPrefix=t,o)]}))})),$.apply(this,arguments)}function K(e,t){return h.default.createElement(e,Object.assign({},t))}function X(e){var t=e.children;return h.default.createElement(V,{fn:function(e){return Y({App:H,err:e}).catch((function(e){return console.error("Error rendering page: ",e)}))}},h.default.createElement(y.RouterContext.Provider,{value:j.makePublicRouterInstance(p)},h.default.createElement(v.HeadManagerContext.Provider,{value:q},h.default.createElement(R.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}},t))))}var Q=function(e){return function(t){var r=f({},t,{Component:F,err:k.err,router:p});return h.default.createElement(X,null,K(e,r))}};function Y(e){var t=e.App,n=e.err;return console.error(n),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),N.loadPage("/_error").then((function(n){var a=n.page,o=n.styleSheets;return(null==Z?void 0:Z.Component)===a?Promise.resolve().then((function(){return i(r(89185))})).then((function(n){return Promise.resolve().then((function(){return i(r(46029))})).then((function(r){return t=r.default,e.App=t,n}))})).then((function(e){return{ErrorComponent:e.default,styleSheets:[]}})):{ErrorComponent:a,styleSheets:o}})).then((function(r){var a,o=r.ErrorComponent,i=r.styleSheets,u=Q(t),c={Component:o,AppTree:u,router:p,ctx:{err:n,pathname:k.page,query:k.query,asPath:I,AppTree:u}};return Promise.resolve((null==(a=e.props)?void 0:a.err)?e.props:P.loadGetInitialProps(t,c)).then((function(t){return oe(f({},e,{err:n,Component:o,styleSheets:i,props:t}))}))}))}function J(e){var t=e.callback;return h.default.useLayoutEffect((function(){return t()}),[t]),null}var ee=!0;function te(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach((function(e){return performance.clearMarks(e)}))}function re(){P.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),B&&performance.getEntriesByName("Next.js-hydration").forEach(B),te())}function ne(){if(P.ST){performance.mark("afterRender");var e=performance.getEntriesByName("routeChange","mark");e.length&&(performance.measure("Next.js-route-change-to-render",e[0].name,"beforeRender"),performance.measure("Next.js-render","beforeRender","afterRender"),B&&(performance.getEntriesByName("Next.js-render").forEach(B),performance.getEntriesByName("Next.js-route-change-to-render").forEach(B)),te(),["Next.js-route-change-to-render","Next.js-render"].forEach((function(e){return performance.clearMeasures(e)})))}}function ae(e){var t=e.callbacks,r=e.children;return h.default.useLayoutEffect((function(){return t.forEach((function(e){return e()}))}),[t]),h.default.useEffect((function(){O.default(B)}),[]),r}function oe(e){var t=function(){s()},r=e.App,n=e.Component,a=e.props,o=e.err,i=e.__N_RSC,u="initial"in e?void 0:e.styleSheets;n=n||Z.Component,a=a||Z.props;var c=f({},a,{Component:!!i?undefined:n,err:o,router:p});Z=c;var s,l=!1,d=new Promise((function(e,t){U&&U(),s=function(){U=null,e()},U=function(){l=!0,U=null;var e=new Error("Cancel rendering route");e.cancelled=!0,t(e)}}));!function(){if(!u)return!1;var e=W(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map((function(e){return e.getAttribute("data-n-href")}))),r=document.querySelector("noscript[data-n-css]"),n=null==r?void 0:r.getAttribute("data-n-css");u.forEach((function(e){var r=e.href,a=e.text;if(!t.has(r)){var o=document.createElement("style");o.setAttribute("data-n-href",r),o.setAttribute("media","x"),n&&o.setAttribute("nonce",n),document.head.appendChild(o),o.appendChild(document.createTextNode(a))}}))}();var v=h.default.createElement(h.default.Fragment,null,h.default.createElement(J,{callback:function(){if(u&&!l){for(var t=new Set(u.map((function(e){return e.href}))),r=W(document.querySelectorAll("style[data-n-href]")),n=r.map((function(e){return e.getAttribute("data-n-href")})),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,r=void 0!==t&&t,n=e.hybrid,a=void 0!==n&&n,o=e.hasQuery,i=void 0!==o&&o;return r||a&&i}},10489:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeStringRegexp=function(e){if(r.test(e))return e.replace(n,"\\$&");return e};var r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g},8404:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadManagerContext=void 0;var n=(0,r(92648).Z)(r(67294)).default.createContext({});t.HeadManagerContext=n},5443:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=l,t.default=void 0;var n=r(6495).Z,a=r(92648).Z,o=(0,r(91598).Z)(r(67294)),i=a(r(55188)),u=r(22227),c=r(8404),s=r(17363);r(63794);function l(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var d=["name","httpEquiv","charSet","itemProp"];function p(e,t){var r=t.inAmpMode;return e.reduce(f,[]).reverse().concat(l(r).reverse()).filter(function(){var e=new Set,t=new Set,r=new Set,n={};return function(a){var o=!0,i=!1;if(a.key&&"number"!==typeof a.key&&a.key.indexOf("$")>0){i=!0;var u=a.key.slice(a.key.indexOf("$")+1);e.has(u)?o=!1:e.add(u)}switch(a.type){case"title":case"base":t.has(a.type)?o=!1:t.add(a.type);break;case"meta":for(var c=0,s=d.length;c>>0,1)},emit:function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o1&&n.status>=500?$(e,t-1,r):n}))}var K={};function X(e){try{return JSON.parse(e)}catch(t){return null}}function Q(e){var t,r=e.dataHref,n=e.inflightCache,a=e.isPrefetch,o=e.hasMiddleware,i=e.isServerRender,u=e.parseJSON,c=e.persistCache,s=e.isBackground,l=e.unstable_skipClientCache,f=new URL(r,window.location.href).href,d=function(e){return $(r,i?3:1,{headers:a?{purpose:"prefetch"}:{},method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then((function(t){return t.ok&&"HEAD"===(null==e?void 0:e.method)?{dataHref:r,response:t,text:"",json:{},cacheKey:f}:t.text().then((function(e){if(!t.ok){if(o&&[301,302,307,308].includes(t.status))return{dataHref:r,response:t,text:e,json:{},cacheKey:f};var n;if(!o&&404===t.status)if(null==(n=X(e))?void 0:n.notFound)return{dataHref:r,json:{notFound:V},response:t,text:e,cacheKey:f};var a=new Error("Failed to load static props");throw i||p.markAssetError(a),a}return{dataHref:r,json:u?X(e):null,response:t,text:e,cacheKey:f}}))})).then((function(e){return c&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[f],e})).catch((function(e){throw delete n[f],e}))};return l&&c?d({}).then((function(e){return n[f]=Promise.resolve(e),e})):void 0!==n[f]?n[f]:n[f]=d(s?{method:"HEAD"}:{})}function Y(){return Math.random().toString(36).slice(2,10)}function J(e){var t=e.url,r=e.router;if(t===A.addBasePath(M.addLocale(r.asPath,r.locale)))throw new Error("Invariant: attempted to hard navigate to the same URL ".concat(t," ").concat(location.href));window.location.href=t}var ee=function(e){var t=e.route,r=e.router,n=!1,a=r.clc=function(){n=!0};return function(){if(n){var e=new Error('Abort fetching component for route: "'.concat(t,'"'));throw e.cancelled=!0,e}a===r.clc&&(r.clc=null)}},te=function(){function e(t,r,a,o){var i=o.initialProps,u=o.pageLoader,c=o.App,s=o.wrapApp,l=o.Component,f=o.err,p=o.subscription,h=o.isFallback,v=o.locale,m=(o.locales,o.defaultLocale,o.domainLocales,o.isPreview),y=o.isRsc,g=this;n(this,e),this.sdc={},this.isFirstPopStateEvent=!0,this._key=Y(),this.onPopState=function(e){var t=g.isFirstPopStateEvent;g.isFirstPopStateEvent=!1;var r=e.state;if(r){if(r.__NA)window.location.reload();else if(r.__N&&(!t||g.locale!==r.options.locale||r.as!==g.asPath)){var n=r.url,a=r.as,o=r.options,i=r.key;g._key=i;var u=P.parseRelativeUrl(n).pathname;g.isSsr&&a===A.addBasePath(g.asPath)&&u===A.addBasePath(g.pathname)||g._bps&&!g._bps(r)||g.change("replaceState",n,a,Object.assign({},o,{shallow:o.shallow&&g._shallow,locale:o.locale||g.defaultLocale,_h:0}),undefined)}}else{var c=g.pathname,s=g.query;g.changeState("replaceState",x.formatWithValidation({pathname:A.addBasePath(c),query:s}),_.getURL())}};var w=d.removeTrailingSlash(t);this.components={},"/_error"!==t&&(this.components[w]={Component:l,initial:!0,props:i,err:f,__N_SSG:i&&i.__N_SSG,__N_SSP:i&&i.__N_SSP,__N_RSC:!!y}),this.components["/_app"]={Component:c,styleSheets:[]},this.events=e.events,this.pageLoader=u;var S=b.isDynamicRoute(t)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=p,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||(!S&&self.location.search,0)),this.state={route:w,pathname:t,query:r,asPath:S?t:a,isPreview:!!m,locale:void 0,isFallback:h},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!a.startsWith("//")){var E={locale:v},O=_.getURL();this._initialMatchesMiddlewarePromise=D({router:this,locale:v,asPath:O}).then((function(e){return E._shouldResolveHref=a!==t,g.changeState("replaceState",e?O:x.formatWithValidation({pathname:A.addBasePath(t),query:r}),O,E),e}))}window.addEventListener("popstate",this.onPopState)}return a(e,[{key:"reload",value:function(){window.location.reload()}},{key:"back",value:function(){window.history.back()}},{key:"push",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=(r=W(this,e,t)).url,t=r.as,this.change("pushState",e,t,n)}},{key:"replace",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=(r=W(this,e,t)).url,t=r.as,this.change("replaceState",e,t,n)}},{key:"change",value:function(t,r,n,a,s){var l=this;return u((function(){var u,f,m,y,g,w,L,k,q,Z,F,G,$,K,X,Q,Y,ee,te,re,ne,ae,oe,ie,ue,ce,se,le,fe,de,pe,he,ve,me,ye,ge,_e,be,Pe,we,Se,Ee,Oe,xe,je,Me,Re,Ce,Ae,Te,Le,ke,Ie,Ne,De,qe,Ze,Ue,He,Be,Fe,We,ze,Ge,Ve,$e,Ke,Xe,Qe,Ye,Je,et,tt,rt;return i(this,(function(i){switch(i.label){case 0:if(u={},!H(r))return J((u.url=r,u.router=l,u)),[2,!1];if(f=a._h,m=f||a._shouldResolveHref||j.parsePath(r).pathname===j.parsePath(n).pathname,y=c({},l.state),g=!0!==l.isReady,l.isReady=!0,w=l.isSsr,f||(l.isSsr=!1),f&&l.clc)return[2,!1];if(L=y.locale,{},{},_.ST&&performance.mark("routeChange"),k=a.shallow,q=void 0!==k&&k,Z=a.scroll,F=void 0===Z||Z,($={}).shallow=q,G=$,l._inFlightRoute&&l.clc&&(w||e.events.emit("routeChangeError",N(),l._inFlightRoute,G),l.clc(),l.clc=null),n=A.addBasePath(M.addLocale(T.hasBasePath(n)?C.removeBasePath(n):n,a.locale,l.defaultLocale)),K=R.removeLocale(T.hasBasePath(n)?C.removeBasePath(n):n,y.locale),l._inFlightRoute=n,X=L!==y.locale,f||!l.onlyAHashChange(K)||X)return[3,5];y.asPath=K,e.events.emit("hashChangeStart",n,G),Q={},Y={},l.changeState(t,r,n,c(Q,a,(Y.scroll=!1,Y))),F&&l.scrollToHash(K),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,l.set(y,l.components[y.route],null)];case 2:return i.sent(),[3,4];case 3:throw ee=i.sent(),v.default(ee)&&ee.cancelled&&e.events.emit("routeChangeError",ee,K,G),ee;case 4:return e.events.emit("hashChangeComplete",n,G),[2,!0];case 5:te=P.parseRelativeUrl(r),re=te.pathname,ne=te.query,i.label=6;case 6:return i.trys.push([6,8,,9]),[4,Promise.all([l.pageLoader.getPageList(),p.getClientBuildManifest(),l.pageLoader.getMiddleware()])];case 7:return ie=o.apply(void 0,[i.sent(),2]),ae=ie[0],ue=ie[1],oe=ue.__rewrites,[3,9];case 8:return i.sent(),J(((ce={}).url=n,ce.router=l,ce)),[2,!1];case 9:return l.urlIsNew(K)||X||(t="replaceState"),se=n,re=re?d.removeTrailingSlash(C.removeBasePath(re)):re,[4,D(((fe={}).asPath=n,fe.locale=y.locale,fe.router=l,fe))];case 10:if(le=i.sent(),a.shallow&&le&&(re=l.pathname),pe={},m&&"/_error"!==re)if(a._shouldResolveHref=!0,n.startsWith("/")){if((de=S.default(A.addBasePath(M.addLocale(K,y.locale),!0),ae,oe,ne,(function(e){return z(e,ae)}),l.locales)).externalDest)return J((pe.url=n,pe.router=l,pe)),[2,!0];le||(se=de.asPath),de.matchedPage&&de.resolvedHref&&(re=de.resolvedHref,te.pathname=A.addBasePath(re),le||(r=x.formatWithValidation(te)))}else te.pathname=z(re,ae),te.pathname!==re&&(re=te.pathname,te.pathname=A.addBasePath(re),le||(r=x.formatWithValidation(te)));if(he={},!H(n))return J((he.url=n,he.router=l,he)),[2,!1];if(se=R.removeLocale(C.removeBasePath(se),y.locale),ve=d.removeTrailingSlash(re),me=!1,we={},b.isDynamicRoute(ve))if(ye=P.parseRelativeUrl(se),ge=ye.pathname,_e=O.getRouteRegex(ve),me=E.getRouteMatcher(_e)(ge),Pe=(be=ve===ge)?B(ve,ge,ne):we,!me||be&&!Pe.result){if((Se=Object.keys(_e.groups).filter((function(e){return!ne[e]}))).length>0&&!le)throw new Error((be?"The provided `href` (".concat(r,") value is missing query values (").concat(Se.join(", "),") to be interpolated properly. "):"The provided `as` value (".concat(ge,") is incompatible with the `href` value (").concat(ve,"). "))+"Read more: https://nextjs.org/docs/messages/".concat(be?"href-interpolation-failed":"incompatible-href-as"))}else be?n=x.formatWithValidation(Object.assign({},ye,{pathname:Pe.result,query:U(ne,Pe.params)})):Object.assign(ne,me);f||e.events.emit("routeChangeStart",n,G),i.label=11;case 11:return i.trys.push([11,21,,22]),je={},[4,l.getRouteInfo((je.route=ve,je.pathname=re,je.query=ne,je.as=n,je.resolvedAs=se,je.routeProps=G,je.locale=y.locale,je.isPreview=y.isPreview,je.hasMiddleware=le,je))];case 12:if("route"in(xe=i.sent())&&le&&(re=xe.route||ve,ve=re,G.shallow||(ne=Object.assign({},xe.query||{},ne)),me&&re!==te.pathname&&Object.keys(me).forEach((function(e){me&&ne[e]===me[e]&&delete ne[e]})),b.isDynamicRoute(re)&&(Me=!G.shallow&&xe.resolvedAs?xe.resolvedAs:A.addBasePath(M.addLocale(new URL(n,location.href).pathname,y.locale),!0),Re=Me,T.hasBasePath(Re)&&(Re=C.removeBasePath(Re)),Ce=O.getRouteRegex(re),(Ae=E.getRouteMatcher(Ce)(Re))&&Object.assign(ne,Ae))),Te={},"type"in xe)return"redirect-internal"===xe.type?[2,l.change(t,xe.newUrl,xe.newAs,a)]:(J((Te.url=xe.destination,Te.router=l,Te)),[2,new Promise((function(){}))]);if(Le=xe.error,ke=xe.props,Ie=xe.__N_SSG,Ne=xe.__N_SSP,(De=xe.Component)&&De.unstable_scriptLoader&&[].concat(De.unstable_scriptLoader()).forEach((function(e){h.handleClientScriptLoad(e.props)})),!Ie&&!Ne||!ke)return[3,18];if(Fe={},ke.pageProps&&ke.pageProps.__N_REDIRECT)return a.locale=!1,(qe=ke.pageProps.__N_REDIRECT).startsWith("/")&&!1!==ke.pageProps.__N_REDIRECT_BASE_PATH?((Ze=P.parseRelativeUrl(qe)).pathname=z(Ze.pathname,ae),Ue=W(l,qe,qe),He=Ue.url,Be=Ue.as,[2,l.change(t,He,Be,a)]):(J((Fe.url=qe,Fe.router=l,Fe)),[2,new Promise((function(){}))]);if(y.isPreview=!!ke.__N_PREVIEW,ke.notFound!==V)return[3,18];i.label=13;case 13:return i.trys.push([13,15,,16]),[4,l.fetchComponent("/404")];case 14:return i.sent(),We="/404",[3,16];case 15:return i.sent(),We="/_error",[3,16];case 16:return ze={},[4,l.getRouteInfo((ze.route=We,ze.pathname=We,ze.query=ne,ze.as=n,ze.resolvedAs=se,ze.routeProps={shallow:!1},ze.locale=y.locale,ze.isPreview=y.isPreview,ze))];case 17:if("type"in(xe=i.sent()))throw new Error("Unexpected middleware effect on /404");i.label=18;case 18:return e.events.emit("beforeHistoryChange",n,G),l.changeState(t,r,n,a),f&&"/_error"===re&&500===(null==(Ee=self.__NEXT_DATA__.props)||null==(Oe=Ee.pageProps)?void 0:Oe.statusCode)&&(null==ke?void 0:ke.pageProps)&&(ke.pageProps.statusCode=500),Ve=a.shallow&&y.route===(null!=(Ge=xe.route)?Ge:ve),Ke=null!=($e=a.scroll)?$e:!a._h&&!Ve,Qe={},Xe=Ke?(Qe.x=0,Qe.y=0,Qe):null,Ye=c({},y,((Je={}).route=ve,Je.pathname=re,Je.query=ne,Je.asPath=K,Je.isFallback=!1,Je)),et=null!=s?s:Xe,a._h&&!et&&!g&&!X&&I.compareRouterStates(Ye,l.state)?[3,20]:[4,l.set(Ye,xe,et).catch((function(e){if(!e.cancelled)throw e;Le=Le||e}))];case 19:if(i.sent(),Le)throw f||e.events.emit("routeChangeError",Le,K,G),Le;0,f||e.events.emit("routeChangeComplete",n,G),tt=/#.+$/,Ke&&tt.test(n)&&l.scrollToHash(n),i.label=20;case 20:return[2,!0];case 21:if(rt=i.sent(),v.default(rt)&&rt.cancelled)return[2,!1];throw rt;case 22:return[2]}}))}))()}},{key:"changeState",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"pushState"===e&&_.getURL()===r||(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:Y()},"",r))}},{key:"handleRouteInfoError",value:function(t,r,n,a,o,c){var s=this;return u((function(){var u,l,f,d,h,m,y,g,_;return i(this,(function(i){switch(i.label){case 0:if(console.error(t),t.cancelled)throw t;if(u={},p.isAssetError(t)||c)throw e.events.emit("routeChangeError",t,a,o),J((u.url=a,u.router=s,u)),N();i.label=1;case 1:return i.trys.push([1,7,,8]),[4,s.fetchComponent("/_error")];case 2:if(l=i.sent(),f=l.page,d=l.styleSheets,(m={}).props=undefined,m.Component=f,m.styleSheets=d,m.err=t,m.error=t,(h=m).props)return[3,6];i.label=3;case 3:return i.trys.push([3,5,,6]),y={},[4,s.getInitialProps(f,(y.err=t,y.pathname=r,y.query=n,y))];case 4:return h.props=i.sent(),[3,6];case 5:return g=i.sent(),console.error("Error in error page `getInitialProps`: ",g),h.props={},[3,6];case 6:return[2,h];case 7:return _=i.sent(),[2,s.handleRouteInfoError(v.default(_)?_:new Error(_+""),r,n,a,o,!0)];case 8:return[2]}}))}))()}},{key:"getRouteInfo",value:function(e){var t=e.route,r=e.pathname,n=e.query,a=e.as,o=e.resolvedAs,s=e.routeProps,l=e.locale,f=e.hasMiddleware,p=e.isPreview,h=e.unstable_skipClientCache,m=this;return u((function(){var e,g,_,w,S,E,O,j,M,R,A,T,L,k,I,N,D,q,Z,U,H,F,W,z,V,$,X,Y;return i(this,(function(te){switch(te.label){case 0:e=t,te.label=1;case 1:return te.trys.push([1,10,,11]),S=ee(((E={}).route=e,E.router=m,E)),O=m.components[e],s.shallow&&O&&m.route===e?[2,O]:(f&&(O=void 0),j=O&&!("initial"in O)?O:void 0,(R={}).dataHref=m.pageLoader.getDataHref({href:x.formatWithValidation({pathname:r,query:n}),skipInterpolation:!0,asPath:o,locale:l}),R.hasMiddleware=!0,R.isServerRender=m.isSsr,R.parseJSON=!0,R.inflightCache=m.sdc,R.persistCache=!p,R.isPrefetch=!1,R.unstable_skipClientCache=h,M=R,[4,G(((T={}).fetchData=function(){return Q(M)},T.asPath=o,T.locale=l,T.router=m,T))]);case 2:return A=te.sent(),S(),"redirect-internal"===(null==A||null==(g=A.effect)?void 0:g.type)||"redirect-external"===(null==A||null==(_=A.effect)?void 0:_.type)?[2,A.effect]:(L={},k={},"rewrite"===(null==A||null==(w=A.effect)?void 0:w.type)&&(e=d.removeTrailingSlash(A.effect.resolvedHref),r=A.effect.resolvedHref,n=c({},n,A.effect.parsedAs.query),o=C.removeBasePath(y.normalizeLocalePath(A.effect.parsedAs.pathname,m.locales).pathname),O=m.components[e],s.shallow&&O&&m.route===e&&!f)?[2,c(L,O,(k.route=e,k))]:(I={},"/api"===e||e.startsWith("/api/")?(J((I.url=a,I.router=m,I)),[2,new Promise((function(){}))]):(D=j)?[3,4]:[4,m.fetchComponent(e).then((function(e){return{Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP,__N_RSC:!!e.mod.__next_rsc__}}))]));case 3:D=te.sent(),te.label=4;case 4:return q=(N=D).__N_RSC&&N.__N_SSP,Z=N.__N_SSG||N.__N_SSP||N.__N_RSC,[4,m._getData(u((function(){var e,t,u,c,s,f,d,v;return i(this,(function(i){switch(i.label){case 0:return!Z||q?[3,4]:(null==A?void 0:A.json)?(c=A,[3,3]):[3,1];case 1:return[4,Q(((s={}).dataHref=m.pageLoader.getDataHref({href:x.formatWithValidation({pathname:r,query:n}),asPath:o,locale:l}),s.isServerRender=m.isSsr,s.parseJSON=!0,s.inflightCache=m.sdc,s.persistCache=!p,s.isPrefetch=!1,s.unstable_skipClientCache=h,s))];case 2:c=i.sent(),i.label=3;case 3:return t=(e=c).json,u=e.cacheKey,[2,((f={}).cacheKey=u,f.props=t||{},f)];case 4:return d={headers:{},cacheKey:""},v={},[4,m.getInitialProps(N.Component,(v.pathname=r,v.query=n,v.asPath=a,v.locale=l,v.locales=m.locales,v.defaultLocale=m.defaultLocale,v))];case 5:return[2,(d.props=i.sent(),d)]}}))})))];case 5:return U=te.sent(),H=U.props,F=U.cacheKey,N.__N_SSP&&M.dataHref&&delete m.sdc[F],W={},z={},!m.isPreview&&N.__N_SSG&&Q(Object.assign(W,M,(z.isBackground=!0,z.persistCache=!1,z.inflightCache=K,z))).catch((function(){})),N.__N_RSC?($={},q?[4,m._getData((function(){return m._getFlightData(x.formatWithValidation({query:c({},n,{__flight__:"1"}),pathname:b.isDynamicRoute(e)?B(r,P.parseRelativeUrl(o).pathname,n).result:r}))}))]:[3,7]):[3,9];case 6:return X=te.sent().data,[3,8];case 7:X=H.__flight__,te.label=8;case 8:$.__flight__=X,V=$,te.label=9;case 9:return H.pageProps=Object.assign({},H.pageProps,V),N.props=H,N.route=e,N.query=n,N.resolvedAs=o,m.components[e]=N,[2,N];case 10:return Y=te.sent(),[2,m.handleRouteInfoError(v.getProperError(Y),r,n,a,s)];case 11:return[2]}}))}))()}},{key:"set",value:function(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}},{key:"beforePopState",value:function(e){this._bps=e}},{key:"onlyAHashChange",value:function(e){if(!this.asPath)return!1;var t=o(this.asPath.split("#"),2),r=t[0],n=t[1],a=o(e.split("#"),2),i=a[0],u=a[1];return!(!u||r!==i||n!==u)||r===i&&n!==u}},{key:"scrollToHash",value:function(e){var t=o(e.split("#"),2)[1],r=void 0===t?"":t;if(""!==r&&"top"!==r){var n=decodeURIComponent(r),a=document.getElementById(n);if(a)a.scrollIntoView();else{var i=document.getElementsByName(n)[0];i&&i.scrollIntoView()}}else window.scrollTo(0,0)}},{key:"urlIsNew",value:function(e){return this.asPath!==e}},{key:"prefetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this;return u((function(){var a,o,u,c,s,l,f,h,v,m,y;return i(this,(function(i){switch(i.label){case 0:return a=P.parseRelativeUrl(e),o=a.pathname,u=a.query,[4,n.pageLoader.getPageList()];case 1:return c=i.sent(),s=t,l="undefined"!==typeof r.locale?r.locale||void 0:n.locale,t.startsWith("/")?[4,p.getClientBuildManifest()]:[3,3];case 2:if(h=i.sent(),f=h.__rewrites,(v=S.default(A.addBasePath(M.addLocale(t,n.locale),!0),c,f,a.query,(function(e){return z(e,c)}),n.locales)).externalDest)return[2];s=R.removeLocale(C.removeBasePath(v.asPath),n.locale),v.matchedPage&&v.resolvedHref&&(o=v.resolvedHref,a.pathname=o,e=x.formatWithValidation(a)),i.label=3;case 3:return a.pathname=z(a.pathname,c),m={},b.isDynamicRoute(a.pathname)&&(o=a.pathname,a.pathname=o,Object.assign(u,E.getRouteMatcher(O.getRouteRegex(a.pathname))(j.parsePath(t).pathname)||m),e=x.formatWithValidation(a)),y=d.removeTrailingSlash(o),[4,Promise.all([n.pageLoader._isSsg(y).then((function(t){return!!t&&Q({dataHref:n.pageLoader.getDataHref({href:e,asPath:s,locale:l}),isServerRender:!1,parseJSON:!0,inflightCache:n.sdc,persistCache:!n.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then((function(){return!1}))})),n.pageLoader[r.priority?"loadPage":"prefetch"](y)])];case 4:return i.sent(),[2]}}))}))()}},{key:"fetchComponent",value:function(e){var t=this;return u((function(){var r,n,a,o;return i(this,(function(i){switch(i.label){case 0:r=ee(((n={}).route=e,n.router=t,n)),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,t.pageLoader.loadPage(e)];case 2:return a=i.sent(),r(),[2,a];case 3:throw o=i.sent(),r(),o;case 4:return[2]}}))}))()}},{key:"_getData",value:function(e){var t=this,r=!1,n=function(){r=!0};return this.clc=n,e().then((function(e){if(n===t.clc&&(t.clc=null),r){var a=new Error("Loading initial props cancelled");throw a.cancelled=!0,a}return e}))}},{key:"_getFlightData",value:function(e){return Q({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then((function(e){return{data:e.text}}))}},{key:"getInitialProps",value:function(e,t){var r=this.components["/_app"].Component,n=this._wrapApp(r);return t.AppTree=n,_.loadGetInitialProps(r,{AppTree:n,Component:e,router:this,ctx:t})}},{key:"route",get:function(){return this.state.route}},{key:"pathname",get:function(){return this.state.pathname}},{key:"query",get:function(){return this.state.query}},{key:"asPath",get:function(){return this.state.asPath}},{key:"locale",get:function(){return this.state.locale}},{key:"isFallback",get:function(){return this.state.isFallback}},{key:"isPreview",get:function(){return this.state.isPreview}}]),e}();te.events=g.default(),t.default=te},77459:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLocale=function(e,t,r,o){if(t&&t!==r&&(o||!a.pathHasPrefix(e.toLowerCase(),"/".concat(t.toLowerCase()))&&!a.pathHasPrefix(e.toLowerCase(),"/api")))return n.addPathPrefix(e,"/".concat(t));return e};var n=r(95391),a=r(1259)},95391:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPathPrefix=function(e,t){if(!e.startsWith("/")||!t)return e;var r=n.parsePath(e),a=r.pathname,o=r.query,i=r.hash;return"".concat(t).concat(a).concat(o).concat(i)};var n=r(4943)},84156:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPathSuffix=function(e,t){if(!e.startsWith("/")||!t)return e;var r=n.parsePath(e),a=r.pathname,o=r.query,i=r.hash;return"".concat(a).concat(t).concat(o).concat(i)};var n=r(4943)},610:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareRouterStates=function(e,t){var r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(var n=r.length;n--;){var a=r[n];if("query"===a){var o=Object.keys(e.query);if(o.length!==Object.keys(t.query).length)return!1;for(var i=o.length;i--;){var u=o[i];if(!t.query.hasOwnProperty(u)||e.query[u]!==t.query[u])return!1}}else if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}},34022:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNextPathnameInfo=function(e){var t=i.addLocale(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);e.buildId&&(t=o.addPathSuffix(a.addPathPrefix(t,"/_next/data/".concat(e.buildId)),"/"===e.pathname?"index.json":".json"));return t=a.addPathPrefix(t,e.basePath),e.trailingSlash?e.buildId||t.endsWith("/")?t:o.addPathSuffix(t,"/"):n.removeTrailingSlash(t)};var n=r(86316),a=r(95391),o=r(84156),i=r(77459)},4611:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=o,t.formatWithValidation=function(e){0;return o(e)},t.urlObjectKeys=void 0;var n=(0,r(91598).Z)(r(50466)),a=/https?|ftp|gopher|file/;function o(e){var t=e.auth,r=e.hostname,o=e.protocol||"",i=e.pathname||"",u=e.hash||"",c=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"[".concat(r,"]"):r),e.port&&(s+=":"+e.port)),c&&"object"===typeof c&&(c=String(n.urlQueryToSearchParams(c)));var l=e.search||c&&"?".concat(c)||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||a.test(o))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),l&&"?"!==l[0]&&(l="?"+l),i=i.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),"".concat(o).concat(s).concat(i).concat(l).concat(u)}t.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"]},73891:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index".concat(e):"".concat(e);return r+t}},20159:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNextPathnameInfo=function(e,t){var r,i=null!=(r=t.nextConfig)?r:{},u=i.basePath,c=i.i18n,s=i.trailingSlash,l={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};u&&o.pathHasPrefix(l.pathname,u)&&(l.pathname=a.removePathPrefix(l.pathname,u),l.basePath=u);if(!0===t.parseData&&l.pathname.startsWith("/_next/data/")&&l.pathname.endsWith(".json")){var f=l.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),d=f[0];l.pathname="index"!==f[1]?"/".concat(f.slice(1).join("/")):"/",l.buildId=d}if(c){var p=n.normalizeLocalePath(l.pathname,c.locales);l.locale=null==p?void 0:p.detectedLocale,l.pathname=(null==p?void 0:p.pathname)||l.pathname}return l};var n=r(94317),a=r(9244),o=r(1259)},90418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n.getSortedRoutes}}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a.isDynamicRoute}});var n=r(53907),a=r(78689)},78689:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicRoute=function(e){return r.test(e)};var r=/\/\[[^/]+?\](?=\/|$)/},4943:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parsePath=function(e){var t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1)return{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""};return{pathname:e,query:"",hash:""}}},36305:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelativeUrl=function(e,t){var r=new URL(n.getLocationOrigin()),o=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,i=new URL(e,o),u=i.pathname,c=i.searchParams,s=i.search,l=i.hash,f=i.href;if(i.origin!==r.origin)throw new Error("invariant: invalid relative URL, router received ".concat(e));return{pathname:u,query:a.searchParamsToUrlQuery(c),search:s,hash:l,href:f.slice(r.origin.length)}};var n=r(63794),a=r(50466)},91961:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUrl=function(e){if(e.startsWith("/"))return a.parseRelativeUrl(e);var t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:n.searchParamsToUrlQuery(t.searchParams),search:t.search}};var n=r(50466),a=r(36305)},1259:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pathHasPrefix=function(e,t){if("string"!==typeof e)return!1;var r=n.parsePath(e).pathname;return r===t||r.startsWith(t+"/")};var n=r(4943)},66641:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathMatch=function(e,t){var r=[],o=a.pathToRegexp(e,r,{delimiter:"/",sensitive:!1,strict:null==t?void 0:t.strict}),i=a.regexpToFunction((null==t?void 0:t.regexModifier)?new RegExp(t.regexModifier(o.source),o.flags):o,r);return function(e,a){var o=null!=e&&i(e);if(!o)return!1;if(null==t?void 0:t.removeUnnamedParams){var u=!0,c=!1,s=void 0;try{for(var l,f=r[Symbol.iterator]();!(u=(l=f.next()).done);u=!0){var d=l.value;"number"===typeof d.name&&delete o.params[d.name]}}catch(p){c=!0,s=p}finally{try{u||null==f.return||f.return()}finally{if(c)throw s}}}return n({},a,o.params)}};var n=r(6495).Z,a=r(74329)},11929:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(94941).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.matchHas=function(e,t,r){var n={};if(t.every((function(t){var a,o=t.key;switch(t.type){case"header":o=o.toLowerCase(),a=e.headers[o];break;case"cookie":a=e.cookies[t.key];break;case"query":a=r[o];break;case"host":var i=((null==e?void 0:e.headers)||{}).host;a=null==i?void 0:i.split(":")[0].toLowerCase()}if(!t.value&&a)return n[function(e){for(var t="",r=0;r64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(o)]=a,!0;if(a){var u=new RegExp("^".concat(t.value,"$")),c=Array.isArray(a)?a.slice(-1)[0].match(u):a.match(u);if(c)return Array.isArray(c)&&(c.groups?Object.keys(c.groups).forEach((function(e){n[e]=c.groups[e]})):"host"===t.type&&c[0]&&(n.host=c[0])),!0}return!1})))return n;return!1},t.compileNonPath=s,t.prepareDestination=function(e){var t=Object.assign({},e.query);delete t.__nextLocale,delete t.__nextDefaultLocale,delete t.__nextDataReq;var r=e.destination,l=!0,f=!1,d=void 0;try{for(var p,h=Object.keys(a({},e.params,t))[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var v=p.value;m=v,r=r.replace(new RegExp(":".concat(i.escapeStringRegexp(m)),"g"),"__ESC_COLON_".concat(m))}}catch(z){f=!0,d=z}finally{try{l||null==h.return||h.return()}finally{if(f)throw d}}var m;var y=u.parseUrl(r),g=y.query,_=c("".concat(y.pathname).concat(y.hash||"")),b=c(y.hostname||""),P=[],w=[];o.pathToRegexp(_,P),o.pathToRegexp(b,w);var S=[];P.forEach((function(e){return S.push(e.name)})),w.forEach((function(e){return S.push(e.name)}));var E=o.compile(_,{validate:!1}),O=o.compile(b,{validate:!1}),x=!0,j=!1,M=void 0;try{for(var R,C=Object.entries(g)[Symbol.iterator]();!(x=(R=C.next()).done);x=!0){var A=n(R.value,2),T=A[0],L=A[1];Array.isArray(L)?g[T]=L.map((function(t){return s(c(t),e.params)})):g[T]=s(c(L),e.params)}}catch(z){j=!0,M=z}finally{try{x||null==C.return||C.return()}finally{if(j)throw M}}var k,I=Object.keys(e.params).filter((function(e){return"nextInternalLocale"!==e}));if(e.appendParamsToQuery&&!I.some((function(e){return S.includes(e)}))){var N=!0,D=!1,q=void 0;try{for(var Z,U=I[Symbol.iterator]();!(N=(Z=U.next()).done);N=!0){var H=Z.value;H in g||(g[H]=e.params[H])}}catch(z){D=!0,q=z}finally{try{N||null==U.return||U.return()}finally{if(D)throw q}}}try{k=E(e.params);var B=n(k.split("#"),2),F=B[0],W=B[1];y.hostname=O(e.params),y.pathname=F,y.hash="".concat(W?"#":"").concat(W||""),delete y.search}catch(G){if(G.message.match(/Expected .*? to not repeat, but got an array/))throw new Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match");throw G}return y.query=a({},t,y.query),{newUrl:k,destQuery:g,parsedDestination:y}};var a=r(6495).Z,o=r(74329),i=r(10489),u=r(91961);function c(e){return e.replace(/__ESC_COLON_/gi,":")}function s(e,t){if(!e.includes(":"))return e;var r=!0,n=!1,a=void 0;try{for(var i,u=Object.keys(t)[Symbol.iterator]();!(r=(i=u.next()).done);r=!0){var c=i.value;e.includes(":".concat(c))&&(e=e.replace(new RegExp(":".concat(c,"\\*"),"g"),":".concat(c,"--ESCAPED_PARAM_ASTERISKS")).replace(new RegExp(":".concat(c,"\\?"),"g"),":".concat(c,"--ESCAPED_PARAM_QUESTION")).replace(new RegExp(":".concat(c,"\\+"),"g"),":".concat(c,"--ESCAPED_PARAM_PLUS")).replace(new RegExp(":".concat(c,"(?!\\w)"),"g"),"--ESCAPED_PARAM_COLON".concat(c)))}}catch(s){n=!0,a=s}finally{try{r||null==u.return||u.return()}finally{if(n)throw a}}return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),o.compile("/".concat(e),{validate:!1})(t).slice(1)}},50466:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(94941).Z;function a(e){return"string"===typeof e||"number"===typeof e&&!isNaN(e)||"boolean"===typeof e?String(e):""}Object.defineProperty(t,"__esModule",{value:!0}),t.searchParamsToUrlQuery=function(e){var t={};return e.forEach((function(e,r){"undefined"===typeof t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]})),t},t.urlQueryToSearchParams=function(e){var t=new URLSearchParams;return Object.entries(e).forEach((function(e){var r=n(e,2),o=r[0],i=r[1];Array.isArray(i)?i.forEach((function(e){return t.append(o,a(e))})):t.set(o,a(i))})),t},t.assign=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n122&&(t++,e=97);return r}}(),n={};return{namedParameterizedRoute:t.map((function(e){if(e.startsWith("[")&&e.endsWith("]")){var t=i(e.slice(1,-1)),o=t.key,u=t.optional,c=t.repeat,s=o.replace(/\W/g,""),l=!1;return(0===s.length||s.length>30)&&(l=!0),isNaN(parseInt(s.slice(0,1)))||(l=!0),l&&(s=r()),n[s]=o,c?u?"(?:/(?<".concat(s,">.+?))?"):"/(?<".concat(s,">.+?)"):"/(?<".concat(s,">[^/]+?)")}return"/".concat(a.escapeStringRegexp(e))})).join(""),routeKeys:n}}},53907:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(79658).Z,a=r(7222).Z,o=r(53929).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedRoutes=function(e){var t=new i;return e.forEach((function(e){return t.insert(e)})),t.smoosh()};var i=function(){function e(){n(this,e),this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}return a(e,[{key:"insert",value:function(e){this._insert(e.split("/").filter(Boolean),[],!1)}},{key:"smoosh",value:function(){return this._smoosh()}},{key:"_smoosh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=this,r=o(this.children.keys()).sort();null!==this.slugName&&r.splice(r.indexOf("[]"),1),null!==this.restSlugName&&r.splice(r.indexOf("[...]"),1),null!==this.optionalRestSlugName&&r.splice(r.indexOf("[[...]]"),1);var n,a,i,u=r.map((function(r){return t.children.get(r)._smoosh("".concat(e).concat(r,"/"))})).reduce((function(e,t){return o(e).concat(o(t))}),[]);null!==this.slugName&&(n=u).push.apply(n,o(this.children.get("[]")._smoosh("".concat(e,"[").concat(this.slugName,"]/"))));if(!this.placeholder){var c="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'.concat(c,'" and "').concat(c,"[[...").concat(this.optionalRestSlugName,']]").'));u.unshift(c)}null!==this.restSlugName&&(a=u).push.apply(a,o(this.children.get("[...]")._smoosh("".concat(e,"[...").concat(this.restSlugName,"]/"))));null!==this.optionalRestSlugName&&(i=u).push.apply(i,o(this.children.get("[[...]]")._smoosh("".concat(e,"[[...").concat(this.optionalRestSlugName,"]]/"))));return u}},{key:"_insert",value:function(t,r,n){if(0!==t.length){if(n)throw new Error("Catch-all must be the last part of the URL.");var a=t[0];if(a.startsWith("[")&&a.endsWith("]")){var o=function(e,t){if(null!==e&&e!==t)throw new Error("You cannot use different slug names for the same dynamic path ('".concat(e,"' !== '").concat(t,"')."));r.forEach((function(e){if(e===t)throw new Error('You cannot have the same slug name "'.concat(t,'" repeat within a single dynamic path'));if(e.replace(/\W/g,"")===a.replace(/\W/g,""))throw new Error('You cannot have the slug names "'.concat(e,'" and "').concat(t,'" differ only by non-word symbols within a single dynamic path'))})),r.push(t)},i=a.slice(1,-1),u=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),u=!0),i.startsWith("...")&&(i=i.substring(3),n=!0),i.startsWith("[")||i.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('".concat(i,"')."));if(i.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('".concat(i,"')."));if(n)if(u){if(null!=this.restSlugName)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'.concat(this.restSlugName,']" and "').concat(t[0],'" ).'));o(this.optionalRestSlugName,i),this.optionalRestSlugName=i,a="[[...]]"}else{if(null!=this.optionalRestSlugName)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'.concat(this.optionalRestSlugName,']]" and "').concat(t[0],'").'));o(this.restSlugName,i),this.restSlugName=i,a="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'.concat(t[0],'").'));o(this.slugName,i),this.slugName=i,a="[]"}}this.children.has(a)||this.children.set(a,new e),this.children.get(a)._insert(t.slice(1),r,n)}else this.placeholder=!1}}]),e}()},88027:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.setConfig=function(e){r=e},t.default=void 0;t.default=function(){return r},("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},55188:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=function(){if(r&&r.mountedInstances){var t=n.Children.toArray(Array.from(r.mountedInstances).filter(Boolean));r.updateHead(u(t,e))}},r=e.headManager,u=e.reduceComponentsToState;if(a){var c;null==r||null==(c=r.mountedInstances)||c.add(e.children),t()}return o((function(){var t;return null==r||null==(t=r.mountedInstances)||t.add(e.children),function(){var t;null==r||null==(t=r.mountedInstances)||t.delete(e.children)}})),o((function(){return r&&(r._pendingUpdate=t),function(){r&&(r._pendingUpdate=t)}})),i((function(){return r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null),function(){r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null)}})),null};var n=(0,r(91598).Z)(r(67294));var a=!1,o=a?function(){}:n.useLayoutEffect,i=a?function(){}:n.useEffect},63794:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(79658).Z,a=r(97788).Z,o=r(53929).Z,i=r(79968).Z,u=r(37735).Z,c=r(32401).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.execOnce=function(e){var t,r=!1;return function(){for(var n=arguments.length,a=new Array(n),i=0;i=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;i+=e[u++]}if(!i)throw new TypeError("Missing parameter name at "+r);t.push({type:"NAME",index:r,value:i}),r=u}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,a=void 0===n?"./":n,i="[^"+o(t.delimiter||"/#?")+"]+?",u=[],c=0,s=0,l="",f=function(e){if(s-1:void 0===w;a||(v+="(?:"+h+"(?="+p+"))?"),S||(v+="(?="+h+"|"+p+")")}return new RegExp(v,i(r))}function c(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n=0?n="back-forward-cache":r&&(n=document.prerendering||f()>0?"prerender":r.type.replace(/_/g,"-")),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},p=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){t(e.getEntries())}));return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},h=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},v=function(e,t,r,n){var a,o;return function(i){t.value>=0&&(i||n)&&((o=t.value-(a||0))||void 0===a)&&(a=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,r),e(t))}},m=-1,y=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},g=function(){h((function(e){var t=e.timeStamp;m=t}),!0)},_=function(){return m<0&&(m=y(),g(),s((function(){setTimeout((function(){m=y(),g()}),0)}))),{get firstHiddenTime(){return m}}},b=function(e,t){t=t||{};var r,n=[1800,3e3],a=_(),o=d("FCP"),i=function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(c&&c.disconnect(),e.startTime-1&&e(t)},o=d("CLS",0),i=0,u=[],c=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=u[0],r=u[u.length-1];i&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(i+=e.value,u.push(e)):(i=e.value,u=[e]),i>o.value&&(o.value=i,o.entries=u,n())}}))},l=p("layout-shift",c);l&&(n=v(a,o,r,t.reportAllChanges),h((function(){c(l.takeRecords()),n(!0)})),s((function(){i=0,w=-1,o=d("CLS",0),n=v(a,o,r,t.reportAllChanges)})))},E={passive:!0,capture:!0},O=new Date,x=function(e,t){n||(n=t,a=e,o=new Date,R(removeEventListener),j())},j=function(){if(a>=0&&a1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var r=function(){x(e,t),a()},n=function(){a()},a=function(){removeEventListener("pointerup",r,E),removeEventListener("pointercancel",n,E)};addEventListener("pointerup",r,E),addEventListener("pointercancel",n,E)}(t,e):x(t,e)}},R=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,M,E)}))},C=function(e,t){t=t||{};var r,o=[100,300],u=_(),c=d("FID"),l=function(e){e.startTimet.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};Z[n.id]=n,q.push(n)}q.sort((function(e,t){return t.latency-e.latency})),q.splice(10).forEach((function(e){delete Z[e.id]}))}},H=function(e,t){t=t||{};var r=[200,500];"interactionCount"in performance||u||(u=p("event",k,{type:"event",buffered:!0,durationThreshold:0}));var n,a=d("INP"),o=function(e){e.forEach((function(e){e.interactionId&&U(e),"first-input"===e.entryType&&!q.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&U(e)}));var t,r=(t=Math.min(q.length-1,Math.floor(D()/50)),q[t]);r&&r.latency!==a.value&&(a.value=r.latency,a.entries=r.entries,n())},i=p("event",o,{durationThreshold:t.durationThreshold||40});n=v(e,a,r,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),h((function(){o(i.takeRecords()),a.value<0&&D()>0&&(a.value=0,a.entries=[]),n(!0)})),s((function(){q=[],N=I(),a=d("INP"),n=v(e,a,r,t.reportAllChanges)})))},B={},F=function(e,t){t=t||{};var r,n=[2500,4e3],a=_(),o=d("LCP"),i=function(e){var t=e[e.length-1];if(t){var n=t.startTime-f();nperformance.now())return;n.entries=[o],a(!0),s((function(){n=d("TTFB",0),(a=v(e,n,r,t.reportAllChanges))(!0)}))}}))};e.exports=r}()},80676:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,t.getProperError=function(e){if(a(e))return e;0;return new Error(n.isPlainObject(e)?JSON.stringify(e):e+"")};var n=r(88887);function a(e){return"object"===typeof e&&null!==e&&"name"in e&&"message"in e}},70655:function(e,t,r){"use strict";r.r(t),r.d(t,{__assign:function(){return o},__asyncDelegator:function(){return P},__asyncGenerator:function(){return b},__asyncValues:function(){return w},__await:function(){return _},__awaiter:function(){return l},__classPrivateFieldGet:function(){return j},__classPrivateFieldIn:function(){return R},__classPrivateFieldSet:function(){return M},__createBinding:function(){return d},__decorate:function(){return u},__exportStar:function(){return p},__extends:function(){return a},__generator:function(){return f},__importDefault:function(){return x},__importStar:function(){return O},__makeTemplateObject:function(){return S},__metadata:function(){return s},__param:function(){return c},__read:function(){return v},__rest:function(){return i},__spread:function(){return m},__spreadArray:function(){return g},__spreadArrays:function(){return y},__values:function(){return h}});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;u--)(a=e[u])&&(i=(o<3?a(i):o>3?a(t,r,i):a(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function c(e,t){return function(r,n){t(r,n,e)}}function s(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))((function(a,o){function i(e){try{c(n.next(e))}catch(t){o(t)}}function u(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?a(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,u)}c((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(o){return function(u){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,n=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]=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 v(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(u){a={error:u}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i}function m(){for(var e=[],t=0;t1||u(e,t)}))})}function u(e,t){try{(r=a[e](t)).value instanceof _?Promise.resolve(r.value.v).then(c,s):l(o[0][2],r)}catch(n){l(o[0][3],n)}var r}function c(e){u("next",e)}function s(e){u("throw",e)}function l(e,t){e(t),o.shift(),o.length&&u(o[0][0],o[0][1])}}function P(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,a){t[n]=e[n]?function(t){return(r=!r)?{value:_(e[n](t)),done:"return"===n}:a?a(t):t}:a}}function w(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,a){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,a,(t=e[r](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&d(t,e,r);return E(t,e),t}function x(e){return e&&e.__esModule?e:{default:e}}function j(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function M(e,t,r,n,a){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?a.call(e,r):a?a.value=r:t.set(e,r),r}function R(e,t){if(null===t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}}},function(e){e.O(0,[9774],(function(){return t=22870,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/main-43d3d12d262e745e.js b/static/web/_next/static/chunks/main-43d3d12d262e745e.js deleted file mode 100644 index 6f151ac39..000000000 --- a/static/web/_next/static/chunks/main-43d3d12d262e745e.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[179],{25300:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(a[r]=e[r]);return a}},29241:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t&&("object"===a.default(t)||"function"===typeof t))return t;return n.default(e)};var n=o(r(48646)),a=o(r(45753));function o(e){return e&&e.__esModule?e:{default:e}}},35814:function(e,t){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return r(e,t)}},94941:function(e,t,r){"use strict";t.Z=function(e,t){return n.default(e)||a.default(e,t)||i.default(e,t)||o.default()};var n=u(r(46564)),a=u(r(21301)),o=u(r(16936)),i=u(r(72149));function u(e){return e&&e.__esModule?e:{default:e}}},36678:function(e,t,r){"use strict";t.Z=function(e){return n.default(e)||a.default(e)||u.default(e,i)||o.default()};var n=c(r(46564)),a=c(r(21301)),o=c(r(16936)),u=c(r(72149));function c(e){return e&&e.__esModule?e:{default:e}}},53929:function(e,t,r){"use strict";t.Z=function(e){return n.default(e)||a.default(e)||i.default(e)||o.default()};var n=u(r(82568)),a=u(r(21301)),o=u(r(34162)),i=u(r(72149));function u(e){return e&&e.__esModule?e:{default:e}}},45753:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e&&e.constructor===Symbol?"symbol":typeof e}},72149:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)return;if("string"===typeof e)return a.default(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a.default(e,t)};var n,a=(n=r(25300))&&n.__esModule?n:{default:n}},79968:function(e,t,r){"use strict";t.Z=function(e){return c(e)};var n=u(r(5317)),a=u(r(4499)),o=u(r(20898)),i=u(r(35814));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){var t="function"===typeof Map?new Map:void 0;return c=function(e){if(null===e||!a.default(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return n.default(e,arguments,o.default(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i.default(r,e)},c(e)}},96086:function(e){"use strict";var t=Object.assign.bind(Object);e.exports=t,e.exports.default=e.exports},40037:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce((function(e,t){return e[t[0]]=t[1],e}),{})})},98684:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addBasePath=function(e,t){0;return a.normalizePathTrailingSlash(n.addPathPrefix(e,""))};var n=r(95391),a=r(82392);("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},22725:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});r(53929).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.addLocale=void 0;r(82392);t.addLocale=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&void 0!==a[0]?a[0]:{},N=JSON.parse(document.getElementById("__NEXT_DATA__").textContent),window.__NEXT_DATA__=N,G=N.defaultLocale,t=N.assetPrefix||"",r.p="".concat(t,"/_next/"),P.setConfig({serverRuntimeConfig:{},publicRuntimeConfig:N.runtimeConfig||{}}),I=w.getURL(),A.hasBasePath(I)&&(I=C.removeBasePath(I)),N.scriptLoader&&(0,r(20699).initScriptLoader)(N.scriptLoader),D=new S.default(N.buildId,t),n=function(e){var t=c(e,2),r=t[0],n=t[1];return D.routeLoader.onEntrypoint(r,n)},window.__NEXT_P&&window.__NEXT_P.map((function(e){return setTimeout((function(){return n(e)}),0)})),window.__NEXT_P=[],window.__NEXT_P.push=n,(Z=E.default()).getIsSsr=function(){return h.isSsr},q=document.getElementById("__next"),e.abrupt("return",{assetPrefix:t});case 21:case"end":return e.stop()}}),e)}))),X.apply(this,arguments)}var Q=function(e){return function(t){var r=d({},t,{Component:W,err:N.err,router:h});return v.default.createElement(oe,null,ie(e,r))}};function Y(){return(Y=f(l.default.mark((function e(r){var n,a,o,i,u,c;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=N.err,e.prev=1,e.next=4,D.routeLoader.whenEntrypoint("/_app");case 4:if(!("error"in(a=e.sent))){e.next=7;break}throw a.error;case 7:o=a.component,i=a.exports,F=o,i&&i.reportWebVitals&&(B=function(e){var t,r=e.id,n=e.name,a=e.startTime,o=e.value,u=e.duration,c=e.entryType,s=e.entries,l="".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12);s&&s.length&&(t=s[0].startTime);var f={id:r||l,name:n,startTime:a||t,value:null==o?u:o,label:"mark"===c||"measure"===c?"custom":"web-vital"};i.reportWebVitals(f)}),e.next=14;break;case 14:return e.next=16,D.routeLoader.whenEntrypoint(N.page);case 16:e.t0=e.sent;case 17:if(!("error"in(u=e.t0))){e.next=20;break}throw u.error;case 20:W=u.component,e.next=25;break;case 25:e.next=30;break;case 27:e.prev=27,e.t1=e.catch(1),n=M.getProperError(e.t1);case 30:if(!window.__NEXT_PRELOADREADY){e.next=34;break}return e.next=34,window.__NEXT_PRELOADREADY(N.dynamicIds);case 34:return t.router=h=R.createRouter(N.page,N.query,I,{initialProps:N.props,pageLoader:D,App:F,Component:W,wrapApp:Q,err:n,isFallback:Boolean(N.isFallback),subscription:function(e,t,r){return J(Object.assign({},e,{App:t,scroll:r}))},locale:N.locale,locales:N.locales,defaultLocale:G,domainLocales:N.domainLocales,isPreview:N.isPreview,isRsc:N.rsc}),e.next=37,h._initialMatchesMiddlewarePromise;case 37:if(V=e.sent,c={App:F,initial:!0,Component:W,props:N.props,err:n},!(null==r?void 0:r.beforeRender)){e.next=42;break}return e.next=42,r.beforeRender();case 42:J(c);case 43:case"end":return e.stop()}}),e,null,[[1,27]])})))).apply(this,arguments)}function J(e){return K.apply(this,arguments)}function K(){return(K=f(l.default.mark((function e(t){var r;return l.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.err){e.next=4;break}return e.next=3,ee(t);case 3:return e.abrupt("return");case 4:return e.prev=4,e.next=7,ue(t);case 7:e.next=17;break;case 9:if(e.prev=9,e.t0=e.catch(4),!(r=M.getProperError(e.t0)).cancelled){e.next=14;break}throw r;case 14:return e.next=17,ee(d({},t,{err:r}));case 17:case"end":return e.stop()}}),e,null,[[4,9]])})))).apply(this,arguments)}function ee(e){var t=e.App,n=e.err;return console.error(n),console.error("A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred"),D.loadPage("/_error").then((function(n){var a=n.page,o=n.styleSheets;return(null==H?void 0:H.Component)===a?Promise.resolve().then((function(){return u(r(89185))})).then((function(n){return Promise.resolve().then((function(){return u(r(46029))})).then((function(r){return t=r.default,e.App=t,n}))})).then((function(e){return{ErrorComponent:e.default,styleSheets:[]}})):{ErrorComponent:a,styleSheets:o}})).then((function(r){var a,o=r.ErrorComponent,i=r.styleSheets,u=Q(t),c={Component:o,AppTree:u,router:h,ctx:{err:n,pathname:N.page,query:N.query,asPath:I,AppTree:u}};return Promise.resolve((null==(a=e.props)?void 0:a.err)?e.props:w.loadGetInitialProps(t,c)).then((function(t){return ue(d({},e,{err:n,Component:o,styleSheets:i,props:t}))}))}))}var te=!0;function re(){w.ST&&(performance.mark("afterHydrate"),performance.measure("Next.js-before-hydration","navigationStart","beforeRender"),performance.measure("Next.js-hydration","beforeRender","afterHydrate"),B&&performance.getEntriesByName("Next.js-hydration").forEach(B),ae())}function ne(){if(w.ST){performance.mark("afterRender");var e=performance.getEntriesByName("routeChange","mark");e.length&&(performance.measure("Next.js-route-change-to-render",e[0].name,"beforeRender"),performance.measure("Next.js-render","beforeRender","afterRender"),B&&(performance.getEntriesByName("Next.js-render").forEach(B),performance.getEntriesByName("Next.js-route-change-to-render").forEach(B)),ae(),["Next.js-route-change-to-render","Next.js-render"].forEach((function(e){return performance.clearMeasures(e)})))}}function ae(){["beforeRender","afterHydrate","afterRender","routeChange"].forEach((function(e){return performance.clearMarks(e)}))}function oe(e){var t=e.children;return v.default.createElement($,{fn:function(e){return ee({App:F,err:e}).catch((function(e){return console.error("Error rendering page: ",e)}))}},v.default.createElement(g.RouterContext.Provider,{value:R.makePublicRouterInstance(h)},v.default.createElement(m.HeadManagerContext.Provider,{value:Z},v.default.createElement(k.ImageConfigContext.Provider,{value:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image/",loader:"default",dangerouslyAllowSVG:!1}},t))))}function ie(e,t){return v.default.createElement(e,Object.assign({},t))}function ue(e){var t=function(){s()},r=e.App,n=e.Component,a=e.props,o=e.err,i=e.__N_RSC,u="initial"in e?void 0:e.styleSheets;n=n||H.Component,a=a||H.props;var c=d({},a,{Component:!!i?undefined:n,err:o,router:h});H=c;var s,l=!1,f=new Promise((function(e,t){U&&U(),s=function(){U=null,e()},U=function(){l=!0,U=null;var e=new Error("Cancel rendering route");e.cancelled=!0,t(e)}}));!function(){if(!u)return!1;var e=z(document.querySelectorAll("style[data-n-href]")),t=new Set(e.map((function(e){return e.getAttribute("data-n-href")}))),r=document.querySelector("noscript[data-n-css]"),n=null==r?void 0:r.getAttribute("data-n-css");u.forEach((function(e){var r=e.href,a=e.text;if(!t.has(r)){var o=document.createElement("style");o.setAttribute("data-n-href",r),o.setAttribute("media","x"),n&&o.setAttribute("nonce",n),document.head.appendChild(o),o.appendChild(document.createTextNode(a))}}))}();var p=v.default.createElement(v.default.Fragment,null,v.default.createElement(se,{callback:function(){if(u&&!l){for(var t=new Set(u.map((function(e){return e.href}))),r=z(document.querySelectorAll("style[data-n-href]")),n=r.map((function(e){return e.getAttribute("data-n-href")})),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.ampFirst,r=void 0!==t&&t,n=e.hybrid,a=void 0!==n&&n,o=e.hasQuery,i=void 0!==o&&o;return r||a&&i}},10489:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeStringRegexp=function(e){if(r.test(e))return e.replace(n,"\\$&");return e};var r=/[|\\{}()[\]^$+*?.-]/,n=/[|\\{}()[\]^$+*?.-]/g},8404:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HeadManagerContext=void 0;var n=(0,r(92648).Z)(r(67294)).default.createContext({});t.HeadManagerContext=n},5443:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=l,t.default=void 0;var n=r(6495).Z,a=r(92648).Z,o=(0,r(91598).Z)(r(67294)),i=a(r(55188)),u=r(22227),c=r(8404),s=r(17363);r(63794);function l(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"===typeof t||"number"===typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((function(e,t){return"string"===typeof t||"number"===typeof t?e:e.concat(t)}),[])):e.concat(t)}var d=["name","httpEquiv","charSet","itemProp"];function p(e,t){return e.reduce(f,[]).reverse().concat(l(t.inAmpMode).reverse()).filter(function(){var e=new Set,t=new Set,r=new Set,n={};return function(a){var o=!0,i=!1;if(a.key&&"number"!==typeof a.key&&a.key.indexOf("$")>0){i=!0;var u=a.key.slice(a.key.indexOf("$")+1);e.has(u)?o=!1:e.add(u)}switch(a.type){case"title":case"base":t.has(a.type)?o=!1:t.add(a.type);break;case"meta":for(var c=0,s=d.length;c>>0,1)},emit:function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),o=1;o1&&n.status>=500?G(e,t-1,r):n}))}var V={};function $(e){var t,r=e.dataHref,n=e.inflightCache,a=e.isPrefetch,o=e.hasMiddleware,i=e.isServerRender,u=e.parseJSON,c=e.persistCache,s=e.isBackground,l=e.unstable_skipClientCache,f=new URL(r,window.location.href).href,d=function(e){return G(r,i?3:1,{headers:a?{purpose:"prefetch"}:{},method:null!=(t=null==e?void 0:e.method)?t:"GET"}).then((function(t){return t.ok&&"HEAD"===(null==e?void 0:e.method)?{dataHref:r,response:t,text:"",json:{}}:t.text().then((function(e){if(!t.ok){if(o&&[301,302,307,308].includes(t.status))return{dataHref:r,response:t,text:e,json:{}};var n;if(!o&&404===t.status)if(null==(n=X(e))?void 0:n.notFound)return{dataHref:r,json:{notFound:z},response:t,text:e};var a=new Error("Failed to load static props");throw i||h.markAssetError(a),a}return{dataHref:r,json:u?X(e):null,response:t,text:e}}))})).then((function(e){return c&&"no-cache"!==e.response.headers.get("x-middleware-cache")||delete n[f],e})).catch((function(e){throw delete n[f],e}))};return l&&c?d({}).then((function(e){return n[f]=Promise.resolve(e),e})):void 0!==n[f]?n[f]:n[f]=d(s?{method:"HEAD"}:{})}function X(e){try{return JSON.parse(e)}catch(t){return null}}function Q(){return Math.random().toString(36).slice(2,10)}function Y(e){var t=e.url,r=e.router;if(t===A.addBasePath(M.addLocale(r.asPath,r.locale)))throw new Error("Invariant: attempted to hard navigate to the same URL ".concat(t," ").concat(location.href));window.location.href=t}var J=function(e){var t=e.route,r=e.router,n=!1,a=r.clc=function(){n=!0};return function(){if(n){var e=new Error('Abort fetching component for route: "'.concat(t,'"'));throw e.cancelled=!0,e}a===r.clc&&(r.clc=null)}},K=function(){function e(t,r,a,o){var i=o.initialProps,u=o.pageLoader,c=o.App,s=o.wrapApp,l=o.Component,f=o.err,d=o.subscription,h=o.isFallback,v=o.locale,m=(o.locales,o.defaultLocale,o.domainLocales,o.isPreview),y=o.isRsc,g=this;n(this,e),this.sdc={},this.isFirstPopStateEvent=!0,this._key=Q(),this.onPopState=function(e){var t=g.isFirstPopStateEvent;g.isFirstPopStateEvent=!1;var r=e.state;if(r){if(r.__NA)window.location.reload();else if(r.__N&&(!t||g.locale!==r.options.locale||r.as!==g.asPath)){var n=r.url,a=r.as,o=r.options,i=r.key;g._key=i;var u=w.parseRelativeUrl(n).pathname;g.isSsr&&a===A.addBasePath(g.asPath)&&u===A.addBasePath(g.pathname)||g._bps&&!g._bps(r)||g.change("replaceState",n,a,Object.assign({},o,{shallow:o.shallow&&g._shallow,locale:o.locale||g.defaultLocale,_h:0}),undefined)}}else{var c=g.pathname,s=g.query;g.changeState("replaceState",j.formatWithValidation({pathname:A.addBasePath(c),query:s}),b.getURL())}};var _=p.removeTrailingSlash(t);this.components={},"/_error"!==t&&(this.components[_]={Component:l,initial:!0,props:i,err:f,__N_SSG:i&&i.__N_SSG,__N_SSP:i&&i.__N_SSP,__N_RSC:!!y}),this.components["/_app"]={Component:c,styleSheets:[]},this.events=e.events,this.pageLoader=u;var x=P.isDynamicRoute(t)&&self.__NEXT_DATA__.autoExport;if(this.basePath="",this.sub=d,this.clc=null,this._wrapApp=s,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp||(!x&&self.location.search,0)),this.state={route:_,pathname:t,query:r,asPath:x?t:a,isPreview:!!m,locale:void 0,isFallback:h},this._initialMatchesMiddlewarePromise=Promise.resolve(!1),!a.startsWith("//")){var E={locale:v},S=b.getURL();this._initialMatchesMiddlewarePromise=ee({router:this,locale:v,asPath:S}).then((function(e){return E._shouldResolveHref=a!==t,g.changeState("replaceState",e?S:j.formatWithValidation({pathname:A.addBasePath(t),query:r}),S,E),e}))}window.addEventListener("popstate",this.onPopState)}return a(e,[{key:"reload",value:function(){window.location.reload()}},{key:"back",value:function(){window.history.back()}},{key:"push",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=(r=B(this,e,t)).url,t=r.as,this.change("pushState",e,t,n)}},{key:"replace",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=(r=B(this,e,t)).url,t=r.as,this.change("replaceState",e,t,n)}},{key:"change",value:function(t,r,n,a,o){var l=this;return c(u.default.mark((function c(){var f,d,y,g,_,x,T,N,U,F,G,V,$,X,Q,J,K,te,re,ne,ae,oe,ie,ue,ce,se,le,fe,de,pe,he,ve,me,ye,ge,_e,be,Pe,we,xe,Ee,Se,Oe,je,Re,Me,ke,Ce,Ae,Le,Te,Ne,Ie,De,qe,Ze,He;return u.default.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(q(r)){u.next=3;break}return Y({url:r,router:l}),u.abrupt("return",!1);case 3:if(f=a._h,d=f||a._shouldResolveHref||R.parsePath(r).pathname===R.parsePath(n).pathname,y=s({},l.state),g=!0!==l.isReady,l.isReady=!0,_=l.isSsr,f||(l.isSsr=!1),!f||!l.clc){u.next=12;break}return u.abrupt("return",!1);case 12:x=y.locale,u.next=25;break;case 25:if(b.ST&&performance.mark("routeChange"),T=a.shallow,N=void 0!==T&&T,U=a.scroll,F=void 0===U||U,G={shallow:N},l._inFlightRoute&&l.clc&&(_||e.events.emit("routeChangeError",D(),l._inFlightRoute,G),l.clc(),l.clc=null),n=A.addBasePath(M.addLocale(L.hasBasePath(n)?C.removeBasePath(n):n,a.locale,l.defaultLocale)),V=k.removeLocale(L.hasBasePath(n)?C.removeBasePath(n):n,y.locale),l._inFlightRoute=n,$=x!==y.locale,f||!l.onlyAHashChange(V)||$){u.next=49;break}return y.asPath=V,e.events.emit("hashChangeStart",n,G),l.changeState(t,r,n,s({},a,{scroll:!1})),F&&l.scrollToHash(V),u.prev=38,u.next=41,l.set(y,l.components[y.route],null);case 41:u.next=47;break;case 43:throw u.prev=43,u.t0=u.catch(38),m.default(u.t0)&&u.t0.cancelled&&e.events.emit("routeChangeError",u.t0,V,G),u.t0;case 47:return e.events.emit("hashChangeComplete",n,G),u.abrupt("return",!0);case 49:return X=w.parseRelativeUrl(r),Q=X.pathname,J=X.query,u.prev=52,u.t1=i,u.next=57,Promise.all([l.pageLoader.getPageList(),h.getClientBuildManifest(),l.pageLoader.getMiddleware()]);case 57:u.t2=u.sent,re=(0,u.t1)(u.t2,2),K=re[0],ne=re[1],te=ne.__rewrites,u.next=68;break;case 64:return u.prev=64,u.t3=u.catch(52),Y({url:n,router:l}),u.abrupt("return",!1);case 68:return l.urlIsNew(V)||$||(t="replaceState"),ae=n,Q=Q?p.removeTrailingSlash(C.removeBasePath(Q)):Q,u.next=73,ee({asPath:n,locale:y.locale,router:l});case 73:if(oe=u.sent,a.shallow&&oe&&(Q=l.pathname),!d||"/_error"===Q){u.next=87;break}if(a._shouldResolveHref=!0,!n.startsWith("/")){u.next=86;break}if(!(ie=E.default(A.addBasePath(M.addLocale(V,y.locale),!0),K,te,J,(function(e){return W(e,K)}),l.locales)).externalDest){u.next=82;break}return Y({url:n,router:l}),u.abrupt("return",!0);case 82:oe||(ae=ie.asPath),ie.matchedPage&&ie.resolvedHref&&(Q=ie.resolvedHref,X.pathname=A.addBasePath(Q),oe||(r=j.formatWithValidation(X))),u.next=87;break;case 86:X.pathname=W(Q,K),X.pathname!==Q&&(Q=X.pathname,X.pathname=A.addBasePath(Q),oe||(r=j.formatWithValidation(X)));case 87:if(q(n)){u.next=92;break}u.next=90;break;case 90:return Y({url:n,router:l}),u.abrupt("return",!1);case 92:if(ae=k.removeLocale(C.removeBasePath(ae),y.locale),ue=p.removeTrailingSlash(Q),ce=!1,!P.isDynamicRoute(ue)){u.next=110;break}if(se=w.parseRelativeUrl(ae),le=se.pathname,fe=O.getRouteRegex(ue),ce=S.getRouteMatcher(fe)(le),pe=(de=ue===le)?Z(ue,le,J):{},ce&&(!de||pe.result)){u.next=109;break}if(!((he=Object.keys(fe.groups).filter((function(e){return!J[e]}))).length>0)||oe){u.next=107;break}throw new Error((de?"The provided `href` (".concat(r,") value is missing query values (").concat(he.join(", "),") to be interpolated properly. "):"The provided `as` value (".concat(le,") is incompatible with the `href` value (").concat(ue,"). "))+"Read more: https://nextjs.org/docs/messages/".concat(de?"href-interpolation-failed":"incompatible-href-as"));case 107:u.next=110;break;case 109:de?n=j.formatWithValidation(Object.assign({},se,{pathname:pe.result,query:H(J,pe.params)})):Object.assign(J,ce);case 110:return f||e.events.emit("routeChangeStart",n,G),u.prev=111,u.next=115,l.getRouteInfo({route:ue,pathname:Q,query:J,as:n,resolvedAs:ae,routeProps:G,locale:y.locale,isPreview:y.isPreview,hasMiddleware:oe});case 115:if("route"in(ye=u.sent)&&oe&&(Q=ye.route||ue,ue=Q,G.shallow||(J=Object.assign({},ye.query||{},J)),ce&&Q!==X.pathname&&Object.keys(ce).forEach((function(e){ce&&J[e]===ce[e]&&delete J[e]})),P.isDynamicRoute(Q)&&(ge=!G.shallow&&ye.resolvedAs?ye.resolvedAs:A.addBasePath(M.addLocale(new URL(n,location.href).pathname,y.locale),!0),_e=ge,L.hasBasePath(_e)&&(_e=C.removeBasePath(_e)),be=O.getRouteRegex(Q),(Pe=S.getRouteMatcher(be)(_e))&&Object.assign(J,Pe))),!("type"in ye)){u.next=124;break}if("redirect-internal"!==ye.type){u.next=122;break}return u.abrupt("return",l.change(t,ye.newUrl,ye.newAs,a));case 122:return Y({url:ye.destination,router:l}),u.abrupt("return",new Promise((function(){})));case 124:if(we=ye.error,xe=ye.props,Ee=ye.__N_SSG,Se=ye.__N_SSP,(Oe=ye.Component)&&Oe.unstable_scriptLoader&&[].concat(Oe.unstable_scriptLoader()).forEach((function(e){v.handleClientScriptLoad(e.props)})),!Ee&&!Se||!xe){u.next=155;break}if(!xe.pageProps||!xe.pageProps.__N_REDIRECT){u.next=138;break}if(a.locale=!1,!(je=xe.pageProps.__N_REDIRECT).startsWith("/")||!1===xe.pageProps.__N_REDIRECT_BASE_PATH){u.next=136;break}return(Re=w.parseRelativeUrl(je)).pathname=W(Re.pathname,K),Me=B(l,je,je),ke=Me.url,Ce=Me.as,u.abrupt("return",l.change(t,ke,Ce,a));case 136:return Y({url:je,router:l}),u.abrupt("return",new Promise((function(){})));case 138:if(y.isPreview=!!xe.__N_PREVIEW,xe.notFound!==z){u.next=155;break}return u.prev=141,u.next=144,l.fetchComponent("/404");case 144:Ae="/404",u.next=150;break;case 147:u.prev=147,u.t4=u.catch(141),Ae="/_error";case 150:return u.next=152,l.getRouteInfo({route:Ae,pathname:Ae,query:J,as:n,resolvedAs:ae,routeProps:{shallow:!1},locale:y.locale,isPreview:y.isPreview});case 152:if(!("type"in(ye=u.sent))){u.next=155;break}throw new Error("Unexpected middleware effect on /404");case 155:if(e.events.emit("beforeHistoryChange",n,G),l.changeState(t,r,n,a),f&&"/_error"===Q&&500===(null==(ve=self.__NEXT_DATA__.props)||null==(me=ve.pageProps)?void 0:me.statusCode)&&(null==xe?void 0:xe.pageProps)&&(xe.pageProps.statusCode=500),Te=a.shallow&&y.route===(null!=(Le=ye.route)?Le:ue),Ie=null!=(Ne=a.scroll)?Ne:!a._h&&!Te,De=Ie?{x:0,y:0}:null,qe=s({},y,{route:ue,pathname:Q,query:J,asPath:V,isFallback:!1}),Ze=null!=o?o:De,a._h&&!Ze&&!g&&!$&&I.compareRouterStates(qe,l.state)){u.next=176;break}return u.next=169,l.set(qe,ye,Ze).catch((function(e){if(!e.cancelled)throw e;we=we||e}));case 169:if(!we){u.next=172;break}throw f||e.events.emit("routeChangeError",we,V,G),we;case 172:0,f||e.events.emit("routeChangeComplete",n,G),He=/#.+$/,Ie&&He.test(n)&&l.scrollToHash(n);case 176:return u.abrupt("return",!0);case 179:if(u.prev=179,u.t5=u.catch(111),!m.default(u.t5)||!u.t5.cancelled){u.next=183;break}return u.abrupt("return",!1);case 183:throw u.t5;case 184:case"end":return u.stop()}}),c,null,[[38,43],[52,64],[111,179],[141,147]])})))()}},{key:"changeState",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"pushState"===e&&b.getURL()===r||(this._shallow=n.shallow,window.history[e]({url:t,as:r,options:n,__N:!0,key:this._key="pushState"!==e?this._key:Q()},"",r))}},{key:"handleRouteInfoError",value:function(t,r,n,a,o,i){var s=this;return c(u.default.mark((function c(){var l,f,d,p;return u.default.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(console.error(t),!t.cancelled){u.next=3;break}throw t;case 3:if(!h.isAssetError(t)&&!i){u.next=7;break}throw e.events.emit("routeChangeError",t,a,o),Y({url:a,router:s}),D();case 7:return u.prev=7,u.next=11,s.fetchComponent("/_error");case 11:if(l=u.sent,f=l.page,d=l.styleSheets,(p={props:undefined,Component:f,styleSheets:d,err:t,error:t}).props){u.next=26;break}return u.prev=16,u.next=19,s.getInitialProps(f,{err:t,pathname:r,query:n});case 19:p.props=u.sent,u.next=26;break;case 22:u.prev=22,u.t0=u.catch(16),console.error("Error in error page `getInitialProps`: ",u.t0),p.props={};case 26:return u.abrupt("return",p);case 29:return u.prev=29,u.t1=u.catch(7),u.abrupt("return",s.handleRouteInfoError(m.default(u.t1)?u.t1:new Error(u.t1+""),r,n,a,o,!0));case 32:case"end":return u.stop()}}),c,null,[[7,29],[16,22]])})))()}},{key:"getRouteInfo",value:function(e){var t=e.route,r=e.pathname,n=e.query,a=e.as,o=e.resolvedAs,i=e.routeProps,l=e.locale,f=e.hasMiddleware,d=e.isPreview,h=e.unstable_skipClientCache,v=this;return c(u.default.mark((function e(){var y,_,b,x,E,S,O,R,M,k,A,L,T,N,I;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(y=t,e.prev=1,E=J({route:y,router:v}),S=v.components[y],!i.shallow||!S||v.route!==y){e.next=7;break}return e.abrupt("return",S);case 7:return f&&(S=void 0),O=S&&!("initial"in S)?S:void 0,R={dataHref:v.pageLoader.getDataHref({href:j.formatWithValidation({pathname:r,query:n}),skipInterpolation:!0,asPath:o,locale:l}),hasMiddleware:!0,isServerRender:v.isSsr,parseJSON:!0,inflightCache:v.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:h},e.next=12,te({fetchData:function(){return $(R)},asPath:o,locale:l,router:v});case 12:if(M=e.sent,E(),"redirect-internal"!==(null==M||null==(_=M.effect)?void 0:_.type)&&"redirect-external"!==(null==M||null==(b=M.effect)?void 0:b.type)){e.next=16;break}return e.abrupt("return",M.effect);case 16:if("rewrite"!==(null==M||null==(x=M.effect)?void 0:x.type)){e.next=24;break}if(y=p.removeTrailingSlash(M.effect.resolvedHref),r=M.effect.resolvedHref,n=s({},n,M.effect.parsedAs.query),o=C.removeBasePath(g.normalizeLocalePath(M.effect.parsedAs.pathname,v.locales).pathname),S=v.components[y],!i.shallow||!S||v.route!==y||f){e.next=24;break}return e.abrupt("return",s({},S,{route:y}));case 24:if("/api"!==y&&!y.startsWith("/api/")){e.next=27;break}return Y({url:a,router:v}),e.abrupt("return",new Promise((function(){})));case 27:if(e.t0=O,e.t0){e.next=32;break}return e.next=31,v.fetchComponent(y).then((function(e){return{Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP,__N_RSC:!!e.mod.__next_rsc__}}));case 31:e.t0=e.sent;case 32:k=e.t0,e.next=37;break;case 37:return A=k.__N_RSC&&k.__N_SSP,L=k.__N_SSG||k.__N_SSP||k.__N_RSC,e.next=41,v._getData(c(u.default.mark((function e(){var t;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!L||A){e.next=10;break}if(!(null==M?void 0:M.json)){e.next=5;break}e.t0=M,e.next=8;break;case 5:return e.next=7,$({dataHref:v.pageLoader.getDataHref({href:j.formatWithValidation({pathname:r,query:n}),asPath:o,locale:l}),isServerRender:v.isSsr,parseJSON:!0,inflightCache:v.sdc,persistCache:!d,isPrefetch:!1,unstable_skipClientCache:h});case 7:e.t0=e.sent;case 8:return t=e.t0.json,e.abrupt("return",{props:t||{}});case 10:return e.t1={},e.next=13,v.getInitialProps(k.Component,{pathname:r,query:n,asPath:a,locale:l,locales:v.locales,defaultLocale:v.defaultLocale});case 13:return e.t2=e.sent,e.abrupt("return",{headers:e.t1,props:e.t2});case 15:case"end":return e.stop()}}),e)}))));case 41:if(T=e.sent.props,k.__N_SSP&&R.dataHref&&(N=new URL(R.dataHref,window.location.href).href,delete v.sdc[N]),!v.isPreview&&k.__N_SSG&&$(Object.assign({},R,{isBackground:!0,persistCache:!1,inflightCache:V})).catch((function(){})),!k.__N_RSC){e.next=55;break}if(!A){e.next=52;break}return e.next=49,v._getData((function(){return v._getFlightData(j.formatWithValidation({query:s({},n,{__flight__:"1"}),pathname:P.isDynamicRoute(y)?Z(r,w.parseRelativeUrl(o).pathname,n).result:r}))}));case 49:e.t1=e.sent.data,e.next=53;break;case 52:e.t1=T.__flight__;case 53:e.t2=e.t1,I={__flight__:e.t2};case 55:return T.pageProps=Object.assign({},T.pageProps,I),k.props=T,k.route=y,k.query=n,k.resolvedAs=o,v.components[y]=k,e.abrupt("return",k);case 64:return e.prev=64,e.t3=e.catch(1),e.abrupt("return",v.handleRouteInfoError(m.getProperError(e.t3),r,n,a,i));case 67:case"end":return e.stop()}}),e,null,[[1,64]])})))()}},{key:"set",value:function(e,t,r){return this.state=e,this.sub(t,this.components["/_app"].Component,r)}},{key:"beforePopState",value:function(e){this._bps=e}},{key:"onlyAHashChange",value:function(e){if(!this.asPath)return!1;var t=i(this.asPath.split("#"),2),r=t[0],n=t[1],a=i(e.split("#"),2),o=a[0],u=a[1];return!(!u||r!==o||n!==u)||r===o&&n!==u}},{key:"scrollToHash",value:function(e){var t=i(e.split("#"),2)[1],r=void 0===t?"":t;if(""!==r&&"top"!==r){var n=decodeURIComponent(r),a=document.getElementById(n);if(a)a.scrollIntoView();else{var o=document.getElementsByName(n)[0];o&&o.scrollIntoView()}}else window.scrollTo(0,0)}},{key:"urlIsNew",value:function(e){return this.asPath!==e}},{key:"prefetch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this;return c(u.default.mark((function a(){var o,i,c,l,f,d,v,m,y,g,_,b;return u.default.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return o=w.parseRelativeUrl(e),i=o.pathname,c=o.query,a.next=5,n.pageLoader.getPageList();case 5:return l=a.sent,f=t,d="undefined"!==typeof r.locale?r.locale||void 0:n.locale,a.next=10,ee({asPath:t,locale:d,router:n});case 10:if(v=a.sent,!t.startsWith("/")){a.next=24;break}return a.next=16,h.getClientBuildManifest();case 16:if(y=a.sent,m=y.__rewrites,!(g=E.default(A.addBasePath(M.addLocale(t,n.locale),!0),l,m,o.query,(function(e){return W(e,l)}),n.locales)).externalDest){a.next=22;break}return a.abrupt("return");case 22:f=k.removeLocale(C.removeBasePath(g.asPath),n.locale),g.matchedPage&&g.resolvedHref&&(i=g.resolvedHref,o.pathname=i,v||(e=j.formatWithValidation(o)));case 24:o.pathname=W(o.pathname,l),P.isDynamicRoute(o.pathname)&&(i=o.pathname,o.pathname=i,Object.assign(c,S.getRouteMatcher(O.getRouteRegex(o.pathname))(R.parsePath(t).pathname)||{}),v||(e=j.formatWithValidation(o))),a.next=28;break;case 28:return a.next=30,te({fetchData:function(){return $({dataHref:n.pageLoader.getDataHref({href:j.formatWithValidation({pathname:i,query:c}),skipInterpolation:!0,asPath:f,locale:d}),hasMiddleware:!0,isServerRender:n.isSsr,parseJSON:!0,inflightCache:n.sdc,persistCache:!n.isPreview,isPrefetch:!0})},asPath:t,locale:d,router:n});case 30:if("rewrite"===(null==(_=a.sent)?void 0:_.effect.type)&&(o.pathname=_.effect.resolvedHref,i=_.effect.resolvedHref,c=s({},c,_.effect.parsedAs.query),f=_.effect.parsedAs.pathname,e=j.formatWithValidation(o)),"redirect-external"!==(null==_?void 0:_.effect.type)){a.next=34;break}return a.abrupt("return");case 34:return b=p.removeTrailingSlash(i),a.next=37,Promise.all([n.pageLoader._isSsg(b).then((function(t){return!!t&&$({dataHref:(null==_?void 0:_.dataHref)||n.pageLoader.getDataHref({href:e,asPath:f,locale:d}),isServerRender:!1,parseJSON:!0,inflightCache:n.sdc,persistCache:!n.isPreview,isPrefetch:!0,unstable_skipClientCache:r.unstable_skipClientCache||r.priority&&!0}).then((function(){return!1}))})),n.pageLoader[r.priority?"loadPage":"prefetch"](b)]);case 37:case"end":return a.stop()}}),a)})))()}},{key:"fetchComponent",value:function(e){var t=this;return c(u.default.mark((function r(){var n,a;return u.default.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=J({route:e,router:t}),r.prev=1,r.next=4,t.pageLoader.loadPage(e);case 4:return a=r.sent,n(),r.abrupt("return",a);case 9:throw r.prev=9,r.t0=r.catch(1),n(),r.t0;case 13:case"end":return r.stop()}}),r,null,[[1,9]])})))()}},{key:"_getData",value:function(e){var t=this,r=!1,n=function(){r=!0};return this.clc=n,e().then((function(e){if(n===t.clc&&(t.clc=null),r){var a=new Error("Loading initial props cancelled");throw a.cancelled=!0,a}return e}))}},{key:"_getFlightData",value:function(e){return $({dataHref:e,isServerRender:!0,parseJSON:!1,inflightCache:this.sdc,persistCache:!1,isPrefetch:!1}).then((function(e){return{data:e.text}}))}},{key:"getInitialProps",value:function(e,t){var r=this.components["/_app"].Component,n=this._wrapApp(r);return t.AppTree=n,b.loadGetInitialProps(r,{AppTree:n,Component:e,router:this,ctx:t})}},{key:"route",get:function(){return this.state.route}},{key:"pathname",get:function(){return this.state.pathname}},{key:"query",get:function(){return this.state.query}},{key:"asPath",get:function(){return this.state.asPath}},{key:"locale",get:function(){return this.state.locale}},{key:"isFallback",get:function(){return this.state.isFallback}},{key:"isPreview",get:function(){return this.state.isPreview}}]),e}();function ee(e){return Promise.resolve(e.router.pageLoader.getMiddleware()).then((function(t){var r=R.parsePath(e.asPath).pathname,n=L.hasBasePath(r)?C.removeBasePath(r):r,a=null==t?void 0:t.location;return!!a&&new RegExp(a).test(M.addLocale(n,e.locale))}))}function te(e){return ee(e).then((function(t){return t&&e.fetchData?e.fetchData().then((function(t){return function(e,t,r){var n={basePath:r.router.basePath,i18n:{locales:r.router.locales},trailingSlash:Boolean(!0)},a=t.headers.get("x-nextjs-rewrite"),o=a||t.headers.get("x-nextjs-matched-path"),u=t.headers.get("x-matched-path");!u||o||u.includes("__next_data_catchall")||u.includes("/_error")||u.includes("/404")||(o=u);if(o){if(o.startsWith("/")){var c=w.parseRelativeUrl(o),l=T.getNextPathnameInfo(c.pathname,{nextConfig:n,parseData:!0}),f=p.removeTrailingSlash(l.pathname);return Promise.all([r.router.pageLoader.getPageList(),h.getClientBuildManifest()]).then((function(t){var n=i(t,2),o=n[0],u=n[1].__rewrites,s=M.addLocale(l.pathname,l.locale);if(P.isDynamicRoute(s)||!a&&o.includes(g.normalizeLocalePath(C.removeBasePath(s),r.router.locales).pathname)){var d=T.getNextPathnameInfo(w.parseRelativeUrl(e).pathname,{parseData:!0});s=A.addBasePath(d.pathname),c.pathname=s}var p=E.default(s,o,u,c.query,(function(e){return W(e,o)}),r.router.locales);p.matchedPage&&(c.pathname=p.parsedAs.pathname,s=c.pathname,Object.assign(c.query,p.parsedAs.query));var h=o.includes(f)?f:W(g.normalizeLocalePath(C.removeBasePath(c.pathname),r.router.locales).pathname,o);if(P.isDynamicRoute(h)){var v=S.getRouteMatcher(O.getRouteRegex(h))(s);Object.assign(c.query,v||{})}return{type:"rewrite",parsedAs:c,resolvedHref:h}}))}var d=R.parsePath(e),v=N.formatNextPathnameInfo(s({},T.getNextPathnameInfo(d.pathname,{nextConfig:n,parseData:!0}),{defaultLocale:r.router.defaultLocale,buildId:""}));return Promise.resolve({type:"redirect-external",destination:"".concat(v).concat(d.query).concat(d.hash)})}var m=t.headers.get("x-nextjs-redirect");if(m){if(m.startsWith("/")){var y=R.parsePath(m),_=N.formatNextPathnameInfo(s({},T.getNextPathnameInfo(y.pathname,{nextConfig:n,parseData:!0}),{defaultLocale:r.router.defaultLocale,buildId:""}));return Promise.resolve({type:"redirect-internal",newAs:"".concat(_).concat(y.query).concat(y.hash),newUrl:"".concat(_).concat(y.query).concat(y.hash)})}return Promise.resolve({type:"redirect-external",destination:m})}return Promise.resolve({type:"next"})}(t.dataHref,t.response,e).then((function(e){return{dataHref:t.dataHref,json:t.json,response:t.response,text:t.text,effect:e}}))})).catch((function(e){return null})):null}))}K.events=_.default(),t.default=K},77459:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addLocale=function(e,t,r,o){if(t&&t!==r&&(o||!a.pathHasPrefix(e.toLowerCase(),"/".concat(t.toLowerCase()))&&!a.pathHasPrefix(e.toLowerCase(),"/api")))return n.addPathPrefix(e,"/".concat(t));return e};var n=r(95391),a=r(1259)},95391:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPathPrefix=function(e,t){if(!e.startsWith("/")||!t)return e;var r=n.parsePath(e),a=r.pathname,o=r.query,i=r.hash;return"".concat(t).concat(a).concat(o).concat(i)};var n=r(4943)},84156:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addPathSuffix=function(e,t){if(!e.startsWith("/")||!t)return e;var r=n.parsePath(e),a=r.pathname,o=r.query,i=r.hash;return"".concat(a).concat(t).concat(o).concat(i)};var n=r(4943)},610:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.compareRouterStates=function(e,t){var r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(var n=r.length;n--;){var a=r[n];if("query"===a){var o=Object.keys(e.query);if(o.length!==Object.keys(t.query).length)return!1;for(var i=o.length;i--;){var u=o[i];if(!t.query.hasOwnProperty(u)||e.query[u]!==t.query[u])return!1}}else if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}},34022:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatNextPathnameInfo=function(e){var t=i.addLocale(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);e.buildId&&(t=o.addPathSuffix(a.addPathPrefix(t,"/_next/data/".concat(e.buildId)),"/"===e.pathname?"index.json":".json"));return t=a.addPathPrefix(t,e.basePath),e.trailingSlash?e.buildId||t.endsWith("/")?t:o.addPathSuffix(t,"/"):n.removeTrailingSlash(t)};var n=r(86316),a=r(95391),o=r(84156),i=r(77459)},4611:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=o,t.formatWithValidation=function(e){0;return o(e)},t.urlObjectKeys=void 0;var n=(0,r(91598).Z)(r(50466)),a=/https?|ftp|gopher|file/;function o(e){var t=e.auth,r=e.hostname,o=e.protocol||"",i=e.pathname||"",u=e.hash||"",c=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:r&&(s=t+(~r.indexOf(":")?"[".concat(r,"]"):r),e.port&&(s+=":"+e.port)),c&&"object"===typeof c&&(c=String(n.urlQueryToSearchParams(c)));var l=e.search||c&&"?".concat(c)||"";return o&&!o.endsWith(":")&&(o+=":"),e.slashes||(!o||a.test(o))&&!1!==s?(s="//"+(s||""),i&&"/"!==i[0]&&(i="/"+i)):s||(s=""),u&&"#"!==u[0]&&(u="#"+u),l&&"?"!==l[0]&&(l="?"+l),i=i.replace(/[?#]/g,encodeURIComponent),l=l.replace("#","%23"),"".concat(o).concat(s).concat(i).concat(l).concat(u)}t.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"]},73891:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r="/"===e?"/index":/^\/index(\/|$)/.test(e)?"/index".concat(e):"".concat(e);return r+t}},20159:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNextPathnameInfo=function(e,t){var r,i=null!=(r=t.nextConfig)?r:{},u=i.basePath,c=i.i18n,s=i.trailingSlash,l={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):s};u&&o.pathHasPrefix(l.pathname,u)&&(l.pathname=a.removePathPrefix(l.pathname,u),l.basePath=u);if(!0===t.parseData&&l.pathname.startsWith("/_next/data/")&&l.pathname.endsWith(".json")){var f=l.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),d=f[0];l.pathname="index"!==f[1]?"/".concat(f.slice(1).join("/")):"/",l.buildId=d}if(c){var p=n.normalizeLocalePath(l.pathname,c.locales);l.locale=null==p?void 0:p.detectedLocale,l.pathname=(null==p?void 0:p.pathname)||l.pathname}return l};var n=r(94317),a=r(9244),o=r(1259)},90418:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return n.getSortedRoutes}}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return a.isDynamicRoute}});var n=r(53907),a=r(78689)},78689:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicRoute=function(e){return r.test(e)};var r=/\/\[[^/]+?\](?=\/|$)/},4943:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parsePath=function(e){var t=e.indexOf("#"),r=e.indexOf("?"),n=r>-1&&(t<0||r-1)return{pathname:e.substring(0,n?r:t),query:n?e.substring(r,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""};return{pathname:e,query:"",hash:""}}},36305:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelativeUrl=function(e,t){var r=new URL(n.getLocationOrigin()),o=t?new URL(t,r):e.startsWith(".")?new URL(window.location.href):r,i=new URL(e,o),u=i.pathname,c=i.searchParams,s=i.search,l=i.hash,f=i.href;if(i.origin!==r.origin)throw new Error("invariant: invalid relative URL, router received ".concat(e));return{pathname:u,query:a.searchParamsToUrlQuery(c),search:s,hash:l,href:f.slice(r.origin.length)}};var n=r(63794),a=r(50466)},91961:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUrl=function(e){if(e.startsWith("/"))return a.parseRelativeUrl(e);var t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:n.searchParamsToUrlQuery(t.searchParams),search:t.search}};var n=r(50466),a=r(36305)},1259:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pathHasPrefix=function(e,t){if("string"!==typeof e)return!1;var r=n.parsePath(e).pathname;return r===t||r.startsWith(t+"/")};var n=r(4943)},66641:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathMatch=function(e,t){var r=[],o=a.pathToRegexp(e,r,{delimiter:"/",sensitive:!1,strict:null==t?void 0:t.strict}),i=a.regexpToFunction((null==t?void 0:t.regexModifier)?new RegExp(t.regexModifier(o.source),o.flags):o,r);return function(e,a){var o=null!=e&&i(e);if(!o)return!1;if(null==t?void 0:t.removeUnnamedParams){var u=!0,c=!1,s=void 0;try{for(var l,f=r[Symbol.iterator]();!(u=(l=f.next()).done);u=!0){var d=l.value;"number"===typeof d.name&&delete o.params[d.name]}}catch(p){c=!0,s=p}finally{try{u||null==f.return||f.return()}finally{if(c)throw s}}}return n({},a,o.params)}};var n=r(6495).Z,a=r(74329)},11929:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(94941).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.matchHas=function(e,t,r){var n={};if(t.every((function(t){var a,o=t.key;switch(t.type){case"header":o=o.toLowerCase(),a=e.headers[o];break;case"cookie":a=e.cookies[t.key];break;case"query":a=r[o];break;case"host":var i=((null==e?void 0:e.headers)||{}).host;a=null==i?void 0:i.split(":")[0].toLowerCase()}if(!t.value&&a)return n[function(e){for(var t="",r=0;r64&&n<91||n>96&&n<123)&&(t+=e[r])}return t}(o)]=a,!0;if(a){var u=new RegExp("^".concat(t.value,"$")),c=Array.isArray(a)?a.slice(-1)[0].match(u):a.match(u);if(c)return Array.isArray(c)&&(c.groups?Object.keys(c.groups).forEach((function(e){n[e]=c.groups[e]})):"host"===t.type&&c[0]&&(n.host=c[0])),!0}return!1})))return n;return!1},t.compileNonPath=c,t.prepareDestination=function(e){var t=Object.assign({},e.query);delete t.__nextLocale,delete t.__nextDefaultLocale,delete t.__nextDataReq;var r=e.destination,l=!0,f=!1,d=void 0;try{for(var p,h=Object.keys(a({},e.params,t))[Symbol.iterator]();!(l=(p=h.next()).done);l=!0){var v=p.value;m=v,r=r.replace(new RegExp(":".concat(i.escapeStringRegexp(m)),"g"),"__ESC_COLON_".concat(m))}}catch(z){f=!0,d=z}finally{try{l||null==h.return||h.return()}finally{if(f)throw d}}var m;var y=u.parseUrl(r),g=y.query,_=s("".concat(y.pathname).concat(y.hash||"")),b=s(y.hostname||""),P=[],w=[];o.pathToRegexp(_,P),o.pathToRegexp(b,w);var x=[];P.forEach((function(e){return x.push(e.name)})),w.forEach((function(e){return x.push(e.name)}));var E=o.compile(_,{validate:!1}),S=o.compile(b,{validate:!1}),O=!0,j=!1,R=void 0;try{for(var M,k=Object.entries(g)[Symbol.iterator]();!(O=(M=k.next()).done);O=!0){var C=n(M.value,2),A=C[0],L=C[1];Array.isArray(L)?g[A]=L.map((function(t){return c(s(t),e.params)})):g[A]=c(s(L),e.params)}}catch(z){j=!0,R=z}finally{try{O||null==k.return||k.return()}finally{if(j)throw R}}var T,N=Object.keys(e.params).filter((function(e){return"nextInternalLocale"!==e}));if(e.appendParamsToQuery&&!N.some((function(e){return x.includes(e)}))){var I=!0,D=!1,q=void 0;try{for(var Z,H=N[Symbol.iterator]();!(I=(Z=H.next()).done);I=!0){var U=Z.value;U in g||(g[U]=e.params[U])}}catch(z){D=!0,q=z}finally{try{I||null==H.return||H.return()}finally{if(D)throw q}}}try{T=E(e.params);var F=n(T.split("#"),2),B=F[0],W=F[1];y.hostname=S(e.params),y.pathname=B,y.hash="".concat(W?"#":"").concat(W||""),delete y.search}catch(G){if(G.message.match(/Expected .*? to not repeat, but got an array/))throw new Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match");throw G}return y.query=a({},t,y.query),{newUrl:T,destQuery:g,parsedDestination:y}};var a=r(6495).Z,o=r(74329),i=r(10489),u=r(91961);function c(e,t){if(!e.includes(":"))return e;var r=!0,n=!1,a=void 0;try{for(var i,u=Object.keys(t)[Symbol.iterator]();!(r=(i=u.next()).done);r=!0){var c=i.value;e.includes(":".concat(c))&&(e=e.replace(new RegExp(":".concat(c,"\\*"),"g"),":".concat(c,"--ESCAPED_PARAM_ASTERISKS")).replace(new RegExp(":".concat(c,"\\?"),"g"),":".concat(c,"--ESCAPED_PARAM_QUESTION")).replace(new RegExp(":".concat(c,"\\+"),"g"),":".concat(c,"--ESCAPED_PARAM_PLUS")).replace(new RegExp(":".concat(c,"(?!\\w)"),"g"),"--ESCAPED_PARAM_COLON".concat(c)))}}catch(s){n=!0,a=s}finally{try{r||null==u.return||u.return()}finally{if(n)throw a}}return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),o.compile("/".concat(e),{validate:!1})(t).slice(1)}function s(e){return e.replace(/__ESC_COLON_/gi,":")}},50466:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(94941).Z;function a(e){return"string"===typeof e||"number"===typeof e&&!isNaN(e)||"boolean"===typeof e?String(e):""}Object.defineProperty(t,"__esModule",{value:!0}),t.searchParamsToUrlQuery=function(e){var t={};return e.forEach((function(e,r){"undefined"===typeof t[r]?t[r]=e:Array.isArray(t[r])?t[r].push(e):t[r]=[t[r],e]})),t},t.urlQueryToSearchParams=function(e){var t=new URLSearchParams;return Object.entries(e).forEach((function(e){var r=n(e,2),o=r[0],i=r[1];Array.isArray(i)?i.forEach((function(e){return t.append(o,a(e))})):t.set(o,a(i))})),t},t.assign=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n122&&(t++,e=97);return r}}(),n={};return{namedParameterizedRoute:t.map((function(e){if(e.startsWith("[")&&e.endsWith("]")){var t=s(e.slice(1,-1)),o=t.key,i=t.optional,u=t.repeat,c=o.replace(/\W/g,""),l=!1;return(0===c.length||c.length>30)&&(l=!0),isNaN(parseInt(c.slice(0,1)))||(l=!0),l&&(c=r()),n[c]=o,u?i?"(?:/(?<".concat(c,">.+?))?"):"/(?<".concat(c,">.+?)"):"/(?<".concat(c,">[^/]+?)")}return"/".concat(a.escapeStringRegexp(e))})).join(""),routeKeys:n}}function s(e){var t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));var r=e.startsWith("...");return r&&(e=e.slice(3)),{key:e,repeat:r,optional:t}}},53907:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(79658).Z,a=r(7222).Z,o=r(53929).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedRoutes=function(e){var t=new i;return e.forEach((function(e){return t.insert(e)})),t.smoosh()};var i=function(){function e(){n(this,e),this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}return a(e,[{key:"insert",value:function(e){this._insert(e.split("/").filter(Boolean),[],!1)}},{key:"smoosh",value:function(){return this._smoosh()}},{key:"_smoosh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=this,r=o(this.children.keys()).sort();null!==this.slugName&&r.splice(r.indexOf("[]"),1),null!==this.restSlugName&&r.splice(r.indexOf("[...]"),1),null!==this.optionalRestSlugName&&r.splice(r.indexOf("[[...]]"),1);var n,a,i,u=r.map((function(r){return t.children.get(r)._smoosh("".concat(e).concat(r,"/"))})).reduce((function(e,t){return o(e).concat(o(t))}),[]);null!==this.slugName&&(n=u).push.apply(n,o(this.children.get("[]")._smoosh("".concat(e,"[").concat(this.slugName,"]/"))));if(!this.placeholder){var c="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw new Error('You cannot define a route with the same specificity as a optional catch-all route ("'.concat(c,'" and "').concat(c,"[[...").concat(this.optionalRestSlugName,']]").'));u.unshift(c)}null!==this.restSlugName&&(a=u).push.apply(a,o(this.children.get("[...]")._smoosh("".concat(e,"[...").concat(this.restSlugName,"]/"))));null!==this.optionalRestSlugName&&(i=u).push.apply(i,o(this.children.get("[[...]]")._smoosh("".concat(e,"[[...").concat(this.optionalRestSlugName,"]]/"))));return u}},{key:"_insert",value:function(t,r,n){if(0!==t.length){if(n)throw new Error("Catch-all must be the last part of the URL.");var a=t[0];if(a.startsWith("[")&&a.endsWith("]")){var o=function(e,t){if(null!==e&&e!==t)throw new Error("You cannot use different slug names for the same dynamic path ('".concat(e,"' !== '").concat(t,"')."));r.forEach((function(e){if(e===t)throw new Error('You cannot have the same slug name "'.concat(t,'" repeat within a single dynamic path'));if(e.replace(/\W/g,"")===a.replace(/\W/g,""))throw new Error('You cannot have the slug names "'.concat(e,'" and "').concat(t,'" differ only by non-word symbols within a single dynamic path'))})),r.push(t)},i=a.slice(1,-1),u=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),u=!0),i.startsWith("...")&&(i=i.substring(3),n=!0),i.startsWith("[")||i.endsWith("]"))throw new Error("Segment names may not start or end with extra brackets ('".concat(i,"')."));if(i.startsWith("."))throw new Error("Segment names may not start with erroneous periods ('".concat(i,"')."));if(n)if(u){if(null!=this.restSlugName)throw new Error('You cannot use both an required and optional catch-all route at the same level ("[...'.concat(this.restSlugName,']" and "').concat(t[0],'" ).'));o(this.optionalRestSlugName,i),this.optionalRestSlugName=i,a="[[...]]"}else{if(null!=this.optionalRestSlugName)throw new Error('You cannot use both an optional and required catch-all route at the same level ("[[...'.concat(this.optionalRestSlugName,']]" and "').concat(t[0],'").'));o(this.restSlugName,i),this.restSlugName=i,a="[...]"}else{if(u)throw new Error('Optional route parameters are not yet supported ("'.concat(t[0],'").'));o(this.slugName,i),this.slugName=i,a="[]"}}this.children.has(a)||this.children.set(a,new e),this.children.get(a)._insert(t.slice(1),r,n)}else this.placeholder=!1}}]),e}()},88027:function(e,t){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.setConfig=function(e){r=e},t.default=void 0;t.default=function(){return r}},55188:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=function(){if(r&&r.mountedInstances){var t=n.Children.toArray(Array.from(r.mountedInstances).filter(Boolean));r.updateHead(u(t,e))}},r=e.headManager,u=e.reduceComponentsToState;if(a){var c;null==r||null==(c=r.mountedInstances)||c.add(e.children),t()}return o((function(){var t;return null==r||null==(t=r.mountedInstances)||t.add(e.children),function(){var t;null==r||null==(t=r.mountedInstances)||t.delete(e.children)}})),o((function(){return r&&(r._pendingUpdate=t),function(){r&&(r._pendingUpdate=t)}})),i((function(){return r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null),function(){r&&r._pendingUpdate&&(r._pendingUpdate(),r._pendingUpdate=null)}})),null};var n=(0,r(91598).Z)(r(67294));var a=!1,o=a?function(){}:n.useLayoutEffect,i=a?function(){}:n.useEffect},63794:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(79658).Z,a=r(97788).Z,o=r(92648).Z,i=r(53929).Z,u=r(79968).Z,c=r(37735).Z,s=o(r(34051));Object.defineProperty(t,"__esModule",{value:!0}),t.execOnce=function(e){var t,r=!1;return function(){for(var n=arguments.length,a=new Array(n),o=0;o=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||95===c))break;i+=e[u++]}if(!i)throw new TypeError("Missing parameter name at "+r);t.push({type:"NAME",index:r,value:i}),r=u}else t.push({type:"CLOSE",index:r,value:e[r++]});else t.push({type:"OPEN",index:r,value:e[r++]});else t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});else t.push({type:"MODIFIER",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),n=t.prefixes,a=void 0===n?"./":n,i="[^"+o(t.delimiter||"/#?")+"]+?",u=[],c=0,s=0,l="",f=function(e){if(s-1:void 0===w;a||(v+="(?:"+h+"(?="+p+"))?"),x||(v+="(?="+h+"|"+p+")")}return new RegExp(v,i(r))}function c(e,t,n){return e instanceof RegExp?function(e,t){if(!t)return e;var r=e.source.match(/\((?!\?)/g);if(r)for(var n=0;n=0;--o){var i=this.tryEntries[o],u=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),O(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;O(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:R(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=t}catch(r){Function("r","regeneratorRuntime = r")(t)}},38745:function(e){!function(){var t={61:function(e,t){!function(e){"use strict";var t,r,n,a,o,i=!1,u=function(e){addEventListener("pageshow",(function(t){t.persisted&&(i=!0,e(t))}),!0)},c=function(){return window.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,t={entryType:"navigation",startTime:0};for(var r in e)"navigationStart"!==r&&"toJSON"!==r&&(t[r]=Math.max(e[r]-e.navigationStart,0));return t}())},s=function(e,t){var r=c();return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:i?"back_forward_cache":r&&r.type}},l=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver((function(e){t(e.getEntries())}));return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(e){}},f=function(e,t){var r=function r(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||(e(n),t&&(removeEventListener("visibilitychange",r,!0),removeEventListener("pagehide",r,!0)))};addEventListener("visibilitychange",r,!0),addEventListener("pagehide",r,!0)},d=function(e,t,r){var n;return function(a){t.value>=0&&(a||r)&&(t.delta=t.value-(n||0),(t.delta||void 0===n)&&(n=t.value,e(t)))}},p=-1,h=function(){return"hidden"===document.visibilityState?0:1/0},v=function(){f((function(e){var t=e.timeStamp;p=t}),!0)},m=function(){return p<0&&(p=h(),v(),u((function(){setTimeout((function(){p=h(),v()}),0)}))),{get firstHiddenTime(){return p}}},y=function(e,t){t=t||{};var r,n=m(),a=s("FCP"),o=function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(c&&c.disconnect(),e.startTime-1&&e(t)},a=s("CLS",0),o=0,i=[],c=function(e){e.forEach((function(e){if(!e.hadRecentInput){var t=i[0],n=i[i.length-1];o&&e.startTime-n.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,i.push(e)):(o=e.value,i=[e]),o>a.value&&(a.value=o,a.entries=i,r())}}))},p=l("layout-shift",c);p&&(r=d(n,a,t.reportAllChanges),f((function(){c(p.takeRecords()),r(!0)})),u((function(){o=0,_=-1,a=s("CLS",0),r=d(n,a,t.reportAllChanges)})))},P={passive:!0,capture:!0},w=new Date,x=function(e,a){t||(t=a,r=e,n=new Date,O(removeEventListener),E())},E=function(){if(r>=0&&r1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var r=function(){x(e,t),a()},n=function(){a()},a=function(){removeEventListener("pointerup",r,P),removeEventListener("pointercancel",n,P)};addEventListener("pointerup",r,P),addEventListener("pointercancel",n,P)}(t,e):x(t,e)}},O=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,S,P)}))},j=function(e,n){n=n||{};var o,i=m(),c=s("FID"),p=function(e){e.startTimet.latency){if(r)r.entries.push(e),r.latency=Math.max(r.latency,e.duration);else{var n={id:e.interactionId,latency:e.duration,entries:[e]};D[n.id]=n,I.push(n)}I.sort((function(e,t){return t.latency-e.latency})),I.splice(10).forEach((function(e){delete D[e.id]}))}}(e)}));var t,a=(t=Math.min(I.length-1,Math.floor(N()/50)),I[t]);a&&a.latency!==n.value&&(n.value=a.latency,n.entries=a.entries,r())},o=l("event",a,{durationThreshold:t.durationThreshold||40});r=d(e,n,t.reportAllChanges),o&&(f((function(){a(o.takeRecords()),n.value<0&&N()>0&&(n.value=0,n.entries=[]),r(!0)})),u((function(){I=[],T=A(),n=s("INP"),r=d(e,n,t.reportAllChanges)})))},Z={},H=function(e,t){t=t||{};var r,n=m(),a=s("LCP"),o=function(e){var t=e[e.length-1];if(t){var o=t.startTime;operformance.now())return;n.entries=[e],a(!0)}},"complete"===document.readyState?setTimeout(r,0):addEventListener("load",(function(){return setTimeout(r,0)})),u((function(r){n=s("TTFB"),a=d(e,n,t.reportAllChanges),n.value=performance.now()-r.timeStamp,a(!0)}))};e.getCLS=b,e.getFCP=y,e.getFID=j,e.getINP=q,e.getLCP=H,e.getTTFB=U,e.onCLS=b,e.onFCP=y,e.onFID=j,e.onINP=q,e.onLCP=H,e.onTTFB=U,Object.defineProperty(e,"__esModule",{value:!0})}(t)}};"undefined"!==typeof __nccwpck_require__&&(__nccwpck_require__.ab="//");var r={};t[61](0,r),e.exports=r}()},80676:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,t.getProperError=function(e){if(a(e))return e;0;return new Error(n.isPlainObject(e)?JSON.stringify(e):e+"")};var n=r(88887);function a(e){return"object"===typeof e&&null!==e&&"name"in e&&"message"in e}}},function(e){e.O(0,[9774],(function(){return t=22870,e(e.s=t);var t}));var t=e.O();_N_E=t}]); \ No newline at end of file diff --git a/static/web/_next/static/chunks/pages/_app-b79e351860a8ab9a.js b/static/web/_next/static/chunks/pages/_app-b32bc83ff89a60fc.js similarity index 90% rename from static/web/_next/static/chunks/pages/_app-b79e351860a8ab9a.js rename to static/web/_next/static/chunks/pages/_app-b32bc83ff89a60fc.js index 6f81e4654..d8d946efb 100644 --- a/static/web/_next/static/chunks/pages/_app-b79e351860a8ab9a.js +++ b/static/web/_next/static/chunks/pages/_app-b32bc83ff89a60fc.js @@ -1 +1 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2888],{92138:function(e,t,n){"use strict";n.r(t),n.d(t,{blue:function(){return Z},cyan:function(){return C},geekblue:function(){return S},generate:function(){return d},gold:function(){return y},green:function(){return E},grey:function(){return _},lime:function(){return x},magenta:function(){return N},orange:function(){return b},presetDarkPalettes:function(){return v},presetPalettes:function(){return h},presetPrimaryColors:function(){return p},purple:function(){return k},red:function(){return m},volcano:function(){return g},yellow:function(){return w}});var r=n(86500),o=n(1350),i=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,n=e.g,o=e.b,i=(0,r.py)(t,n,o);return{h:360*i.h,s:i.s,v:i.v}}function c(e){var t=e.r,n=e.g,o=e.b;return"#".concat((0,r.vq)(t,n,o,!1))}function s(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function u(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function l(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function f(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function d(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,o.uA)(e),d=5;d>0;d-=1){var p=a(r),h=c((0,o.uA)({h:u(p,d,!0),s:l(p,d,!0),v:f(p,d,!0)}));n.push(h)}n.push(c(r));for(var v=1;v<=4;v+=1){var m=a(r),g=c((0,o.uA)({h:u(m,v),s:l(m,v),v:f(m,v)}));n.push(g)}return"dark"===t.theme?i.map((function(e){var r=e.index,i=e.opacity;return c(s((0,o.uA)(t.backgroundColor||"#141414"),(0,o.uA)(n[r]),100*i))})):n}var p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},h={},v={};Object.keys(p).forEach((function(e){h[e]=d(p[e]),h[e].primary=h[e][5],v[e]=d(p[e],{theme:"dark",backgroundColor:"#141414"}),v[e].primary=v[e][5]}));var m=h.red,g=h.volcano,y=h.gold,b=h.orange,w=h.yellow,x=h.lime,E=h.green,C=h.cyan,Z=h.blue,S=h.geekblue,k=h.purple,N=h.magenta,_=h.grey},42135:function(e,t,n){"use strict";n.d(t,{Z:function(){return _}});var r=n(1413),o=n(97685),i=n(4942),a=n(91),c=n(67294),s=n(94184),u=n.n(s),l=n(63017),f=n(71002),d=n(92138),p=n(80334),h=n(44958);function v(e){return"object"===(0,f.Z)(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===(0,f.Z)(e.icon)||"function"===typeof e.icon)}function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else t[n]=r;return t}),{})}function g(e,t,n){return n?c.createElement(e.tag,(0,r.Z)((0,r.Z)({key:t},m(e.attrs)),n),(e.children||[]).map((function(n,r){return g(n,"".concat(t,"-").concat(e.tag,"-").concat(r))}))):c.createElement(e.tag,(0,r.Z)({key:t},m(e.attrs)),(e.children||[]).map((function(n,r){return g(n,"".concat(t,"-").concat(e.tag,"-").concat(r))})))}function y(e){return(0,d.generate)(e)[0]}function b(e){return e?Array.isArray(e)?e:[e]:[]}var w="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",x=["icon","className","onClick","style","primaryColor","secondaryColor"],E={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var C=function(e){var t,n,o=e.icon,i=e.className,s=e.onClick,u=e.style,f=e.primaryColor,d=e.secondaryColor,m=(0,a.Z)(e,x),b=E;if(f&&(b={primaryColor:f,secondaryColor:d||y(f)}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:w,t=(0,c.useContext)(l.Z).csp;(0,c.useEffect)((function(){(0,h.hq)(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])}(),t=v(o),n="icon should be icon definiton, but got ".concat(o),(0,p.ZP)(t,"[@ant-design/icons] ".concat(n)),!v(o))return null;var C=o;return C&&"function"===typeof C.icon&&(C=(0,r.Z)((0,r.Z)({},C),{},{icon:C.icon(b.primaryColor,b.secondaryColor)})),g(C.icon,"svg-".concat(C.name),(0,r.Z)({className:i,onClick:s,style:u,"data-icon":C.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m))};C.displayName="IconReact",C.getTwoToneColors=function(){return(0,r.Z)({},E)},C.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;E.primaryColor=t,E.secondaryColor=n||y(t),E.calculated=!!n};var Z=C;function S(e){var t=b(e),n=(0,o.Z)(t,2),r=n[0],i=n[1];return Z.setTwoToneColors({primaryColor:r,secondaryColor:i})}var k=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];S("#1890ff");var N=c.forwardRef((function(e,t){var n,s=e.className,f=e.icon,d=e.spin,p=e.rotate,h=e.tabIndex,v=e.onClick,m=e.twoToneColor,g=(0,a.Z)(e,k),y=c.useContext(l.Z).prefixCls,w=void 0===y?"anticon":y,x=u()(w,(n={},(0,i.Z)(n,"".concat(w,"-").concat(f.name),!!f.name),(0,i.Z)(n,"".concat(w,"-spin"),!!d||"loading"===f.name),n),s),E=h;void 0===E&&v&&(E=-1);var C=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,S=b(m),N=(0,o.Z)(S,2),_=N[0],T=N[1];return c.createElement("span",(0,r.Z)((0,r.Z)({role:"img","aria-label":f.name},g),{},{ref:t,tabIndex:E,onClick:v,className:x}),c.createElement(Z,{icon:f,primaryColor:_,secondaryColor:T,style:C}))}));N.displayName="AntdIcon",N.getTwoToneColor=function(){var e=Z.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},N.setTwoToneColor=S;var _=N},63017:function(e,t,n){"use strict";var r=(0,n(67294).createContext)({});t.Z=r},89739:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="CheckCircleFilled";var s=o.forwardRef(c)},8751:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="CheckCircleOutlined";var s=o.forwardRef(c)},63606:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="CheckOutlined";var s=o.forwardRef(c)},4340:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="CloseCircleFilled";var s=o.forwardRef(c)},18429:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="CloseCircleOutlined";var s=o.forwardRef(c)},97937:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="CloseOutlined";var s=o.forwardRef(c)},57132:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="CopyOutlined";var s=o.forwardRef(c)},80882:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="DownOutlined";var s=o.forwardRef(c)},86548:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="EditOutlined";var s=o.forwardRef(c)},89705:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="EllipsisOutlined";var s=o.forwardRef(c)},21640:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="ExclamationCircleFilled";var s=o.forwardRef(c)},11475:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="ExclamationCircleOutlined";var s=o.forwardRef(c)},90420:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="EyeInvisibleOutlined";var s=o.forwardRef(c)},99611:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="EyeOutlined";var s=o.forwardRef(c)},78860:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="InfoCircleFilled";var s=o.forwardRef(c)},45605:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="InfoCircleOutlined";var s=o.forwardRef(c)},6171:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="LeftOutlined";var s=o.forwardRef(c)},50888:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="LoadingOutlined";var s=o.forwardRef(c)},38545:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="MessageOutlined";var s=o.forwardRef(c)},18073:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="RightOutlined";var s=o.forwardRef(c)},68795:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="SearchOutlined";var s=o.forwardRef(c)},28058:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(1413),o=n(67294),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},a=n(42135),c=function(e,t){return o.createElement(a.Z,(0,r.Z)((0,r.Z)({},e),{},{ref:t,icon:i}))};c.displayName="WarningOutlined";var s=o.forwardRef(c)},86500:function(e,t,n){"use strict";n.d(t,{GC:function(){return d},T6:function(){return h},VD:function(){return v},WE:function(){return u},Wl:function(){return p},Yt:function(){return m},lC:function(){return i},py:function(){return s},rW:function(){return o},s:function(){return f},ve:function(){return c},vq:function(){return l}});var r=n(90279);function o(e,t,n){return{r:255*(0,r.sh)(e,255),g:255*(0,r.sh)(t,255),b:255*(0,r.sh)(n,255)}}function i(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,c=0,s=(o+i)/2;if(o===i)c=0,a=0;else{var u=o-i;switch(c=s>.5?u/(2-o-i):u/(o+i),o){case e:a=(t-n)/u+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function c(e,t,n){var o,i,c;if(e=(0,r.sh)(e,360),t=(0,r.sh)(t,100),n=(0,r.sh)(n,100),0===t)i=n,c=n,o=n;else{var s=n<.5?n*(1+t):n+t-n*t,u=2*n-s;o=a(u,s,e+1/3),i=a(u,s,e),c=a(u,s,e-1/3)}return{r:255*o,g:255*i,b:255*c}}function s(e,t,n){e=(0,r.sh)(e,255),t=(0,r.sh)(t,255),n=(0,r.sh)(n,255);var o=Math.max(e,t,n),i=Math.min(e,t,n),a=0,c=o,s=o-i,u=0===o?0:s/o;if(o===i)a=0;else{switch(o){case e:a=(t-n)/s+(t>16,g:(65280&e)>>8,b:255&e}}},48701:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},1350:function(e,t,n){"use strict";n.d(t,{ky:function(){return d},uA:function(){return a},uz:function(){return f}});var r=n(86500),o=n(48701),i=n(90279);function a(e){var t={r:0,g:0,b:0},n=1,o=null,a=null,c=null,s=!1,u=!1;return"string"===typeof e&&(e=f(e)),"object"===typeof e&&(d(e.r)&&d(e.g)&&d(e.b)?(t=(0,r.rW)(e.r,e.g,e.b),s=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):d(e.h)&&d(e.s)&&d(e.v)?(o=(0,i.JX)(e.s),a=(0,i.JX)(e.v),t=(0,r.WE)(e.h,o,a),s=!0,u="hsv"):d(e.h)&&d(e.s)&&d(e.l)&&(o=(0,i.JX)(e.s),c=(0,i.JX)(e.l),t=(0,r.ve)(e.h,o,c),s=!0,u="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=(0,i.Yq)(n),{ok:s,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var c="(?:".concat("[-\\+]?\\d*\\.\\d+%?",")|(?:").concat("[-\\+]?\\d+%?",")"),s="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),u="[\\s|\\(]+(".concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")[,|\\s]+(").concat(c,")\\s*\\)?"),l={CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+s),rgba:new RegExp("rgba"+u),hsl:new RegExp("hsl"+s),hsla:new RegExp("hsla"+u),hsv:new RegExp("hsv"+s),hsva:new RegExp("hsva"+u),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function f(e){if(0===(e=e.trim().toLowerCase()).length)return!1;var t=!1;if(o.R[e])e=o.R[e],t=!0;else if("transparent"===e)return{r:0,g:0,b:0,a:0,format:"name"};var n=l.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=l.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=l.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=l.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=l.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=l.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=l.hex8.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),a:(0,r.T6)(n[4]),format:t?"name":"hex8"}:(n=l.hex6.exec(e))?{r:(0,r.VD)(n[1]),g:(0,r.VD)(n[2]),b:(0,r.VD)(n[3]),format:t?"name":"hex"}:(n=l.hex4.exec(e))?{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),a:(0,r.T6)(n[4]+n[4]),format:t?"name":"hex8"}:!!(n=l.hex3.exec(e))&&{r:(0,r.VD)(n[1]+n[1]),g:(0,r.VD)(n[2]+n[2]),b:(0,r.VD)(n[3]+n[3]),format:t?"name":"hex"}}function d(e){return Boolean(l.CSS_UNIT.exec(String(e)))}},10274:function(e,t,n){"use strict";n.d(t,{C:function(){return c},H:function(){return s}});var r=n(86500),o=n(48701),i=n(1350),a=n(90279),c=function(){function e(t,n){var o;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;"number"===typeof t&&(t=(0,r.Yt)(t)),this.originalInput=t;var a=(0,i.uA)(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(o=n.format)&&void 0!==o?o:a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=(0,a.Yq)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=(0,r.py)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=(0,r.py)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.v);return 1===this.a?"hsv(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var e=(0,r.lC)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=(0,r.lC)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),o=Math.round(100*e.l);return 1===this.a?"hsl(".concat(t,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(e){return void 0===e&&(e=!1),(0,r.vq)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),(0,r.s)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb(".concat(e,", ").concat(t,", ").concat(n,")"):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var e=function(e){return"".concat(Math.round(100*(0,a.sh)(e,255)),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*(0,a.sh)(e,255))};return 1===this.a?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+(0,r.vq)(this.r,this.g,this.b,!1),t=0,n=Object.entries(o.R);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=(0,a.V2)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=(0,a.V2)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),o=new e(t).toRgb(),i=n/100;return new e({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),o=360/n,i=[this];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,o=n.s,i=n.v,a=[],c=1/t;t--;)a.push(new e({h:r,s:o,v:i})),i=(i+c)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,o=[this],i=360/t,a=1;a1)&&(e=1),e}function a(e){return e<=1?"".concat(100*Number(e),"%"):e}function c(e){return 1===e.length?"0"+e:String(e)}n.d(t,{FZ:function(){return c},JX:function(){return a},V2:function(){return o},Yq:function(){return i},sh:function(){return r}})},86743:function(e,t,n){"use strict";var r=n(87462),o=n(97685),i=n(30470),a=n(67294),c=n(71577),s=n(6134);function u(e){return!(!e||!e.then)}t.Z=function(e){var t=a.useRef(!1),n=a.useRef(),l=(0,i.Z)(!1),f=(0,o.Z)(l,2),d=f[0],p=f[1],h=e.close,v=function(){null===h||void 0===h||h.apply(void 0,arguments)};a.useEffect((function(){var t;if(e.autoFocus){var r=n.current;t=setTimeout((function(){return r.focus()}))}return function(){t&&clearTimeout(t)}}),[]);var m=e.type,g=e.children,y=e.prefixCls,b=e.buttonProps;return a.createElement(c.Z,(0,r.Z)({},(0,s.n)(m),{onClick:function(n){var r=e.actionFn;if(!t.current)if(t.current=!0,r){var o;if(e.emitEvent){if(o=r(n),e.quitOnNullishReturnValue&&!u(o))return t.current=!1,void v(n)}else if(r.length)o=r(h),t.current=!1;else if(!(o=r()))return void v();!function(e){u(e)&&(p(!0),e.then((function(){p(!1,!0),v.apply(void 0,arguments),t.current=!1}),(function(e){console.error(e),p(!1,!0),t.current=!1})))}(o)}else v()},loading:d,prefixCls:y},b,{ref:n}),g)}},98787:function(e,t,n){"use strict";n.d(t,{E:function(){return o},Y:function(){return i}});var r=n(93355),o=(0,r.b)("success","processing","error","default","warning"),i=(0,r.b)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},5467:function(e,t,n){"use strict";function r(e){return Object.keys(e).reduce((function(t,n){return!n.startsWith("data-")&&!n.startsWith("aria-")&&"role"!==n||n.startsWith("data-__")||(t[n]=e[n]),t}),{})}n.d(t,{Z:function(){return r}})},81643:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var r=function(e){return e?"function"===typeof e?e():e:null}},98082:function(e,t,n){"use strict";var r=n(97685),o=n(67294),i=n(31808);t.Z=function(){var e=o.useState(!1),t=(0,r.Z)(e,2),n=t[0],a=t[1];return o.useEffect((function(){a((0,i.fk)())}),[]),n}},33603:function(e,t,n){"use strict";n.d(t,{mL:function(){return s},q0:function(){return c}});var r=function(){return{height:0,opacity:0}},o=function(e){return{height:e.scrollHeight,opacity:1}},i=function(e,t){return!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName},a={motionName:"ant-motion-collapse",onAppearStart:r,onEnterStart:r,onAppearActive:o,onEnterActive:o,onLeaveStart:function(e){return{height:e?e.offsetHeight:0}},onLeaveActive:r,onAppearEnd:i,onEnterEnd:i,onLeaveEnd:i,motionDeadline:500},c=((0,n(93355).b)("bottomLeft","bottomRight","topLeft","topRight"),function(e){return void 0===e||"topLeft"!==e&&"topRight"!==e?"slide-up":"slide-down"}),s=function(e,t,n){return void 0!==n?n:"".concat(e,"-").concat(t)};t.ZP=a},80636:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(87462),o=n(43159),i={adjustX:1,adjustY:1},a={adjustX:0,adjustY:0},c=[0,0];function s(e){return"boolean"===typeof e?e?i:a:(0,r.Z)((0,r.Z)({},a),e)}function u(e){var t=e.arrowWidth,n=void 0===t?4:t,i=e.horizontalArrowShift,a=void 0===i?16:i,u=e.verticalArrowShift,l=void 0===u?8:u,f=e.autoAdjustOverflow,d=e.arrowPointAtCenter,p={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(a+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(l+n)]},topRight:{points:["br","tc"],offset:[a+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(l+n)]},bottomRight:{points:["tr","bc"],offset:[a+n,4]},rightBottom:{points:["bl","cr"],offset:[4,l+n]},bottomLeft:{points:["tl","bc"],offset:[-(a+n),4]},leftBottom:{points:["br","cl"],offset:[-4,l+n]}};return Object.keys(p).forEach((function(e){p[e]=d?(0,r.Z)((0,r.Z)({},p[e]),{overflow:s(f),targetOffset:c}):(0,r.Z)((0,r.Z)({},o.C[e]),{overflow:s(f)}),p[e].ignoreShake=!0})),p}},96159:function(e,t,n){"use strict";n.d(t,{M2:function(){return i},Tm:function(){return c},l$:function(){return o},wm:function(){return a}});var r=n(67294),o=r.isValidElement;function i(e){return e&&e.type===r.Fragment}function a(e,t,n){return o(e)?r.cloneElement(e,"function"===typeof n?n(e.props||{}):n):t}function c(e,t){return a(e,e,t)}},9708:function(e,t,n){"use strict";n.d(t,{F:function(){return c},Z:function(){return a}});var r=n(4942),o=n(94184),i=n.n(o);(0,n(93355).b)("warning","error","");function a(e,t,n){var o;return i()((o={},(0,r.Z)(o,"".concat(e,"-status-success"),"success"===t),(0,r.Z)(o,"".concat(e,"-status-warning"),"warning"===t),(0,r.Z)(o,"".concat(e,"-status-error"),"error"===t),(0,r.Z)(o,"".concat(e,"-status-validating"),"validating"===t),(0,r.Z)(o,"".concat(e,"-has-feedback"),n),o))}var c=function(e,t){return t||e}},31808:function(e,t,n){"use strict";n.d(t,{fk:function(){return a},jD:function(){return i}});var r,o=n(98924),i=function(){return(0,o.Z)()&&window.document.documentElement},a=function(){if(!i())return!1;if(void 0!==r)return r;var e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),r=1===e.scrollHeight,document.body.removeChild(e),r}},93355:function(e,t,n){"use strict";n.d(t,{a:function(){return o},b:function(){return r}});var r=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:1,n=h++,r=t;function o(){(r-=1)<=0?(e(),delete v[n]):v[n]=(0,p.Z)(o)}return v[n]=(0,p.Z)(o),n}m.cancel=function(e){void 0!==e&&(p.Z.cancel(v[e]),delete v[e])},m.ids=v;var g,y=n(96159);function b(e){return!e||null===e.offsetParent||e.hidden}function w(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(t&&t[1]&&t[2]&&t[3])||!(t[1]===t[2]&&t[2]===t[3])}var x=function(e){(0,c.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,o.Z)(this,n),(e=t.apply(this,arguments)).containerRef=f.createRef(),e.animationStart=!1,e.destroyed=!1,e.onClick=function(t,n){var r,o,i=e.props,c=i.insertExtraNode;if(!(i.disabled||!t||b(t)||t.className.indexOf("-leave")>=0)){e.extraNode=document.createElement("div");var s=(0,a.Z)(e).extraNode,l=e.context.getPrefixCls;s.className="".concat(l(""),"-click-animating-node");var f=e.getAttributeName();if(t.setAttribute(f,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&w(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){s.style.borderColor=n;var d=(null===(r=t.getRootNode)||void 0===r?void 0:r.call(t))||t.ownerDocument,p=d instanceof Document?d.body:null!==(o=d.firstChild)&&void 0!==o?o:d;g=(0,u.hq)("\n [".concat(l(""),"-click-animating-without-extra-node='true']::after, .").concat(l(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:e.csp,attachTo:p})}c&&t.appendChild(s),["transition","animation"].forEach((function(n){t.addEventListener("".concat(n,"start"),e.onTransitionStart),t.addEventListener("".concat(n,"end"),e.onTransitionEnd)}))}},e.onTransitionStart=function(t){if(!e.destroyed){var n=e.containerRef.current;t&&t.target===n&&!e.animationStart&&e.resetEffect(n)}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!b(n.target)){e.resetEffect(t);var r=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout((function(){return e.onClick(t,r)}),0),m.cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=m((function(){e.animationStart=!1}),10)}};return t.addEventListener("click",n,!0),{cancel:function(){t.removeEventListener("click",n,!0)}}}},e.renderWave=function(t){var n=t.csp,r=e.props.children;if(e.csp=n,!f.isValidElement(r))return r;var o=e.containerRef;return(0,l.Yr)(r)&&(o=(0,l.sQ)(r.ref,e.containerRef)),(0,y.Tm)(r,{ref:o})},e}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1;var e=this.containerRef.current;e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var e=this.context.getPrefixCls,t=this.props.insertExtraNode;return"".concat(e(""),t?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(e){var t=this;if(e&&e!==this.extraNode&&e instanceof Element){var n=this.props.insertExtraNode,r=this.getAttributeName();e.setAttribute(r,"false"),g&&(g.innerHTML=""),n&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),["transition","animation"].forEach((function(n){e.removeEventListener("".concat(n,"start"),t.onTransitionStart),e.removeEventListener("".concat(n,"end"),t.onTransitionEnd)}))}}},{key:"render",value:function(){return f.createElement(d.C,null,this.renderWave)}}]),n}(f.Component);x.contextType=d.E_;var E=(0,f.forwardRef)((function(e,t){return f.createElement(x,(0,r.Z)({ref:t},e))}))},14670:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var r=n(87462),o=n(97685),i=n(4942),a=n(89739),c=n(8751),s=n(4340),u=n(18429),l=n(97937),f=n(21640),d=n(11475),p=n(78860),h=n(45605),v=n(94184),m=n.n(v),g=n(62874),y=n(67294),b=n(53124),w=n(5467),x=n(96159),E=n(15671),C=n(43144),Z=n(60136),S=n(33643),k=function(e){(0,Z.Z)(n,e);var t=(0,S.Z)(n);function n(){var e;return(0,E.Z)(this,n),(e=t.apply(this,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,C.Z)(n,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){var e=this.props,t=e.message,n=e.description,r=e.children,o=this.state,i=o.error,a=o.info,c=a&&a.componentStack?a.componentStack:null,s="undefined"===typeof t?(i||"").toString():t,u="undefined"===typeof n?c:n;return i?y.createElement(A,{type:"error",message:s,description:y.createElement("pre",null,u)}):r}}]),n}(y.Component),N=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o1&&void 0!==arguments[1]?arguments[1]:L,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:F;switch(e){case"top":t={left:"50%",transform:"translateX(-50%)",right:"auto",top:n,bottom:"auto"};break;case"topLeft":t={left:0,top:n,bottom:"auto"};break;case"topRight":t={right:0,top:n,bottom:"auto"};break;case"bottom":t={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:r};break;case"bottomLeft":t={left:0,top:"auto",bottom:r};break;default:t={right:0,top:"auto",bottom:r}}return t}function U(e,t){var n=e.placement,r=void 0===n?V:n,o=e.top,i=e.bottom,a=e.getContainer,c=void 0===a?P:a,s=e.prefixCls,u=ae(),l=u.getPrefixCls,f=u.getIconPrefixCls,d=l("notification",s||I),p=f(),h="".concat(d,"-").concat(r),v=M[h];if(v)Promise.resolve(v).then((function(e){t({prefixCls:"".concat(d,"-notice"),iconPrefixCls:p,instance:e})}));else{var m=k()("".concat(d,"-").concat(r),(0,b.Z)({},"".concat(d,"-rtl"),!0===D));M[h]=new Promise((function(e){N.default.newInstance({prefixCls:d,className:m,style:z(r,o,i),getContainer:c,maxCount:A},(function(n){e(n),t({prefixCls:"".concat(d,"-notice"),iconPrefixCls:p,instance:n})}))}))}}var B={success:w.Z,info:Z.Z,error:x.Z,warning:C.Z};function H(e,t,n){var r=e.duration,o=e.icon,i=e.type,a=e.description,s=e.message,u=e.btn,l=e.onClose,f=e.onClick,d=e.key,p=e.style,h=e.className,v=e.closeIcon,m=void 0===v?R:v,g=void 0===r?j:r,y=null;o?y=c.createElement("span",{className:"".concat(t,"-icon")},e.icon):i&&(y=c.createElement(B[i]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(i)}));var w=c.createElement("span",{className:"".concat(t,"-close-x")},m||c.createElement(E.Z,{className:"".concat(t,"-close-icon")})),x=!a&&y?c.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:c.createElement(ue,{iconPrefixCls:n},c.createElement("div",{className:y?"".concat(t,"-with-icon"):"",role:"alert"},y,c.createElement("div",{className:"".concat(t,"-message")},x,s),c.createElement("div",{className:"".concat(t,"-description")},a),u?c.createElement("span",{className:"".concat(t,"-btn")},u):null)),duration:g,closable:!0,closeIcon:w,onClose:l,onClick:f,key:d,style:p||{},className:k()(h,(0,b.Z)({},"".concat(t,"-").concat(i),!!i))}}var W={open:function(e){U(e,(function(t){var n=t.prefixCls,r=t.iconPrefixCls;t.instance.notice(H(e,n,r))}))},close:function(e){Object.keys(M).forEach((function(t){return Promise.resolve(M[t]).then((function(t){t.removeNotice(e)}))}))},config:function(e){var t=e.duration,n=e.placement,r=e.bottom,o=e.top,i=e.getContainer,a=e.closeIcon,c=e.prefixCls;void 0!==c&&(I=c),void 0!==t&&(j=t),void 0!==n?V=n:e.rtl&&(V="topLeft"),void 0!==r&&(F=r),void 0!==o&&(L=o),void 0!==i&&(P=i),void 0!==a&&(R=a),void 0!==e.rtl&&(D=e.rtl),void 0!==e.maxCount&&(A=e.maxCount)},destroy:function(){Object.keys(M).forEach((function(e){Promise.resolve(M[e]).then((function(e){e.destroy()})),delete M[e]}))}};["success","info","warning","error"].forEach((function(e){W[e]=function(t){return W.open((0,r.Z)((0,r.Z)({},t),{type:e}))}})),W.warn=W.warning,W.useNotification=function(e,t){return function(){var n,o=null,i={add:function(e,t){null===o||void 0===o||o.component.add(e,t)}},a=(0,T.Z)(i),s=(0,_.Z)(a,2),u=s[0],l=s[1];var f=c.useRef({});return f.current.open=function(i){var a=i.prefixCls,c=n("notification",a);e((0,r.Z)((0,r.Z)({},i),{prefixCls:c}),(function(e){var n=e.prefixCls,r=e.instance;o=r,u(t(i,n))}))},["success","info","warning","error"].forEach((function(e){f.current[e]=function(t){return f.current.open((0,r.Z)((0,r.Z)({},t),{type:e}))}})),[f.current,c.createElement(O.C,{key:"holder"},(function(e){return n=e.getPrefixCls,l}))]}}(U,H);var q=W,$=n(92138),K=n(10274),G=n(98924),Y=n(44958),X="-ant-".concat(Date.now(),"-").concat(Math.random());function Q(e,t){var n=function(e,t){var n={},r=function(e,t){var n=e.clone();return(n=(null===t||void 0===t?void 0:t(n))||n).toRgbString()},o=function(e,t){var o=new K.C(e),i=(0,$.generate)(o.toRgbString());n["".concat(t,"-color")]=r(o),n["".concat(t,"-color-disabled")]=i[1],n["".concat(t,"-color-hover")]=i[4],n["".concat(t,"-color-active")]=i[6],n["".concat(t,"-color-outline")]=o.clone().setAlpha(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=i[0],n["".concat(t,"-color-deprecated-border")]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");var i=new K.C(t.primaryColor),a=(0,$.generate)(i.toRgbString());a.forEach((function(e,t){n["primary-".concat(t+1)]=e})),n["primary-color-deprecated-l-35"]=r(i,(function(e){return e.lighten(35)})),n["primary-color-deprecated-l-20"]=r(i,(function(e){return e.lighten(20)})),n["primary-color-deprecated-t-20"]=r(i,(function(e){return e.tint(20)})),n["primary-color-deprecated-t-50"]=r(i,(function(e){return e.tint(50)})),n["primary-color-deprecated-f-12"]=r(i,(function(e){return e.setAlpha(.12*e.getAlpha())}));var c=new K.C(a[0]);n["primary-color-active-deprecated-f-30"]=r(c,(function(e){return e.setAlpha(.3*e.getAlpha())})),n["primary-color-active-deprecated-d-02"]=r(c,(function(e){return e.darken(2)}))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");var s=Object.keys(n).map((function(t){return"--".concat(e,"-").concat(t,": ").concat(n[t],";")}));return"\n :root {\n ".concat(s.join("\n"),"\n }\n ").trim()}(e,t);(0,G.Z)()&&(0,Y.hq)(n,"".concat(X,"-dynamic-theme"))}var J,ee,te=n(98866),ne=n(97647),re=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form"];function oe(){return J||"ant"}function ie(){return ee||"anticon"}var ae=function(){return{getPrefixCls:function(e,t){return t||(e?"".concat(oe(),"-").concat(e):oe())},getIconPrefixCls:ie,getRootPrefixCls:function(e,t){return e||(J||(t&&t.includes("-")?t.replace(/^(.*)-[^-]*$/,"$1"):oe()))}}},ce=function(e){var t,n,s=e.children,u=e.csp,l=e.autoInsertSpaceInButton,f=e.form,d=e.locale,p=e.componentSize,h=e.direction,m=e.space,y=e.virtual,b=e.dropdownMatchSelectWidth,w=e.legacyLocale,x=e.parentContext,E=e.iconPrefixCls,C=e.componentDisabled,Z=c.useCallback((function(t,n){var r=e.prefixCls;if(n)return n;var o=r||x.getPrefixCls("");return t?"".concat(o,"-").concat(t):o}),[x.getPrefixCls,e.prefixCls]),S=(0,r.Z)((0,r.Z)({},x),{csp:u,autoInsertSpaceInButton:l,locale:d||w,direction:h,space:m,virtual:y,dropdownMatchSelectWidth:b,getPrefixCls:Z});re.forEach((function(t){var n=e[t];n&&(S[t]=n)}));var k=(0,a.Z)((function(){return S}),S,(function(e,t){var n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some((function(n){return e[n]!==t[n]}))})),N=c.useMemo((function(){return{prefixCls:E,csp:u}}),[E,u]),_=s,T={};return d&&(T=(null===(t=d.Form)||void 0===t?void 0:t.defaultValidateMessages)||(null===(n=g.Z.Form)||void 0===n?void 0:n.defaultValidateMessages)||{}),f&&f.validateMessages&&(T=(0,r.Z)((0,r.Z)({},T),f.validateMessages)),Object.keys(T).length>0&&(_=c.createElement(i.FormProvider,{validateMessages:T},s)),d&&(_=c.createElement(v,{locale:d,_ANT_MARK__:"internalMark"},_)),(E||u)&&(_=c.createElement(o.Z.Provider,{value:N},_)),p&&(_=c.createElement(ne.q,{size:p},_)),void 0!==C&&(_=c.createElement(te.n,{disabled:C},_)),c.createElement(O.E_.Provider,{value:k},_)},se=function(e){return c.useEffect((function(){e.direction&&(y.ZP.config({rtl:"rtl"===e.direction}),q.config({rtl:"rtl"===e.direction}))}),[e.direction]),c.createElement(m.Z,null,(function(t,n,o){return c.createElement(O.C,null,(function(t){return c.createElement(ce,(0,r.Z)({parentContext:t,legacyLocale:o},e))}))}))};se.ConfigContext=O.E_,se.SizeContext=ne.Z,se.config=function(e){var t=e.prefixCls,n=e.iconPrefixCls,r=e.theme;void 0!==t&&(J=t),void 0!==n&&(ee=n),r&&Q(oe(),r)};var ue=se},65223:function(e,t,n){"use strict";n.d(t,{Ux:function(){return a},aM:function(){return i}});var r=n(87462),o=(n(71990),n(67294)),i=o.createContext({}),a=function(e){var t=e.children,n=e.status,a=e.override,c=(0,o.useContext)(i),s=(0,o.useMemo)((function(){var e=(0,r.Z)({},c);return a&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e}),[n,a,c]);return o.createElement(i.Provider,{value:s},t)}},82586:function(e,t,n){"use strict";n.d(t,{ZP:function(){return x},D7:function(){return y},rJ:function(){return b},nH:function(){return w}});var r=n(4942),o=n(87462),i=n(71002),a=n(4340),c=n(94184),s=n.n(c),u=n(59775),l=n(42550),f=n(67294),d=n(53124),p=n(98866),h=n(97647),v=n(65223),m=n(9708);var g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);or&&(o=t),o}var R=p.forwardRef((function(e,t){var n,s=e.prefixCls,b=e.bordered,w=void 0===b||b,x=e.showCount,E=void 0!==x&&x,C=e.maxLength,Z=e.className,S=e.style,k=e.size,R=e.disabled,A=e.onCompositionStart,M=e.onCompositionEnd,j=e.onChange,L=e.status,F=T(e,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","status"]),I=p.useContext(h.E_),V=I.getPrefixCls,D=I.direction,z=p.useContext(m.Z),U=p.useContext(v.Z),B=R||U,H=p.useContext(g.aM),W=H.status,q=H.hasFeedback,$=H.isFormItemInput,K=H.feedbackIcon,G=(0,y.F)(W,L),Y=p.useRef(null),X=p.useRef(null),Q=p.useState(!1),J=(0,a.Z)(Q,2),ee=J[0],te=J[1],ne=p.useRef(),re=p.useRef(0),oe=(0,f.Z)(F.defaultValue,{value:F.value}),ie=(0,a.Z)(oe,2),ae=ie[0],ce=ie[1],se=F.hidden,ue=function(e,t){void 0===F.value&&(ce(e),null===t||void 0===t||t())},le=Number(C)>0,fe=V("input",s);p.useImperativeHandle(t,(function(){var e;return{resizableTextArea:null===(e=Y.current)||void 0===e?void 0:e.resizableTextArea,focus:function(e){var t,n;(0,_.nH)(null===(n=null===(t=Y.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:function(){var e;return null===(e=Y.current)||void 0===e?void 0:e.blur()}}}));var de=p.createElement(l.default,(0,i.Z)({},(0,d.Z)(F,["allowClear"]),{disabled:B,className:u()((n={},(0,o.Z)(n,"".concat(fe,"-borderless"),!w),(0,o.Z)(n,Z,Z&&!E),(0,o.Z)(n,"".concat(fe,"-sm"),"small"===z||"small"===k),(0,o.Z)(n,"".concat(fe,"-lg"),"large"===z||"large"===k),n),(0,y.Z)(fe,G)),style:E?void 0:S,prefixCls:fe,onCompositionStart:function(e){te(!0),ne.current=ae,re.current=e.currentTarget.selectionStart,null===A||void 0===A||A(e)},onChange:function(e){var t=e.target.value;!ee&&le&&(t=P(e.target.selectionStart>=C+1||e.target.selectionStart===t.length||!e.target.selectionStart,ae,t,C));ue(t),(0,_.rJ)(e.currentTarget,e,j,t)},onCompositionEnd:function(e){var t;te(!1);var n=e.currentTarget.value;le&&(n=P(re.current>=C+1||re.current===(null===(t=ne.current)||void 0===t?void 0:t.length),ne.current,n,C));n!==ae&&(ue(n),(0,_.rJ)(e.currentTarget,e,j,n)),null===M||void 0===M||M(e)},ref:Y})),pe=(0,_.D7)(ae);ee||!le||null!==F.value&&void 0!==F.value||(pe=O(pe,C));var he=p.createElement(N,(0,i.Z)({disabled:B},F,{prefixCls:fe,direction:D,inputType:"text",value:pe,element:de,handleReset:function(e){var t,n,r;ue(""),null===(t=Y.current)||void 0===t||t.focus(),(0,_.rJ)(null===(r=null===(n=Y.current)||void 0===n?void 0:n.resizableTextArea)||void 0===r?void 0:r.textArea,e,j)},ref:X,bordered:w,status:L,style:E?void 0:S}));if(E||q){var ve,me=(0,c.Z)(pe).length,ge="";return ge="object"===(0,r.Z)(E)?E.formatter({value:pe,count:me,maxLength:C}):"".concat(me).concat(le?" / ".concat(C):""),p.createElement("div",{hidden:se,className:u()("".concat(fe,"-textarea"),(ve={},(0,o.Z)(ve,"".concat(fe,"-textarea-rtl"),"rtl"===D),(0,o.Z)(ve,"".concat(fe,"-textarea-show-count"),E),(0,o.Z)(ve,"".concat(fe,"-textarea-in-form-item"),$),ve),(0,y.Z)("".concat(fe,"-textarea"),G,q),Z),style:S,"data-count":ge},he,q&&p.createElement("span",{className:"".concat(fe,"-textarea-suffix")},K))}return he}))},69677:function(e,t,n){"use strict";n.d(t,{Z:function(){return T}});var r=n(87462),o=n(4942),i=n(94184),a=n.n(i),c=n(67294),s=n(53124),u=n(65223),l=function(e){var t,n=(0,c.useContext)(s.E_),i=n.getPrefixCls,l=n.direction,f=e.prefixCls,d=e.className,p=void 0===d?"":d,h=i("input-group",f),v=a()(h,(t={},(0,o.Z)(t,"".concat(h,"-lg"),"large"===e.size),(0,o.Z)(t,"".concat(h,"-sm"),"small"===e.size),(0,o.Z)(t,"".concat(h,"-compact"),e.compact),(0,o.Z)(t,"".concat(h,"-rtl"),"rtl"===l),t),p),m=(0,c.useContext)(u.aM),g=(0,c.useMemo)((function(){return(0,r.Z)((0,r.Z)({},m),{isFormItemInput:!1})}),[m]);return c.createElement("span",{className:v,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},c.createElement(u.aM.Provider,{value:g},e.children))},f=n(82586),d=n(97685),p=n(90420),h=n(99611),v=n(98423),m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}();var Z=c.forwardRef((function(e,t){var n=e.prefixCls,a=e.className,s=e.trigger,u=e.children,l=e.defaultCollapsed,h=void 0!==l&&l,Z=e.theme,S=void 0===Z?"dark":Z,k=e.style,N=void 0===k?{}:k,_=e.collapsible,T=void 0!==_&&_,O=e.reverseArrow,P=void 0!==O&&O,R=e.width,A=void 0===R?200:R,M=e.collapsedWidth,j=void 0===M?80:M,L=e.zeroWidthTriggerStyle,F=e.breakpoint,I=e.onCollapse,V=e.onBreakpoint,D=w(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),z=(0,c.useContext)(b.Gs).siderHook,U=(0,c.useState)("collapsed"in D?D.collapsed:h),B=(0,i.Z)(U,2),H=B[0],W=B[1],q=(0,c.useState)(!1),$=(0,i.Z)(q,2),K=$[0],G=$[1];(0,c.useEffect)((function(){"collapsed"in D&&W(D.collapsed)}),[D.collapsed]);var Y=function(e,t){"collapsed"in D||W(e),null===I||void 0===I||I(e,t)},X=(0,c.useRef)();X.current=function(e){G(e.matches),null===V||void 0===V||V(e.matches),H!==e.matches&&Y(e.matches,"responsive")},(0,c.useEffect)((function(){function e(e){return X.current(e)}var t;if("undefined"!==typeof window){var n=window.matchMedia;if(n&&F&&F in x){t=n("(max-width: ".concat(x[F],")"));try{t.addEventListener("change",e)}catch(r){t.addListener(e)}e(t)}}return function(){try{null===t||void 0===t||t.removeEventListener("change",e)}catch(r){null===t||void 0===t||t.removeListener(e)}}}),[F]),(0,c.useEffect)((function(){var e=C("ant-sider-");return z.addSider(e),function(){return z.removeSider(e)}}),[]);var Q=function(){Y(!H,"clickTrigger")},J=(0,c.useContext)(g.E_).getPrefixCls,ee=c.useMemo((function(){return{siderCollapsed:H}}),[H]);return c.createElement(E.Provider,{value:ee},function(){var e,i=J("layout-sider",n),l=(0,m.Z)(D,["collapsed"]),h=H?j:A,g=y(h)?"".concat(h,"px"):String(h),b=0===parseFloat(String(j||0))?c.createElement("span",{onClick:Q,className:v()("".concat(i,"-zero-width-trigger"),"".concat(i,"-zero-width-trigger-").concat(P?"right":"left")),style:L},s||c.createElement(f,null)):null,w={expanded:P?c.createElement(p.Z,null):c.createElement(d.Z,null),collapsed:P?c.createElement(d.Z,null):c.createElement(p.Z,null)}[H?"collapsed":"expanded"],x=null!==s?b||c.createElement("div",{className:"".concat(i,"-trigger"),onClick:Q,style:{width:g}},s||w):null,E=(0,o.Z)((0,o.Z)({},N),{flex:"0 0 ".concat(g),maxWidth:g,minWidth:g,width:g}),C=v()(i,"".concat(i,"-").concat(S),(e={},(0,r.Z)(e,"".concat(i,"-collapsed"),!!H),(0,r.Z)(e,"".concat(i,"-has-trigger"),T&&null!==s&&!b),(0,r.Z)(e,"".concat(i,"-below"),!!K),(0,r.Z)(e,"".concat(i,"-zero-width"),0===parseFloat(g)),e),a);return c.createElement("aside",(0,o.Z)({className:C},l,{style:E,ref:t}),c.createElement("div",{className:"".concat(i,"-children")},u),T||K&&b?x:null)}())}))},97183:function(e,t,n){"use strict";var r=n(2897),o=n(7293),i=r.ZP;i.Header=r.h4,i.Footer=r.$_,i.Content=r.VY,i.Sider=o.Z,t.Z=i},2897:function(e,t,n){"use strict";n.d(t,{$_:function(){return y},Gs:function(){return d},VY:function(){return b},h4:function(){return g}});var r=n(74902),o=n(4942),i=n(97685),a=n(87462),c=n(94184),s=n.n(c),u=n(67294),l=n(53124),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o0),(0,o.Z)(n,"".concat(g,"-rtl"),"rtl"===c),n),y),Z=u.useMemo((function(){return{siderHook:{addSider:function(e){m((function(t){return[].concat((0,r.Z)(t),[e])}))},removeSider:function(e){m((function(t){return t.filter((function(t){return t!==e}))}))}}}}),[]);return u.createElement(d.Provider,{value:Z},u.createElement(x,(0,a.Z)({ref:t,className:C},E),b))})),m=p({suffixCls:"layout",tagName:"section",displayName:"Layout"})(v),g=p({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(h),y=p({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(h),b=p({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(h);t.ZP=m},23715:function(e,t,n){"use strict";n.d(t,{Z:function(){return f},E:function(){return d}});var r=n(87462),o=n(15671),i=n(43144),a=n(60136),c=n(33643),s=n(67294),u=n(67178),l=n(6213).Z,f=function(e){(0,a.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"getLocale",value:function(){var e=this.props,t=e.componentName,n=e.defaultLocale||l[null!==t&&void 0!==t?t:"global"],o=this.context,i=t&&o?o[t]:{};return(0,r.Z)((0,r.Z)({},n instanceof Function?n():n),i||{})}},{key:"getLocaleCode",value:function(){var e=this.context,t=e&&e.locale;return e&&e.exist&&!t?l.locale:t}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),n}(s.Component);function d(e,t){var n=s.useContext(u.Z);return[s.useMemo((function(){var o=t||l[e||"global"],i=e&&n?n[e]:{};return(0,r.Z)((0,r.Z)({},"function"===typeof o?o():o),i||{})}),[e,t,n])]}f.defaultProps={componentName:"global"},f.contextType=u.Z},67178:function(e,t,n){"use strict";var r=(0,n(67294).createContext)(void 0);t.Z=r},6213:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(62906),o=n(87462),i={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},a={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},c={lang:(0,o.Z)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},i),timePickerLocale:(0,o.Z)({},a)},s=c,u="${label} is not a valid ${type}",l={locale:"en",Pagination:r.Z,DatePicker:c,TimePicker:a,Calendar:s,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:u,method:u,array:u,object:u,number:u,date:u,boolean:u,integer:u,float:u,regexp:u,email:u,url:u,hex:u},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}}},76529:function(e,t,n){"use strict";n.d(t,{J:function(){return c}});var r=n(87462),o=n(67294),i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0||r.indexOf("Bottom")>=0?i.top="".concat(o.height-t.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(i.top="".concat(-t.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?i.left="".concat(o.width-t.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(i.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(i.left," ").concat(i.top)}},overlayInnerStyle:H,arrowContent:l.createElement("span",{className:"".concat(L,"-arrow-content"),style:V}),motion:{motionName:(0,p.mL)(F,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),I?(0,v.Tm)(D,{className:U}):D)}));b.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0},t.Z=b},84485:function(e,t,n){"use strict";n.d(t,{Z:function(){return le}});var r=n(87462),o=n(67294),i=n(4942),a=n(71002),c=n(97685),s=n(63606),u=n(57132),l=n(86548),f=n(94184),d=n.n(f),p=n(20640),h=n.n(p),v=n(48555),m=n(50344),g=n(8410),y=n(21770),b=n(98423),w=n(42550),x=n(53124),E=n(23715),C=n(15105),Z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);ot){var c=t-n;return r.push(String(i).slice(0,c)),r}r.push(i),n=a}return e}var B=function(e){var t=e.enabledMeasure,n=e.children,i=e.text,a=e.width,s=e.rows,u=e.onEllipsis,l=o.useState([0,0,0]),f=(0,c.Z)(l,2),d=f[0],p=f[1],h=o.useState(0),v=(0,c.Z)(h,2),y=v[0],b=v[1],w=(0,c.Z)(d,3),x=w[0],E=w[1],C=w[2],Z=o.useState(0),S=(0,c.Z)(Z,2),k=S[0],N=S[1],_=o.useRef(null),T=o.useRef(null),O=o.useMemo((function(){return(0,m.Z)(i)}),[i]),P=o.useMemo((function(){return function(e){var t=0;return e.forEach((function(e){z(e)?t+=String(e).length:t+=1})),t}(O)}),[O]),R=o.useMemo((function(){return t&&3===y?n(U(O,E),E1&&Je,rt=function(e){var t;Re(!0),null===(t=Ke.onExpand)||void 0===t||t.call(Ke,e)},ot=o.useState(0),it=(0,c.Z)(ot,2),at=it[0],ct=it[1],st=function(e){var t;Le(e),je!==e&&(null===(t=Ke.onEllipsis)||void 0===t||t.call(Ke,e))};o.useEffect((function(){var e=U.current;if($e&&Je&&e){var t=nt?e.offsetHeight1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},93645:function(e,t,n){"use strict";n.d(t,{u:function(){return o}});var r={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function o(e){return e?r[e]:r.trunc}},59910:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(19013),o=n(13882);function i(e,t){return(0,o.Z)(2,arguments),(0,r.Z)(e).getTime()-(0,r.Z)(t).getTime()}},11699:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(59910),o=n(13882),i=n(93645);function a(e,t,n){(0,o.Z)(2,arguments);var a=(0,r.Z)(e,t)/1e3;return(0,i.u)(null===n||void 0===n?void 0:n.roundingMethod)(a)}},19013:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(13882);function o(e){(0,r.Z)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}},18552:function(e,t,n){var r=n(10852)(n(55639),"DataView");e.exports=r},1989:function(e,t,n){var r=n(51789),o=n(80401),i=n(57667),a=n(21327),c=n(81866);function s(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tl))return!1;var d=s.get(e),p=s.get(t);if(d&&p)return d==t&&p==e;var h=-1,v=!0,m=2&n?new r:void 0;for(s.set(e,t),s.set(t,e);++h-1&&e%1==0&&e-1}},54705:function(e,t,n){var r=n(18470);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},24785:function(e,t,n){var r=n(1989),o=n(38407),i=n(57071);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},11285:function(e,t,n){var r=n(45050);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).get(e)}},49916:function(e,t,n){var r=n(45050);e.exports=function(e){return r(this,e).has(e)}},95265:function(e,t,n){var r=n(45050);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},94536:function(e,t,n){var r=n(10852)(Object,"create");e.exports=r},86916:function(e,t,n){var r=n(5569)(Object.keys,Object);e.exports=r},31167:function(e,t,n){e=n.nmd(e);var r=n(31957),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=c},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},55639:function(e,t,n){var r=n(31957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},37465:function(e,t,n){var r=n(38407);e.exports=function(){this.__data__=new r,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,n){var r=n(38407),o=n(57071),i=n(83369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},77813:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},35694:function(e,t,n){var r=n(9454),o=n(37005),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!c.call(e,"callee")};e.exports=s},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,n){var r=n(23560),o=n(41780);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},44144:function(e,t,n){e=n.nmd(e);var r=n(55639),o=n(95062),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,c=a&&a.exports===i?r.Buffer:void 0,s=(c?c.isBuffer:void 0)||o;e.exports=s},18446:function(e,t,n){var r=n(90939);e.exports=function(e,t){return r(e,t)}},23560:function(e,t,n){var r=n(44239),o=n(13218);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},36719:function(e,t,n){var r=n(38749),o=n(7518),i=n(31167),a=i&&i.isTypedArray,c=a?o(a):r;e.exports=c},3674:function(e,t,n){var r=n(14636),o=n(280),i=n(98612);e.exports=function(e){return i(e)?r(e):o(e)}},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},30845:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return i}});var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function o(e,t){if(e.length!==t.length)return!1;for(var n=0;nNumber.MAX_SAFE_INTEGER)return String(N()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(r0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":P(this.number):this.origin}}]),e}(),j=function(){function e(t){if((0,S.Z)(this,e),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,(t||0===t)&&String(t).trim())if(this.origin=String(t),"-"!==t){var n=t;if(T(n)&&(n=Number(n)),R(n="string"===typeof n?n:P(n))){var r=_(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}else this.nan=!0;else this.empty=!0}return(0,k.Z)(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(e){var t="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(e,"0"));return BigInt(t)}},{key:"negate",value:function(){var t=new e(this.toString());return t.negative=!t.negative,t}},{key:"add",value:function(t){if(this.isInvalidate())return new e(t);var n=new e(t);if(n.isInvalidate())return this;var r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),o=_((this.alignDecimal(r)+n.alignDecimal(r)).toString()),i=o.negativeStr,a=o.trimStr,c="".concat(i).concat(a.padStart(r+1,"0"));return new e("".concat(c.slice(0,-r),".").concat(c.slice(-r)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null===e||void 0===e?void 0:e.toString())}},{key:"lessEquals",value:function(e){return this.add(e.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e?this.isInvalidate()?"":_("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}();function L(e){return N()?new j(e):new M(e)}function F(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var o=_(e),i=o.negativeStr,a=o.integerStr,c=o.decimalStr,s="".concat(t).concat(c),u="".concat(i).concat(a);if(n>=0){var l=Number(c[n]);if(l>=5&&!r){var f=L(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-l));return F(f.toString(),t,n,r)}return 0===n?u:"".concat(u).concat(t).concat(c.padEnd(n,"0").slice(0,n))}return".0"===s?u:"".concat(u).concat(s)}var I=n(31131);function V(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=c.useRef(),l=c.useRef();l.current=a;var p=function(e,t){e.preventDefault(),l.current(t),s.current=setTimeout((function e(){l.current(t),s.current=setTimeout(e,200)}),600)},h=function(){clearTimeout(s.current)};if(c.useEffect((function(){return h}),[]),(0,I.Z)())return null;var v="".concat(t,"-handler"),m=u()(v,"".concat(v,"-up"),(0,d.Z)({},"".concat(v,"-up-disabled"),o)),g=u()(v,"".concat(v,"-down"),(0,d.Z)({},"".concat(v,"-down-disabled"),i)),y={unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h};return c.createElement("div",{className:"".concat(v,"-wrap")},c.createElement("span",(0,f.Z)({},y,{onMouseDown:function(e){p(e,!0)},"aria-label":"Increase Value","aria-disabled":o,className:m}),n||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),c.createElement("span",(0,f.Z)({},y,{onMouseDown:function(e){p(e,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:g}),r||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}var D=n(80334);var z=n(75164),U=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],B=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},H=function(e){var t=L(e);return t.isInvalidate()?null:t},W=c.forwardRef((function(e,t){var n,r=e.prefixCls,o=void 0===r?"rc-input-number":r,i=e.className,a=e.style,s=e.min,l=e.max,v=e.step,m=void 0===v?1:v,g=e.defaultValue,y=e.value,b=e.disabled,w=e.readOnly,S=e.upHandler,k=e.downHandler,N=e.keyboard,_=e.controls,T=void 0===_||_,M=e.stringMode,j=e.parser,I=e.formatter,W=e.precision,q=e.decimalSeparator,$=e.onChange,K=e.onInput,G=e.onPressEnter,Y=e.onStep,X=(0,x.Z)(e,U),Q="".concat(o,"-input"),J=c.useRef(null),ee=c.useState(!1),te=(0,h.Z)(ee,2),ne=te[0],re=te[1],oe=c.useRef(!1),ie=c.useRef(!1),ae=c.useRef(!1),ce=c.useState((function(){return L(null!==y&&void 0!==y?y:g)})),se=(0,h.Z)(ce,2),ue=se[0],le=se[1];var fe=c.useCallback((function(e,t){if(!t)return W>=0?W:Math.max(O(e),O(m))}),[W,m]),de=c.useCallback((function(e){var t=String(e);if(j)return j(t);var n=t;return q&&(n=n.replace(q,".")),n.replace(/[^\w.-]+/g,"")}),[j,q]),pe=c.useRef(""),he=c.useCallback((function(e,t){if(I)return I(e,{userTyping:t,input:String(pe.current)});var n="number"===typeof e?P(e):e;if(!t){var r=fe(n,t);if(R(n)&&(q||r>=0))n=F(n,q||".",r)}return n}),[I,fe,q]),ve=c.useState((function(){var e=null!==g&&void 0!==g?g:y;return ue.isInvalidate()&&["string","number"].includes((0,p.Z)(e))?Number.isNaN(e)?"":e:he(ue.toString(),!1)})),me=(0,h.Z)(ve,2),ge=me[0],ye=me[1];function be(e,t){ye(he(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}pe.current=ge;var we=c.useMemo((function(){return H(l)}),[l,W]),xe=c.useMemo((function(){return H(s)}),[s,W]),Ee=c.useMemo((function(){return!(!we||!ue||ue.isInvalidate())&&we.lessEquals(ue)}),[we,ue]),Ce=c.useMemo((function(){return!(!xe||!ue||ue.isInvalidate())&&ue.lessEquals(xe)}),[xe,ue]),Ze=function(e,t){var n=(0,c.useRef)(null);return[function(){try{var t=e.selectionStart,r=e.selectionEnd,o=e.value,i=o.substring(0,t),a=o.substring(r);n.current={start:t,end:r,value:o,beforeTxt:i,afterTxt:a}}catch(c){}},function(){if(e&&n.current&&t)try{var r=e.value,o=n.current,i=o.beforeTxt,a=o.afterTxt,c=o.start,s=r.length;if(r.endsWith(a))s=r.length-n.current.afterTxt.length;else if(r.startsWith(i))s=i.length;else{var u=i[c-1],l=r.indexOf(u,c-1);-1!==l&&(s=l+1)}e.setSelectionRange(s,s)}catch(f){(0,D.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(f.message))}}]}(J.current,ne),Se=(0,h.Z)(Ze,2),ke=Se[0],Ne=Se[1],_e=function(e){return we&&!e.lessEquals(we)?we:xe&&!xe.lessEquals(e)?xe:null},Te=function(e){return!_e(e)},Oe=function(e,t){var n,r=e,o=Te(r)||r.isEmpty();if(r.isEmpty()||t||(r=_e(r)||r,o=!0),!w&&!b&&o){var i=r.toString(),a=fe(i,t);return a>=0&&(r=L(F(i,".",a)),Te(r)||(r=L(F(i,".",a,!0)))),r.equals(ue)||(n=r,void 0===y&&le(n),null===$||void 0===$||$(r.isEmpty()?null:B(M,r)),void 0===y&&be(r,t)),r}return ue},Pe=function(){var e=(0,c.useRef)(0),t=function(){z.Z.cancel(e.current)};return(0,c.useEffect)((function(){return t}),[]),function(n){t(),e.current=(0,z.Z)((function(){n()}))}}(),Re=function e(t){if(ke(),ye(t),!ie.current){var n=L(de(t));n.isNaN()||Oe(n,!0)}null===K||void 0===K||K(t),Pe((function(){var n=t;j||(n=t.replace(/\u3002/g,".")),n!==t&&e(n)}))},Ae=function(e){var t;if(!(e&&Ee||!e&&Ce)){oe.current=!1;var n=L(ae.current?A(m):m);e||(n=n.negate());var r=(ue||L(0)).add(n.toString()),o=Oe(r,!1);null===Y||void 0===Y||Y(B(M,o),{offset:ae.current?A(m):m,type:e?"up":"down"}),null===(t=J.current)||void 0===t||t.focus()}},Me=function(e){var t=L(de(ge)),n=t;n=t.isNaN()?ue:Oe(t,e),void 0!==y?be(ue,!1):n.isNaN()||be(n,!1)};return(0,C.o)((function(){ue.isInvalidate()||be(ue,!1)}),[W]),(0,C.o)((function(){var e=L(y);le(e);var t=L(de(ge));e.equals(t)&&oe.current&&!I||be(e,oe.current)}),[y]),(0,C.o)((function(){I&&Ne()}),[ge]),c.createElement("div",{className:u()(o,i,(n={},(0,d.Z)(n,"".concat(o,"-focused"),ne),(0,d.Z)(n,"".concat(o,"-disabled"),b),(0,d.Z)(n,"".concat(o,"-readonly"),w),(0,d.Z)(n,"".concat(o,"-not-a-number"),ue.isNaN()),(0,d.Z)(n,"".concat(o,"-out-of-range"),!ue.isInvalidate()&&!Te(ue)),n)),style:a,onFocus:function(){re(!0)},onBlur:function(){Me(!1),re(!1),oe.current=!1},onKeyDown:function(e){var t=e.which,n=e.shiftKey;oe.current=!0,ae.current=!!n,t===E.Z.ENTER&&(ie.current||(oe.current=!1),Me(!1),null===G||void 0===G||G(e)),!1!==N&&!ie.current&&[E.Z.UP,E.Z.DOWN].includes(t)&&(Ae(E.Z.UP===t),e.preventDefault())},onKeyUp:function(){oe.current=!1,ae.current=!1},onCompositionStart:function(){ie.current=!0},onCompositionEnd:function(){ie.current=!1,Re(J.current.value)}},T&&c.createElement(V,{prefixCls:o,upNode:S,downNode:k,upDisabled:Ee,downDisabled:Ce,onStep:Ae}),c.createElement("div",{className:"".concat(Q,"-wrap")},c.createElement("input",(0,f.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":ue.isInvalidate()?null:ue.toString(),step:m},X,{ref:(0,Z.sQ)(J,t),className:Q,value:ge,onChange:function(e){Re(e.target.value)},disabled:b,readOnly:w}))))}));W.displayName="InputNumber";var q=W,$=n(53124),K=n(98866),G=n(97647),Y=n(65223),X=n(96159),Q=n(9708),J=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=n(34051),s=n.n(c),u=n(85893),l=n(71577),f=n(94184),d=n.n(f),p=n(67294),h=n(25964),v=n(83192),m=n(35159),g=n(25521),y=n(24389),b="default",w="textarea",x="url",E=function(e){var t=e.apiPath,n=e.configPath,c=void 0===n?"":n,f=e.initialValue,b=e.useTrim,w=e.useTrimLead,x=a(e,["apiPath","configPath","initialValue","useTrim","useTrimLead"]),E=(0,p.useState)(null),C=E[0],Z=E[1],S=(0,p.useState)(!1),k=S[0],N=S[1],_=((0,p.useContext)(m.aC)||{}).setFieldInConfigState,T=null,O=x.fieldName,P=x.required,R=x.tip,A=x.status,M=x.value,j=x.onChange,L=x.onSubmit,F=function(){Z(null),N(!1),clearTimeout(T),T=null};(0,p.useEffect)((function(){P&&(""===M||null===M)||M===f?N(!1):(F(),N(!0))}),[M]);var I=function(){var e=(0,r.Z)(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(P&&""!==M||M!==f)){e.next=6;break}return Z((0,v.kg)(v.Jk)),e.next=4,(0,h.Si)({apiPath:t,data:{value:M},onSuccess:function(){_({fieldName:O,value:M,path:c}),Z((0,v.kg)(v.zv))},onError:function(e){Z((0,v.kg)(v.Un,"There was an error: ".concat(e)))}});case 4:T=setTimeout(F,h.sI),L&&L();case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=d()({"textfield-with-submit-container":!0,submittable:k});return(0,u.jsxs)("div",{className:V,children:[(0,u.jsx)("div",{className:"textfield-component",children:(0,u.jsx)(y.nv,(0,i.Z)((0,o.Z)({},x),{onSubmit:null,onBlur:function(e){var t=e.value;j&&P&&""===t&&j({fieldName:O,value:f})},onChange:function(e){var t=e.fieldName,n=e.value;if(j){var r=n;b?r=n.trim():w&&(r=n.replace(/^\s+/g,"")),j({fieldName:t,value:r})}}}))}),(0,u.jsxs)("div",{className:"formfield-container lower-container",children:[(0,u.jsx)("p",{className:"label-spacer"}),(0,u.jsxs)("div",{className:"lower-content",children:[(0,u.jsx)("div",{className:"field-tip",children:R}),(0,u.jsx)(g.E,{status:A||C}),(0,u.jsx)("div",{className:"update-button-container",children:(0,u.jsx)(l.Z,{type:"primary",size:"small",className:"submit-button",onClick:I,disabled:!k,children:"Update"})})]})]})]})};E.defaultProps={configPath:"",initialValue:""}},71210:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,n,r){return!1};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},48418:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(94941).Z;n(45753).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(92648).Z,i=n(17273).Z,a=o(n(67294)),c=n(76273),s=n(22725),u=n(63462),l=n(21018),f=n(57190),d=n(71210),p=n(98684),h="undefined"!==typeof a.default.useTransition,v={};function m(e,t,n,r){if(e&&c.isLocalURL(t)){e.prefetch(t,n,r).catch((function(e){0}));var o=r&&"undefined"!==typeof r.locale?r.locale:e&&e.locale;v[t+"%"+n+(o?"%"+o:"")]=!0}}var g=a.default.forwardRef((function(e,t){var n,o=e.href,g=e.as,y=e.children,b=e.prefetch,w=e.passHref,x=e.replace,E=e.soft,C=e.shallow,Z=e.scroll,S=e.locale,k=e.onClick,N=e.onMouseEnter,_=e.onTouchStart,T=e.legacyBehavior,O=void 0===T?!0!==Boolean(!1):T,P=i(e,["href","as","children","prefetch","passHref","replace","soft","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);n=y,!O||"string"!==typeof n&&"number"!==typeof n||(n=a.default.createElement("a",null,n));var R=!1!==b,A=r(h?a.default.useTransition():[],2)[1],M=a.default.useContext(u.RouterContext),j=a.default.useContext(l.AppRouterContext);j&&(M=j);var L,F=a.default.useMemo((function(){var e=r(c.resolveHref(M,o,!0),2),t=e[0],n=e[1];return{href:t,as:g?c.resolveHref(M,g):n||t}}),[M,o,g]),I=F.href,V=F.as,D=a.default.useRef(I),z=a.default.useRef(V);O&&(L=a.default.Children.only(n));var U=O?L&&"object"===typeof L&&L.ref:t,B=r(f.useIntersection({rootMargin:"200px"}),3),H=B[0],W=B[1],q=B[2],$=a.default.useCallback((function(e){z.current===V&&D.current===I||(q(),z.current=V,D.current=I),H(e),U&&("function"===typeof U?U(e):"object"===typeof U&&(U.current=e))}),[V,U,I,q,H]);a.default.useEffect((function(){var e=W&&R&&c.isLocalURL(I),t="undefined"!==typeof S?S:M&&M.locale,n=v[I+"%"+V+(t?"%"+t:"")];e&&!n&&m(M,I,V,{locale:t})}),[V,I,W,S,R,M]);var K={ref:$,onClick:function(e){O||"function"!==typeof k||k(e),O&&L.props&&"function"===typeof L.props.onClick&&L.props.onClick(e),e.defaultPrevented||function(e,t,n,r,o,i,a,s,u,l){if("A"!==e.currentTarget.nodeName.toUpperCase()||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&c.isLocalURL(n)){e.preventDefault();var f=function(){"softPush"in t&&"softReplace"in t?t[i?o?"softReplace":"softPush":o?"replace":"push"](n):t[o?"replace":"push"](n,r,{shallow:a,locale:u,scroll:s})};l?l(f):f()}}(e,M,I,V,x,E,C,Z,S,j?A:void 0)},onMouseEnter:function(e){O||"function"!==typeof N||N(e),O&&L.props&&"function"===typeof L.props.onMouseEnter&&L.props.onMouseEnter(e),c.isLocalURL(I)&&m(M,I,V,{priority:!0})},onTouchStart:function(e){O||"function"!==typeof _||_(e),O&&L.props&&"function"===typeof L.props.onTouchStart&&L.props.onTouchStart(e),c.isLocalURL(I)&&m(M,I,V,{priority:!0})}};if(!O||w||"a"===L.type&&!("href"in L.props)){var G="undefined"!==typeof S?S:M&&M.locale,Y=M&&M.isLocaleDomain&&d.getDomainLocale(V,G,M.locales,M.domainLocales);K.href=Y||p.addBasePath(s.addLocale(V,G,M&&M.defaultLocale))}return O?a.default.cloneElement(L,K):a.default.createElement("a",Object.assign({},P,K),n)}));t.default=g,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57190:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(94941).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootRef,n=e.rootMargin,u=e.disabled||!a,l=o.useRef(),f=r(o.useState(!1),2),d=f[0],p=f[1],h=r(o.useState(null),2),v=h[0],m=h[1];o.useEffect((function(){if(a){if(l.current&&(l.current(),l.current=void 0),u||d)return;return v&&v.tagName&&(l.current=function(e,t,n){var r=function(e){var t,n={root:e.root||null,margin:e.rootMargin||""},r=s.find((function(e){return e.root===n.root&&e.margin===n.margin}));if(r&&(t=c.get(r)))return t;var o=new Map,i=new IntersectionObserver((function(e){e.forEach((function(e){var t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return t={id:n,observer:i,elements:o},s.push(n),c.set(n,t),t}(n),o=r.id,i=r.observer,a=r.elements;return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),c.delete(o);var t=s.findIndex((function(e){return e.root===o.root&&e.margin===o.margin}));t>-1&&s.splice(t,1)}}}(v,(function(e){return e&&p(e)}),{root:null==t?void 0:t.current,rootMargin:n})),function(){null==l.current||l.current(),l.current=void 0}}if(!d){var e=i.requestIdleCallback((function(){return p(!0)}));return function(){return i.cancelIdleCallback(e)}}}),[v,u,n,t,d]);var g=o.useCallback((function(){p(!1)}),[]);return[m,d,g]};var o=n(67294),i=n(9311),a="function"===typeof IntersectionObserver;var c=new Map,s=[];("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},21018:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalLayoutRouterContext=t.LayoutRouterContext=t.AppRouterContext=void 0;var r=(0,n(92648).Z)(n(67294)),o=r.default.createContext(null);t.AppRouterContext=o;var i=r.default.createContext(null);t.LayoutRouterContext=i;var a=r.default.createContext(null);t.GlobalLayoutRouterContext=a},66747:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ye}});var r=n(85893),o=(n(84010),n(20225),n(14379),n(98621),n(66158),n(68653),n(86765),n(50384),n(29403),n(58302),n(39623),n(92485),n(21091),n(63560),n(40947),n(12058),n(85385),n(11163)),i=n(4480),a=n(67294),c=n(26042),s=n(35159),u=n(57553),l=n(47568),f=n(69396),d=n(34051),p=n.n(d),h=n(45697),v=n.n(h),m=n(41664),g=n.n(m),y=n(9008),b=n.n(y),w=n(11699),x=n(97183),E=n(66516),C=n(14670),Z=n(84485),S=n(55241),k=n(26713),N=n(94199),_=n(71577),T=n(1413),O={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm144.1 454.9L437.7 677.8a8.02 8.02 0 01-12.7-6.5V353.7a8 8 0 0112.7-6.5L656.1 506a7.9 7.9 0 010 12.9z"}}]},name:"play-circle",theme:"filled"},P=n(42135),R=function(e,t){return a.createElement(P.Z,(0,T.Z)((0,T.Z)({},e),{},{ref:t,icon:O}))};R.displayName="PlayCircleFilled";var A=a.forwardRef(R),M={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM704 536c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8v48z"}}]},name:"minus-square",theme:"filled"},j=function(e,t){return a.createElement(P.Z,(0,T.Z)((0,T.Z)({},e),{},{ref:t,icon:M}))};j.displayName="MinusSquareFilled";var L=a.forwardRef(j),F={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M946.5 505L560.1 118.8l-25.9-25.9a31.5 31.5 0 00-44.4 0L77.5 505a63.9 63.9 0 00-18.8 46c.4 35.2 29.7 63.3 64.9 63.3h42.5V940h691.8V614.3h43.4c17.1 0 33.2-6.7 45.3-18.8a63.6 63.6 0 0018.7-45.3c0-17-6.7-33.1-18.8-45.2zM568 868H456V664h112v204zm217.9-325.7V868H632V640c0-22.1-17.9-40-40-40H432c-22.1 0-40 17.9-40 40v228H238.1V542.3h-96l370-369.7 23.1 23.1L882 542.3h-96.1z"}}]},name:"home",theme:"outlined"},I=function(e,t){return a.createElement(P.Z,(0,T.Z)((0,T.Z)({},e),{},{ref:t,icon:F}))};I.displayName="HomeOutlined";var V=a.forwardRef(I),D={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"},z=function(e,t){return a.createElement(P.Z,(0,T.Z)((0,T.Z)({},e),{},{ref:t,icon:D}))};z.displayName="LineChartOutlined";var U=a.forwardRef(z),B=n(38545),H={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},W=function(e,t){return a.createElement(P.Z,(0,T.Z)((0,T.Z)({},e),{},{ref:t,icon:H}))};W.displayName="SettingOutlined";var q=a.forwardRef(W),$={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},K=function(e,t){return a.createElement(P.Z,(0,T.Z)((0,T.Z)({},e),{},{ref:t,icon:$}))};K.displayName="ToolOutlined";var G=a.forwardRef(K),Y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 472a40 40 0 1080 0 40 40 0 10-80 0zm367 352.9L696.3 352V178H768v-68H256v68h71.7v174L145 824.9c-2.8 7.4-4.3 15.2-4.3 23.1 0 35.3 28.7 64 64 64h614.6c7.9 0 15.7-1.5 23.1-4.3 33-12.7 49.4-49.8 36.6-82.8zM395.7 364.7V180h232.6v184.7L719.2 600c-20.7-5.3-42.1-8-63.9-8-61.2 0-119.2 21.5-165.3 60a188.78 188.78 0 01-121.3 43.9c-32.7 0-64.1-8.3-91.8-23.7l118.8-307.5zM210.5 844l41.7-107.8c35.7 18.1 75.4 27.8 116.6 27.8 61.2 0 119.2-21.5 165.3-60 33.9-28.2 76.3-43.9 121.3-43.9 35 0 68.4 9.5 97.6 27.1L813.5 844h-603z"}}]},name:"experiment",theme:"outlined"},X=function(e,t){return a.createElement(P.Z,(0,T.Z)((0,T.Z)({},e),{},{ref:t,icon:Y}))};X.displayName="ExperimentOutlined";var Q=a.forwardRef(X),J={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},ee=function(e,t){return a.createElement(P.Z,(0,T.Z)((0,T.Z)({},e),{},{ref:t,icon:J}))};ee.displayName="QuestionCircleOutlined";var te=a.forwardRef(ee),ne=n(86548),re=n(94184),oe=n.n(re),ie=n(58827),ae=n(2766),ce=n(60113),se=n(45200),ue=n(25964),le=n(69677),fe=n(85402),de=n(83192),pe=le.Z.TextArea,he=function(e){var t=e.visible,n=e.handleClose,o=function(){d(!1),m(null),n()},i=(0,a.useState)(""),c=i[0],s=i[1],u=(0,a.useState)(!1),f=u[0],d=u[1],h=(0,a.useState)(null),v=h[0],m=h[1];function g(){return(g=(0,l.Z)(p().mark((function e(){var t;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return d(!0),t={value:c},e.prev=2,e.next=5,(0,ie.rQ)(ie.e_,{data:t,method:"POST",auth:!0});case 5:m(de.zv),setTimeout(o,1e3),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),m(de.Un);case 13:d(!1);case 14:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}return(0,r.jsx)(fe.Z,{destroyOnClose:!0,width:600,title:"Post to Followers",visible:t,onCancel:n,footer:[(0,r.jsx)(_.Z,{onClick:function(){return n()},children:"Cancel"}),(0,r.jsx)(_.Z,{type:"primary",onClick:function(){return g.apply(this,arguments)},disabled:f||v,loading:f,children:(null===v||void 0===v?void 0:v.toUpperCase())||"Post"})],children:(0,r.jsx)(k.Z,{id:"fediverse-post-container",direction:"vertical",children:(0,r.jsx)(pe,{placeholder:"Tell the world about your streaming plans...",size:"large",showCount:!0,maxLength:500,style:{height:"150px"},onChange:function(e){s(e.target.value)}})})})},ve=function(e){var t=e.children,n=(0,a.useContext)(s.aC)||{},i=n.serverConfig,d=n.online,h=n.broadcaster,v=n.versionNumber,m=i.instanceDetails,y=i.chatDisabled,T=i.federation.enabled,O=(0,a.useState)(""),P=O[0],R=O[1],M=(0,a.useState)(!1),j=M[0],F=M[1],I=(0,a.useContext)(u.k),D=((0,o.useRouter)()||{}).route,z=x.Z.Header,H=x.Z.Footer,W=x.Z.Content,$=x.Z.Sider,K=E.Z.SubMenu,Y=(0,a.useState)(""),X=Y[0],J=Y[1],ee=function(){var e=(0,l.Z)(p().mark((function e(){var t;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,ie.GR)(v);case 3:t=e.sent,J(t),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("==== error",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();(0,a.useEffect)((function(){ee()}),[v]),(0,a.useEffect)((function(){R(m.streamTitle)}),[m]);var re=oe()({"app-container":!0,online:d}),le=X?"block":"none",fe="".concat(X)||"",de="Upgrade to v".concat(fe),pe=y?"none":"block",ve=X?["utilities-menu"]:[],me=I.message?(0,r.jsx)(C.Z,{message:I.message,afterClose:function(){I.setMessage(null)},banner:!0,closable:!0}):null,ge=h?(0,ae.wS)((0,w.Z)(new Date,new Date(h.time))):"",ye=d?(0,r.jsx)("img",{src:"/thumbnail.jpg",className:"online-thumbnail",alt:"current thumbnail",width:"1rem"}):null,be=d?(0,r.jsx)(A,{}):(0,r.jsx)(L,{}),we=d?"Online ".concat(ge):"Offline",xe=(0,r.jsx)(Z.Z.Text,{children:"Thumbnail"}),Ee=(0,r.jsxs)("div",{className:"online-status-indicator",children:[(0,r.jsx)("span",{className:"status-label",children:we}),(0,r.jsx)("span",{className:"status-icon",children:be})]}),Ce=d?(0,r.jsx)(S.Z,{content:ye,title:xe,trigger:"hover",children:Ee}):Ee;return(0,r.jsxs)(x.Z,{className:re,children:[(0,r.jsxs)(b(),{children:[(0,r.jsx)("title",{children:"Owncast Admin"}),(0,r.jsx)("link",{rel:"icon",type:"image/png",sizes:"32x32",href:"/img/favicon/favicon-32x32.png"})]}),(0,r.jsxs)($,{width:240,className:"side-nav",children:[(0,r.jsxs)("h1",{className:"owncast-title",children:[(0,r.jsx)("span",{className:"logo-container",children:(0,r.jsx)(ce.C,{variant:"simple"})}),(0,r.jsx)("span",{className:"title-label",children:"Owncast Admin"})]}),(0,r.jsxs)(E.Z,{defaultSelectedKeys:[D.substring(1)||"home"],defaultOpenKeys:ve,mode:"inline",className:"menu-container",children:[(0,r.jsx)(E.Z.Item,{icon:(0,r.jsx)(V,{}),children:(0,r.jsx)(g(),{href:"/admin",children:"Home"})},"home"),(0,r.jsx)(E.Z.Item,{icon:(0,r.jsx)(U,{}),title:"Current stream",children:(0,r.jsx)(g(),{href:"/admin/viewer-info",children:"Viewers"})},"viewer-info"),(0,r.jsxs)(K,{title:"Chat & Users",icon:(0,r.jsx)(B.Z,{}),style:{display:pe},children:[(0,r.jsx)(E.Z.Item,{title:"Chat utilities",children:(0,r.jsx)(g(),{href:"/admin/chat/messages",children:"Messages"})},"messages"),(0,r.jsx)(E.Z.Item,{title:"Chat utilities",children:(0,r.jsx)(g(),{href:"/admin/chat/users",children:"Users"})},"chat-users")]},"chat-config"),(0,r.jsx)(E.Z.Item,{style:{display:T?"block":"none"},title:"Fediverse followers",icon:(0,r.jsx)("img",{alt:"fediverse icon",src:"/admin/fediverse-white.png",width:"15rem",style:{opacity:.6,position:"relative",top:"-1px"}}),children:(0,r.jsx)(g(),{href:"/admin/federation/followers",children:"Followers"})},"federation-followers"),(0,r.jsxs)(K,{title:"Configuration",icon:(0,r.jsx)(q,{}),children:[(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(g(),{href:"/admin/config-public-details",children:"General"})},"config-public-details"),(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(g(),{href:"/admin/config-server-details",children:"Server Setup"})},"config-server-details"),(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(g(),{href:"/admin/config-video",children:"Video"})},"config-video"),(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(g(),{href:"/admin/config-chat",children:"Chat"})},"config-chat"),(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(g(),{href:"/admin/config-federation",children:"Social"})},"config-federation"),(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(g(),{href:"/admin/config-notify",children:"Notifications"})},"config-notify"),(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(g(),{href:"/admin/config-storage",children:"S3 Storage"})},"config-storage")]},"configuration"),(0,r.jsxs)(K,{icon:(0,r.jsx)(G,{}),title:"Utilities",children:[(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(g(),{href:"/admin/hardware-info",children:"Hardware"})},"hardware-info"),(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(g(),{href:"/admin/stream-health",children:"Stream Health"})},"stream-health"),(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(g(),{href:"/admin/logs",children:"Logs"})},"logs"),(0,r.jsx)(E.Z.Item,{title:"Social Actions",style:{display:T?"block":"none"},children:(0,r.jsx)(g(),{href:"/admin/federation/actions",children:"Social Actions"})},"federation-activities"),(0,r.jsx)(E.Z.Item,{style:{display:le},children:(0,r.jsx)(g(),{href:"/upgrade",children:de})},"upgrade")]},"utilities-menu"),(0,r.jsxs)(K,{icon:(0,r.jsx)(Q,{}),title:"Integrations",children:[(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(g(),{href:"/admin/webhooks",children:"Webhooks"})},"webhooks"),(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(g(),{href:"/admin/access-tokens",children:"Access Tokens"})},"access-tokens"),(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(g(),{href:"/admin/actions",children:"External Actions"})},"actions")]},"integrations-menu"),(0,r.jsx)(E.Z.Item,{icon:(0,r.jsx)(te,{}),title:"Help",children:(0,r.jsx)(g(),{href:"/admin/help",children:"Help"})},"help")]})]}),(0,r.jsxs)(x.Z,{className:"layout-main",children:[(0,r.jsxs)(z,{className:"layout-header",children:[(0,r.jsx)(k.Z,{direction:"horizontal",children:(0,r.jsx)(N.Z,{title:"Compose post to your followers",children:(0,r.jsx)(_.Z,{type:"primary",shape:"circle",icon:(0,r.jsx)(ne.Z,{}),size:"large",onClick:function(){F(!0)},style:{display:T?"block":"none"}})})}),(0,r.jsx)("div",{className:"global-stream-title-container",children:(0,r.jsx)(se.$7,(0,f.Z)((0,c.Z)({fieldName:"streamTitle"},ue.$t),{placeholder:"What are you streaming now",value:P,initialValue:m.streamTitle,onChange:function(e){var t=e.value;R(t)}}))}),(0,r.jsx)(k.Z,{direction:"horizontal",children:Ce})]}),me,(0,r.jsx)(W,{className:"main-content-container",children:t}),(0,r.jsx)(H,{className:"footer-container",children:(0,r.jsxs)("a",{href:"https://owncast.online/?source=admin",target:"_blank",rel:"noopener noreferrer",children:["About Owncast v",v]})})]}),(0,r.jsx)(he,{visible:j,handleClose:function(){return F(!1)}})]})};ve.propTypes={children:v().element.isRequired};var me=function(e){var t=e.Component,n=e.pageProps;return(0,r.jsx)(s.ZP,{children:(0,r.jsx)(u.Z,{children:(0,r.jsx)(ve,{children:(0,r.jsx)(t,(0,c.Z)({},n))})})})},ge=function(e){var t=e.Component,n=e.pageProps;return(0,r.jsx)("div",{children:(0,r.jsx)(t,(0,c.Z)({},n))})},ye=function(e){var t=e.Component,n=e.pageProps;(0,a.useEffect)((function(){"serviceWorker"in navigator&&window.addEventListener("load",(function(){navigator.serviceWorker.register("/serviceWorker.js").then((function(e){console.debug("Service Worker registration successful with scope: ",e.scope)}),(function(e){console.error("Service Worker registration failed: ",e)}))}))}),[]);var c=(0,o.useRouter)();return c.pathname.startsWith("/admin")?(0,r.jsx)(me,{pageProps:n,Component:t,router:c}):(0,r.jsx)(i.Wh,{children:(0,r.jsx)(ge,{pageProps:n,Component:t,router:c})})}},57553:function(e,t,n){"use strict";n.d(t,{k:function(){return c}});var r=n(85893),o=n(67294),i=n(45697),a=n.n(i),c=o.createContext({message:null,setMessage:function(e){return null}}),s=function(e){var t=e.children,n=(0,o.useState)(""),i={message:n[0],setMessage:n[1]};return(0,r.jsx)(c.Provider,{value:i,children:t})};s.propTypes={children:a().element.isRequired},t.Z=s},58827:function(e,t,n){"use strict";n.d(t,{$i:function(){return L},$l:function(){return K},Bu:function(){return x},E8:function(){return V},GC:function(){return Z},GR:function(){return ne},HP:function(){return I},IO:function(){return R},Kp:function(){return y},Kt:function(){return Q},M_:function(){return M},N$:function(){return B},NE:function(){return d},NM:function(){return w},Q_:function(){return p},RB:function(){return E},UJ:function(){return H},WB:function(){return l},WE:function(){return _},WQ:function(){return N},Wr:function(){return P},XA:function(){return A},Y9:function(){return D},a_:function(){return g},ao:function(){return v},bl:function(){return h},e_:function(){return F},hn:function(){return T},iG:function(){return j},iV:function(){return m},jr:function(){return C},kb:function(){return z},kg:function(){return Y},ms:function(){return O},nx:function(){return S},op:function(){return U},qk:function(){return b},rQ:function(){return q},sG:function(){return k}});var r=n(47568),o=n(26042),i=n(34051),a=n.n(i),c=n(34155),s=c.env.NEXT_PUBLIC_ADMIN_USERNAME,u=c.env.NEXT_PUBLIC_ADMIN_STREAMKEY,l="/",f="".concat(l,"api/admin/"),d=15e3,p="".concat(f,"status"),h=("".concat(f,"disconnect"),"".concat(f,"changekey"),"".concat(f,"serverconfig")),v="".concat(f,"config"),m="".concat(f,"viewersOverTime"),g="".concat(f,"viewers"),y="".concat(f,"chat/clients"),b="".concat(f,"chat/users/disabled"),w="".concat(f,"chat/users/setenabled"),x="".concat(f,"chat/users/ipbans"),E="".concat(f,"chat/users/ipbans/remove"),C="".concat(f,"chat/users/setmoderator"),Z="".concat(f,"chat/users/moderators"),S="".concat(f,"hardwarestats"),k="".concat(f,"logs"),N="".concat(f,"logs/warnings"),_="".concat(f,"chat/messages"),T="/api/admin/chat/messagevisibility",O="".concat(f,"accesstokens"),P="".concat(f,"accesstokens/delete"),R="".concat(f,"accesstokens/create"),A="".concat(f,"webhooks"),M="".concat(f,"webhooks/delete"),j="".concat(f,"webhooks/create"),L="".concat(l,"api/socialplatforms"),F=("".concat(f,"api/externalactions"),"".concat(f,"federation/send")),I="".concat(f,"followers"),V="".concat(f,"followers/pending"),D="".concat(f,"followers/blocked"),z="".concat(f,"followers/approve"),U="".concat(f,"federation/actions"),B="".concat(f,"metrics/video"),H="".concat(f,"yp/reset"),W="https://api.github.com/repos/owncast/owncast/releases/latest";function q(e,t){return $.apply(this,arguments)}function $(){return($=(0,r.Z)(a().mark((function e(t,n){var r,o,i,c,l,f,d,p,h,v,m;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(r=n||{}).data,i=r.method,c=void 0===i?"GET":i,l=r.auth,f=void 0===l||l,d={method:c},o&&(d.body=JSON.stringify(o)),f&&s&&u&&(p=btoa("".concat(s,":").concat(u)),d.headers={Authorization:"Basic ".concat(p)},d.mode="cors",d.credentials="include"),e.prev=4,e.next=7,fetch(t,d);case 7:return h=e.sent,e.next=10,h.json();case 10:if(v=e.sent,h.ok){e.next=14;break}throw m=v.message||"An error has occurred: ".concat(h.status),new Error(m);case 14:return e.abrupt("return",v);case 17:return e.prev=17,e.t0=e.catch(4),console.error(e.t0),e.abrupt("return",e.t0);case 21:case"end":return e.stop()}}),e,null,[[4,17]])})))).apply(this,arguments)}function K(e,t){return G.apply(this,arguments)}function G(){return(G=(0,r.Z)(a().mark((function e(t,n){var r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,o.Z)({method:"GET",auth:!1},n),e.abrupt("return",q(t,r));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Y(e){return X.apply(this,arguments)}function X(){return(X=(0,r.Z)(a().mark((function e(t){var n,r,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch(t,{referrerPolicy:"no-referrer",referrer:""});case 3:if((n=e.sent).ok){e.next=7;break}throw r="An error has occured: ".concat(n.status),new Error(r);case 7:return e.next=9,n.json();case 9:return o=e.sent,e.abrupt("return",o);case 13:e.prev=13,e.t0=e.catch(0),console.log(e.t0);case 16:return e.abrupt("return",{});case 17:case"end":return e.stop()}}),e,null,[[0,13]])})))).apply(this,arguments)}function Q(){return J.apply(this,arguments)}function J(){return(J=(0,r.Z)(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Y(W));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ee=/^\d+(\.\d+){0,2}$/;function te(e,t){if(!e||!t||0===e.length||0===t.length)return!1;if(e===t)return!0;if(ee.test(e)&&ee.test(t)){for(var n=e.split(".");n.length<3;)n.push("0");for(var r=t.split(".");r.length<3;)r.push("0");for(var o=0;o<3;o++){var i=parseInt(n[o],10),a=parseInt(r[o],10);if(i!==a)return i>a}return!0}return e>=t}function ne(e){return re.apply(this,arguments)}function re(){return(re=(0,r.Z)(a().mark((function e(t){var n,r;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Q();case 2:if(n=e.sent,"v"===(r=n.tag_name).substr(0,1)&&(r=r.substr(1)),te(t,r)){e.next=7;break}return e.abrupt("return",r);case 7:return e.abrupt("return",null);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},25964:function(e,t,n){"use strict";n.d(t,{$Z:function(){return xe},$t:function(){return P},$w:function(){return v},AA:function(){return f},AN:function(){return X},AP:function(){return b},BF:function(){return te},B_:function(){return oe},CJ:function(){return w},CQ:function(){return C},Dg:function(){return Y},EY:function(){return B},FE:function(){return ee},HM:function(){return de},I$:function(){return he},IX:function(){return M},KB:function(){return F},Kl:function(){return Q},LC:function(){return J},ME:function(){return z},P:function(){return H},RE:function(){return O},Ri:function(){return L},SS:function(){return fe},Si:function(){return S},Xc:function(){return ne},Xq:function(){return se},ZQ:function(){return j},_X:function(){return W},c9:function(){return m},cf:function(){return x},cj:function(){return D},d$:function(){return d},dL:function(){return ae},dR:function(){return ie},dj:function(){return G},gX:function(){return q},i3:function(){return ve},kB:function(){return K},lT:function(){return V},mv:function(){return we},nm:function(){return ce},os:function(){return E},oy:function(){return be},pE:function(){return Z},rE:function(){return I},rd:function(){return A},rs:function(){return R},sI:function(){return l},sv:function(){return g},t$:function(){return pe},vv:function(){return y},wC:function(){return me},x8:function(){return ue},yC:function(){return le},y_:function(){return U},yi:function(){return re},yj:function(){return $},z_:function(){return ge},zm:function(){return ye}});var r=n(47568),o=n(14924),i=n(34051),a=n.n(i),c=n(58827),s=n(24389),u=n(19411),l=3e3,f="/pagecontent",d="/customstyles",p="/serverurl",h="/nsfw",v="/s3",m="/socialhandles",g="/video/streamlatencylevel",y="/video/streamoutputvariants",b="/directoryenabled",w="/chat/forbiddenusernames",x="/chat/suggestedusernames",E="/externalactions",C="/video/codec",Z="/federation/blockdomains";function S(e){return k.apply(this,arguments)}function k(){return(k=(0,r.Z)(a().mark((function e(t){var n,r,o,i,s;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.apiPath,r=t.data,o=t.onSuccess,i=t.onError,e.next=3,(0,c.rQ)("".concat(c.ao).concat(n),{data:r,method:"POST",auth:!0});case 3:(s=e.sent).success&&o?o(s.message):i&&i(s.message);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var N,_,T,O={apiPath:"/name",configPath:"instanceDetails",maxLength:255,placeholder:"Owncast site name",label:"Name",tip:"The name of your Owncast server",required:!0,useTrimLead:!0},P={apiPath:"/streamtitle",configPath:"instanceDetails",maxLength:100,placeholder:"Doing cool things...",label:"Stream Title",tip:"What is your stream about today?"},R={apiPath:"/serversummary",configPath:"instanceDetails",maxLength:500,placeholder:"",label:"About",tip:"A brief blurb about you, your server, or what your stream is about."},A={apiPath:"/offlinemessage",configPath:"instanceDetails",maxLength:2500,placeholder:"An optional message you can leave people when your stream is not live.",label:"Offline Message",tip:"An optional message you can leave people when your stream is not live."},M={apiPath:"/welcomemessage",configPath:"instanceDetails",maxLength:2500,placeholder:"",label:"Welcome Message",tip:"A system chat message sent to viewers when they first connect to chat. Leave blank to disable."},j={apiPath:"/logo",configPath:"instanceDetails",maxLength:255,placeholder:"/img/mylogo.png",label:"Logo",tip:"Upload your logo if you have one. We recommend that you use a square image that is at least 256x256. SVGs are discouraged as they cannot be displayed on all social media platforms."},L={apiPath:"/key",configPath:"",maxLength:255,placeholder:"abc123",label:"Stream Key",tip:"Save this key somewhere safe, you will need it to stream or login to the admin dashboard!",required:!0},F={apiPath:"/ffmpegpath",configPath:"",maxLength:255,placeholder:"/usr/local/bin/ffmpeg",label:"FFmpeg Path",tip:"Absolute file path of the FFMPEG application on your server",required:!0},I={apiPath:"/webserverport",configPath:"",maxLength:6,placeholder:"8080",label:"Owncast port",tip:"What port is your Owncast web server listening? Default is 8080",required:!0},V={apiPath:"/rtmpserverport",configPath:"",maxLength:6,placeholder:"1935",label:"RTMP port",tip:"What port should accept inbound broadcasts? Default is 1935",required:!0},D={apiPath:p,configPath:"yp",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Server URL",tip:"The full url to your Owncast server.",type:s.xA,pattern:u.a,useTrim:!0},z={apiPath:"/sockethostoverride",configPath:"",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Websocket host override",tip:"The direct URL of your Owncast server.",type:s.xA,pattern:u.a,useTrim:!0},U={apiPath:"/tags",configPath:"instanceDetails",maxLength:24,placeholder:"Add a new tag",required:!0,label:"",tip:""},B={apiPath:h,configPath:"instanceDetails",label:"NSFW?",tip:"Turn this ON if you plan to steam explicit or adult content. Please respectfully set this flag so unexpected eyes won't accidentally see it in the Directory."},H={apiPath:b,configPath:"yp",label:"Enable directory",tip:"Turn this ON to request to show up in the directory."},W={apiPath:"/hideviewercount",configPath:"",label:"Hide viewer count",tip:"Turn this ON to hide the viewer count the web page."},q={framerate:24,videoPassthrough:!1,videoBitrate:800,audioPassthrough:!0,audioBitrate:0,cpuUsageLevel:3,scaledHeight:null,scaledWidth:null,name:""},$={apiPath:"/chat/disable",configPath:"",label:"Chat",tip:"Turn the chat functionality on/off on your Owncast server.",useSubmit:!0},K={apiPath:"/chat/joinmessagesenabled",configPath:"",label:"Join Messages",tip:"Show when a viewer joins the chat.",useSubmit:!0},G={apiPath:"/chat/establishedusermode",configPath:"",label:"Established users only",tip:"Only users who have previously been established for some time may chat.",useSubmit:!0},Y={apiPath:w,placeholder:"username",label:"Forbidden usernames",tip:"A list of words in chat usernames you disallow."},X={apiPath:x,placeholder:"username",label:"Default usernames",tip:"An optional list of chat usernames that new users get assigned. If the list holds less then 10 items, random names will be generated. Users can change their usernames afterwards and the same username may be given out multple times.",min_not_reached:"At least 10 items are required for this feature.",no_entries:"The default name generator is used."},Q={apiPath:"/federation/enable",configPath:"federation",label:"Enable Social Features",tip:"Send and receive activities on the Fediverse.",useSubmit:!0},J={apiPath:"/federation/private",configPath:"federation",label:"Private",tip:"Follow requests will require approval and only followers will see your activity.",useSubmit:!0},ee={apiPath:"/federation/showengagement",configPath:"showEngagement",label:"Show engagement",tip:"Following, liking and sharing will appear in the chat feed.",useSubmit:!0},te={apiPath:"/federation/livemessage",configPath:"federation",maxLength:500,placeholder:"My stream has started, tune in!",label:"Now Live message",tip:"The message sent announcing that your live stream has begun. Tags will be automatically added. Leave blank to disable."},ne={apiPath:"/federation/username",configPath:"federation",maxLength:10,placeholder:"owncast",default:"owncast",label:"Username",tip:'The username used for sending and receiving activities from the Fediverse. For example, if you use "bob" as a username you would send messages to the fediverse from @bob@yourserver. Once people start following your instance you should not change this.'},re={apiPath:p,configPath:"yp",maxLength:255,placeholder:"https://owncast.mysite.com",label:"Server URL",tip:"The full url to your Owncast server is required to enable social features. Must use SSL (https). Once people start following your instance you should not change this.",type:s.xA,pattern:u.a,useTrim:!0},oe={apiPath:h,configPath:"instanceDetails",label:"Potentially NSFW",tip:"Turn this ON if you plan to steam explicit or adult content so previews of your stream can be marked as potentially sensitive."},ie={apiPath:Z,configPath:"federation",label:"Blocked domains",placeholder:"bad.domain.biz",tip:"You can block specific domains from interacting with you."},ae={audioBitrate:{min:600,max:1200,defaultValue:800,unit:"kbps",incrementBy:100,tip:"nothing to see here"},videoPassthrough:{tip:"If enabled, all other settings will be disabled. Otherwise configure as desired."},audioPassthrough:{tip:"If No is selected, then you should set your desired Audio Bitrate."},scaledWidth:{fieldName:"scaledWidth",label:"Resized Width",maxLength:4,placeholder:"1080",tip:"Optionally resize this content's width."},scaledHeight:{fieldName:"scaledHeight",label:"Resized Height",maxLength:4,placeholder:"720",tip:"Optionally resize this content's height."}},ce={min:24,max:120,defaultValue:24,unit:"fps",incrementBy:null,tip:"Reducing your framerate will decrease the amount of video that needs to be encoded and sent to your viewers, saving CPU and bandwidth at the expense of smoothness. A lower value is generally is fine for most content."},se=(N={},(0,o.Z)(N,ce.min,"".concat(ce.min," ").concat(ce.unit)),(0,o.Z)(N,25,""),(0,o.Z)(N,30,""),(0,o.Z)(N,50,""),(0,o.Z)(N,60,""),(0,o.Z)(N,90,""),(0,o.Z)(N,ce.max,"".concat(ce.max," ").concat(ce.unit)),N),ue=(_={},(0,o.Z)(_,ce.min,"".concat(ce.min,"fps - Good for film, presentations, music, low power/bandwidth servers.")),(0,o.Z)(_,25,"25fps - Good for film, presentations, music, low power/bandwidth servers."),(0,o.Z)(_,30,"30fps - Good for slow/casual games, chat, general purpose."),(0,o.Z)(_,50,"50fps - Good for fast/action games, sports, HD video."),(0,o.Z)(_,60,"60fps - Good for fast/action games, sports, HD video."),(0,o.Z)(_,90,"90fps - Good for newer fast games and hardware."),(0,o.Z)(_,ce.max,"".concat(ce.max,"fps - Experimental, use at your own risk!")),_),le={min:400,max:6e3,defaultValue:1200,unit:"kbps",incrementBy:100,tip:"The overall quality of your stream is generally impacted most by bitrate."},fe={fieldName:"name",label:"Name",maxLength:15,placeholder:"HD or Low",tip:"Human-readable name for for displaying in the player."},de=(T={},(0,o.Z)(T,le.min,"".concat(le.min," ").concat(le.unit)),(0,o.Z)(T,3e3,3e3),(0,o.Z)(T,4500,4500),(0,o.Z)(T,le.max,"".concat(le.max," ").concat(le.unit)),T),pe={1:"lowest",2:"",3:"",4:"",5:"highest"},he={1:"Lowest hardware usage - lowest quality video",2:"Low hardware usage - low quality video",3:"Medium hardware usage - average quality video",4:"High hardware usage - high quality video",5:"Highest hardware usage - higher quality video"},ve={VIDEO_HEIGHT:1080,VIDEO_BITRATE:3e3,HELP_TEXT:"You have only set one video quality variant. If your server has the computing resources, consider adding another, lower-quality variant, so more people can view your content!"},me={url:"",platform:""},ge="OTHER_SOCIAL_HANDLE_OPTION",ye={accessKey:{fieldName:"accessKey",label:"Access Key",maxLength:255,placeholder:"access key 123",tip:""},acl:{fieldName:"acl",label:"ACL",maxLength:255,placeholder:"",tip:"Optional specific access control value to add to your content. Generally not required."},bucket:{fieldName:"bucket",label:"Bucket",maxLength:255,placeholder:"bucket 123",tip:"Create a new bucket for each Owncast instance you may be running."},endpoint:{fieldName:"endpoint",label:"Endpoint",maxLength:255,placeholder:"https://your.s3.provider.endpoint.com",tip:'The full URL (with "https://") endpoint from your storage provider.',useTrim:!0,type:s.xA,pattern:u.a},region:{fieldName:"region",label:"Region",maxLength:255,placeholder:"region 123",tip:""},secret:{fieldName:"secret",label:"Secret key",maxLength:255,placeholder:"your secret key",tip:""},servingEndpoint:{fieldName:"servingEndpoint",label:"Serving Endpoint",maxLength:255,placeholder:"http://cdn.ss3.provider.endpoint.com",tip:"Optional URL that content should be accessed from instead of the default. Used with CDNs and specific storage providers. Generally not required.",type:s.xA,pattern:u.a,useTrim:!0},forcePathStyle:{fieldName:"forcePathStyle",label:"Force path-style",tip:"If your S3 provider doesn't support virtual-hosted-style URLs set this to ON (i.e. Oracle Cloud Object Storage)"}},be={webhookUrl:{fieldName:"webhook",label:"Webhook URL",maxLength:255,placeholder:"https://discord.com/api/webhooks/837/jf38-6iNEv",tip:"The webhook assigned to your channel.",type:s.xA,pattern:u.a,useTrim:!0},goLiveMessage:{fieldName:"goLiveMessage",label:"Go Live Text",maxLength:300,tip:"The text to send when you go live.",placeholder:"I've gone live! Come watch!"}},we={goLiveMessage:{fieldName:"goLiveMessage",label:"Go Live Text",maxLength:200,tip:"The text to send when you go live.",placeholder:"I've gone live! Come watch!"}},xe={apiKey:{fieldName:"apiKey",label:"API Key",maxLength:200,tip:"",placeholder:"gaUQhRC2lqfrEFfElBXJgOctU"},apiSecret:{fieldName:"apiSecret",label:"API Secret",maxLength:200,tip:"",placeholder:"IIz4jFZMWbUKdFOEGUprFjRwIslG56d1SPQlolJYjXwJ2y2qKS"},accessToken:{fieldName:"accessToken",label:"Access Token",maxLength:200,tip:"",placeholder:"952540400-EEiwe9fkuSvWjnNC82YFa9kgpqbyAP3J7FjE2dkka"},accessTokenSecret:{fieldName:"accessTokenSecret",label:"Access Token Secret",maxLength:200,tip:"",placeholder:"xO0AZWNGfZxpNsYPg3zNEKhAsPPGvNZFlzQArA2khI9Kg"},bearerToken:{fieldName:"bearerToken",label:"Bearer Token",maxLength:200,tip:"",placeholder:"AAAAAAAAAAAAAAFqpXwEAAnnepHkjA8XD5ftx5jUadYIRtPtaq7AAAAwpXPpDWKDcdhiWr0tVDjsgW%2B4awGOM9VQ%3XPoMFuWcHsE42TK"},goLiveMessage:{fieldName:"goLiveMessage",label:"Go Live Text",maxLength:200,tip:"The text to send when you go live.",placeholder:"I've gone live! Come watch!"}}},2766:function(e,t,n){"use strict";n.d(t,{AB:function(){return u},Qr:function(){return a},t5:function(){return i},wS:function(){return s}});var r=n(42238),o=n.n(r);function i(e){var t=e.split(":");t[t.length-1]="";var n=t.join(":");return"[::1]"===(n=n.slice(0,n.length-1))||"127.0.0.1"===n?"Localhost":n}function a(e){return!e||0===Object.keys(e).length&&e.constructor===Object}function c(e,t,n){return String(t.repeat(n)+e).slice(-n)}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=Number.isFinite(+e)?Math.abs(e):0,n=Math.floor(t/86400),r=n>0?"".concat(n," day").concat(n>1?"s":""," "):"",o=Math.floor(t/3600%24),i=o||n?c("".concat(o,":"),"0",3):"",a=Math.floor(t/60%60),s=c("".concat(a,":"),"0",3),u=Math.floor(t%60),l=c("".concat(u),"0",2);return r+i+s+l}function u(e){var t=o()(e),n=t.device,r=t.os,i=t.browser,a=i.major,c=i.name,s=r.version,u=r.name,l=n.model,f=n.type;if("libmpv"===e)return"mpv media player";if(!c||!a||!u)return e;var d=l||f?" (".concat(l||f,")"):"";return"".concat(c," ").concat(a," on ").concat(u," ").concat(s,"\n ").concat(d)}},83192:function(e,t,n){"use strict";n.d(t,{Jk:function(){return d},Un:function(){return l},dG:function(){return h},kg:function(){return m},zv:function(){return p}});var r,o=n(14924),i=n(85893),a=n(89739),c=n(21640),s=n(50888),u=n(28058),l="error",f="invalid",d="proessing",p="success",h="warning",v=(r={},(0,o.Z)(r,p,{type:p,icon:(0,i.jsx)(a.Z,{style:{color:"green"}}),message:"Success!"}),(0,o.Z)(r,l,{type:l,icon:(0,i.jsx)(c.Z,{style:{color:"red"}}),message:"An error occurred."}),(0,o.Z)(r,f,{type:f,icon:(0,i.jsx)(c.Z,{style:{color:"red"}}),message:"An error occurred."}),(0,o.Z)(r,d,{type:d,icon:(0,i.jsx)(s.Z,{}),message:""}),(0,o.Z)(r,h,{type:h,icon:(0,i.jsx)(u.Z,{style:{color:"#fc0"}}),message:""}),r);function m(e,t){return e&&v[e]?t?{type:e,icon:v[e].icon,message:t}:v[e]:null}},35159:function(e,t,n){"use strict";n.d(t,{aC:function(){return m}});var r=n(47568),o=n(14924),i=n(26042),a=n(69396),c=n(34051),s=n.n(c),u=n(85893),l=n(67294),f=n(45697),d=n.n(f),p=n(58827),h={streamKey:"",instanceDetails:{customStyles:"",extraPageContent:"",logo:"",name:"",nsfw:!1,socialHandles:[],streamTitle:"",summary:"",tags:[],title:"",welcomeMessage:"",offlineMessage:""},ffmpegPath:"",rtmpServerPort:"",webServerPort:"",socketHostOverride:null,s3:{accessKey:"",acl:"",bucket:"",enabled:!1,endpoint:"",region:"",secret:"",servingEndpoint:"",forcePathStyle:!1},yp:{enabled:!1,instanceUrl:""},videoSettings:{latencyLevel:4,cpuUsageLevel:3,videoQualityVariants:[n(25964).gX]},federation:{enabled:!1,isPrivate:!1,username:"",goLiveMessage:"",showEngagement:!0,blockedDomains:[]},notifications:{browser:{enabled:!1,goLiveMessage:""},discord:{enabled:!1,webhook:"",goLiveMessage:""},twitter:{enabled:!1,goLiveMessage:"",apiKey:"",apiSecret:"",accessToken:"",accessTokenSecret:"",bearerToken:""}},externalActions:[],supportedCodecs:[],videoCodec:"",forbiddenUsernames:[],suggestedUsernames:[],chatDisabled:!1,chatJoinMessagesEnabled:!0,chatEstablishedUserMode:!1,hideViewerCount:!1},v={broadcastActive:!1,broadcaster:null,currentBroadcast:null,online:!1,viewerCount:0,sessionMaxViewerCount:0,sessionPeakViewerCount:0,overallPeakViewerCount:0,versionNumber:"0.0.0",streamTitle:"",chatDisabled:!1,health:{healthy:!0,healthPercentage:100,message:"",representation:0}},m=l.createContext((0,a.Z)((0,i.Z)({},v),{serverConfig:h,setFieldInConfigState:function(e){return null}})),g=function(e){var t=e.children,n=(0,l.useState)(v),c=n[0],f=n[1],d=(0,l.useState)(h),g=d[0],y=d[1],b=function(){var e=(0,r.Z)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,p.rQ)(p.Q_);case 3:t=e.sent,f((0,i.Z)({},t)),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),w=function(){var e=(0,r.Z)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,p.rQ)(p.bl);case 3:t=e.sent,y(t),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();(0,l.useEffect)((function(){var e;return b(),e=setInterval(b,p.NE),w(),function(){clearInterval(e)}}),[]);var x=(0,a.Z)((0,i.Z)({},c),{serverConfig:g,setFieldInConfigState:function(e){var t=e.fieldName,n=e.value,r=e.path,c=r?(0,a.Z)((0,i.Z)({},g),(0,o.Z)({},r,(0,a.Z)((0,i.Z)({},g[r]),(0,o.Z)({},t,n)))):(0,a.Z)((0,i.Z)({},g),(0,o.Z)({},t,n));y(c)}});return(0,u.jsx)(m.Provider,{value:x,children:t})};g.propTypes={children:d().element.isRequired},t.ZP=g},19411:function(e,t,n){"use strict";n.d(t,{Z:function(){return o},a:function(){return r}});var r="https?://.*";function o(e){try{var t=new URL(e);if(""===t.protocol||""===t.hostname||!["http:","https:"].includes(t.protocol))return!1}catch(n){return!1}return!0}},85385:function(){},98621:function(){},63560:function(){},58302:function(){},92485:function(){},50384:function(){},29403:function(){},39623:function(){},86765:function(){},68653:function(){},14379:function(){},21091:function(){},66158:function(){},12058:function(){},40947:function(){},20225:function(){},83426:function(e){e.exports={root:"OwncastLogo_root__uDVJf",contrast:"OwncastLogo_contrast__rDMJY",simple:"OwncastLogo_simple___hC9r"}},84010:function(){},9008:function(e,t,n){e.exports=n(5443)},41664:function(e,t,n){e.exports=n(48418)},11163:function(e,t,n){e.exports=n(90387)},34155:function(e){var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"===typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var c,s=[],u=!1,l=-1;function f(){u&&c&&(u=!1,c.length?s=c.concat(s):l=-1,s.length&&d())}function d(){if(!u){var e=a(f);u=!0;for(var t=s.length;t;){for(c=s,s=[];++l1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return{};var n=t.element,r=void 0===n?document.body:n,o={},i=Object.keys(e);return i.forEach((function(e){o[e]=r.style[e]})),i.forEach((function(t){r.style[t]=e[t]})),o};var g={},y=function(e){if(document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth||e){var t="ant-scrolling-effect",n=new RegExp("".concat(t),"g"),r=document.body.className;if(e){if(!n.test(r))return;return m(g),g={},void(document.body.className=r.replace(n,"").trim())}var o=(0,v.Z)();if(o&&(g=m({position:"relative",width:"calc(100% - ".concat(o,"px)")}),!n.test(r))){var i="".concat(r," ").concat(t);document.body.className=i.trim()}}},b=n(74902),w=0,x=[],E="ant-scrolling-effect",C=new RegExp("".concat(E),"g"),Z=new Map,S=(0,s.Z)((function e(t){var n=this;(0,c.Z)(this,e),this.lockTarget=void 0,this.options=void 0,this.getContainer=function(){var e;return null===(e=n.options)||void 0===e?void 0:e.container},this.reLock=function(e){var t=x.find((function(e){return e.target===n.lockTarget}));t&&n.unLock(),n.options=e,t&&(t.options=e,n.lock())},this.lock=function(){var e;if(!x.some((function(e){return e.target===n.lockTarget})))if(x.some((function(e){var t,r=e.options;return(null===r||void 0===r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})))x=[].concat((0,b.Z)(x),[{target:n.lockTarget,options:n.options}]);else{var t=0,r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body;(r===document.body&&window.innerWidth-document.documentElement.clientWidth>0||r.scrollHeight>r.clientHeight)&&(t=(0,v.Z)());var o=r.className;if(0===x.filter((function(e){var t,r=e.options;return(null===r||void 0===r?void 0:r.container)===(null===(t=n.options)||void 0===t?void 0:t.container)})).length&&Z.set(r,m({width:0!==t?"calc(100% - ".concat(t,"px)"):void 0,overflow:"hidden",overflowX:"hidden",overflowY:"hidden"},{element:r})),!C.test(o)){var i="".concat(o," ").concat(E);r.className=i.trim()}x=[].concat((0,b.Z)(x),[{target:n.lockTarget,options:n.options}])}},this.unLock=function(){var e,t=x.find((function(e){return e.target===n.lockTarget}));if(x=x.filter((function(e){return e.target!==n.lockTarget})),t&&!x.some((function(e){var n,r=e.options;return(null===r||void 0===r?void 0:r.container)===(null===(n=t.options)||void 0===n?void 0:n.container)}))){var r=(null===(e=n.options)||void 0===e?void 0:e.container)||document.body,o=r.className;C.test(o)&&(m(Z.get(r),{element:r}),Z.delete(r),r.className=r.className.replace(C,"").trim())}},this.lockTarget=w++,this.options=t})),k=0,N=(0,h.Z)();var _={},T=function(e){if(!N)return null;if(e){if("string"===typeof e)return document.querySelectorAll(e)[0];if("function"===typeof e)return e();if("object"===(0,f.Z)(e)&&e instanceof window.HTMLElement)return e}return document.body},O=function(e){(0,u.Z)(n,e);var t=(0,l.Z)(n);function n(e){var r;return(0,c.Z)(this,n),(r=t.call(this,e)).container=void 0,r.componentRef=i.createRef(),r.rafId=void 0,r.scrollLocker=void 0,r.renderComponent=void 0,r.updateScrollLocker=function(e){var t=(e||{}).visible,n=r.props,o=n.getContainer,i=n.visible;i&&i!==t&&N&&T(o)!==r.scrollLocker.getContainer()&&r.scrollLocker.reLock({container:T(o)})},r.updateOpenCount=function(e){var t=e||{},n=t.visible,o=t.getContainer,i=r.props,a=i.visible,c=i.getContainer;a!==n&&N&&T(c)===document.body&&(a&&!n?k+=1:e&&(k-=1)),("function"===typeof c&&"function"===typeof o?c.toString()!==o.toString():c!==o)&&r.removeCurrentContainer()},r.attachToParent=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||r.container&&!r.container.parentNode){var t=T(r.props.getContainer);return!!t&&(t.appendChild(r.container),!0)}return!0},r.getContainer=function(){return N?(r.container||(r.container=document.createElement("div"),r.attachToParent(!0)),r.setWrapperClassName(),r.container):null},r.setWrapperClassName=function(){var e=r.props.wrapperClassName;r.container&&e&&e!==r.container.className&&(r.container.className=e)},r.removeCurrentContainer=function(){var e,t;null===(e=r.container)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(r.container)},r.switchScrollingEffect=function(){1!==k||Object.keys(_).length?k||(m(_),_={},y(!0)):(y(),_=m({overflow:"hidden",overflowX:"hidden",overflowY:"hidden"}))},r.scrollLocker=new S({container:T(e.getContainer)}),r}return(0,s.Z)(n,[{key:"componentDidMount",value:function(){var e=this;this.updateOpenCount(),this.attachToParent()||(this.rafId=(0,d.Z)((function(){e.forceUpdate()})))}},{key:"componentDidUpdate",value:function(e){this.updateOpenCount(e),this.updateScrollLocker(e),this.setWrapperClassName(),this.attachToParent()}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.visible,n=e.getContainer;N&&T(n)===document.body&&(k=t&&k?k-1:k),this.removeCurrentContainer(),d.Z.cancel(this.rafId)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.forceRender,r=e.visible,o=null,a={getOpenCount:function(){return k},getContainer:this.getContainer,switchScrollingEffect:this.switchScrollingEffect,scrollLocker:this.scrollLocker};return(n||r||this.componentRef.current)&&(o=i.createElement(p.Z,{getContainer:this.getContainer,ref:this.componentRef},t(a))),o}}]),n}(i.Component),P=O,R=n(1413),A=n(94184),M=n.n(A),j=n(15105);var L=0;function F(e){var t=i.useState("ssr-id"),n=(0,o.Z)(t,2),r=n[0],c=n[1],s=(0,R.Z)({},a).useId,u=null===s||void 0===s?void 0:s();return i.useEffect((function(){if(!s){var e=L;L+=1,c("rc_unique_".concat(e))}}),[]),e||(u||r)}var I=n(94999),V=n(64217),D=n(62874);function z(e){var t=e.prefixCls,n=e.style,o=e.visible,a=e.maskProps,c=e.motionName;return i.createElement(D.Z,{key:"mask",visible:o,motionName:c,leavedClassName:"".concat(t,"-mask-hidden")},(function(e){var o=e.className,c=e.style;return i.createElement("div",(0,r.Z)({style:(0,R.Z)((0,R.Z)({},c),n),className:M()("".concat(t,"-mask"),o)},a))}))}function U(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function B(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var o=e.document;"number"!==typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var H=i.memo((function(e){return e.children}),(function(e,t){return!t.shouldUpdate})),W={width:0,height:0,overflow:"hidden",outline:"none"};var q=i.forwardRef((function(e,t){var n=e.prefixCls,o=e.className,a=e.style,c=e.title,s=e.ariaId,u=e.footer,l=e.closable,f=e.closeIcon,d=e.onClose,p=e.children,h=e.bodyStyle,v=e.bodyProps,m=e.modalRender,g=e.onMouseDown,y=e.onMouseUp,b=e.holderRef,w=e.visible,x=e.forceRender,E=e.width,C=e.height,Z=(0,i.useRef)(),S=(0,i.useRef)();i.useImperativeHandle(t,(function(){return{focus:function(){var e;null===(e=Z.current)||void 0===e||e.focus()},changeActive:function(e){var t=document.activeElement;e&&t===S.current?Z.current.focus():e||t!==Z.current||S.current.focus()}}}));var k,N,_,T={};void 0!==E&&(T.width=E),void 0!==C&&(T.height=C),u&&(k=i.createElement("div",{className:"".concat(n,"-footer")},u)),c&&(N=i.createElement("div",{className:"".concat(n,"-header")},i.createElement("div",{className:"".concat(n,"-title"),id:s},c))),l&&(_=i.createElement("button",{type:"button",onClick:d,"aria-label":"Close",className:"".concat(n,"-close")},f||i.createElement("span",{className:"".concat(n,"-close-x")})));var O=i.createElement("div",{className:"".concat(n,"-content")},_,N,i.createElement("div",(0,r.Z)({className:"".concat(n,"-body"),style:h},v),p),k);return i.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":c?s:null,"aria-modal":"true",ref:b,style:(0,R.Z)((0,R.Z)({},a),T),className:M()(n,o),onMouseDown:g,onMouseUp:y},i.createElement("div",{tabIndex:0,ref:Z,style:W,"aria-hidden":"true"}),i.createElement(H,{shouldUpdate:w||x},m?m(O):O),i.createElement("div",{tabIndex:0,ref:S,style:W,"aria-hidden":"true"}))})),$=i.forwardRef((function(e,t){var n=e.prefixCls,a=e.title,c=e.style,s=e.className,u=e.visible,l=e.forceRender,f=e.destroyOnClose,d=e.motionName,p=e.ariaId,h=e.onVisibleChanged,v=e.mousePosition,m=(0,i.useRef)(),g=i.useState(),y=(0,o.Z)(g,2),b=y[0],w=y[1],x={};function E(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=B(o),n.top+=B(o,!0),n}(m.current);w(v?"".concat(v.x-e.left,"px ").concat(v.y-e.top,"px"):"")}return b&&(x.transformOrigin=b),i.createElement(D.Z,{visible:u,onVisibleChanged:h,onAppearPrepare:E,onEnterPrepare:E,forceRender:l,motionName:d,removeOnLeave:f,ref:m},(function(o,u){var l=o.className,f=o.style;return i.createElement(q,(0,r.Z)({},e,{ref:t,title:a,ariaId:p,prefixCls:n,holderRef:u,style:(0,R.Z)((0,R.Z)((0,R.Z)({},f),c),x),className:M()(s,l)}))}))}));$.displayName="Content";var K=$;function G(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,a=e.zIndex,c=e.visible,s=void 0!==c&&c,u=e.keyboard,l=void 0===u||u,f=e.focusTriggerAfterClose,d=void 0===f||f,p=e.scrollLocker,h=e.wrapStyle,v=e.wrapClassName,m=e.wrapProps,g=e.onClose,y=e.afterClose,b=e.transitionName,w=e.animation,x=e.closable,E=void 0===x||x,C=e.mask,Z=void 0===C||C,S=e.maskTransitionName,k=e.maskAnimation,N=e.maskClosable,_=void 0===N||N,T=e.maskStyle,O=e.maskProps,P=e.rootClassName,A=(0,i.useRef)(),L=(0,i.useRef)(),D=(0,i.useRef)(),B=i.useState(s),H=(0,o.Z)(B,2),W=H[0],q=H[1],$=F();function G(e){null===g||void 0===g||g(e)}var Y=(0,i.useRef)(!1),X=(0,i.useRef)(),Q=null;return _&&(Q=function(e){Y.current?Y.current=!1:L.current===e.target&&G(e)}),(0,i.useEffect)((function(){return s&&q(!0),function(){}}),[s]),(0,i.useEffect)((function(){return function(){clearTimeout(X.current)}}),[]),(0,i.useEffect)((function(){return W?(null===p||void 0===p||p.lock(),null===p||void 0===p?void 0:p.unLock):function(){}}),[W,p]),i.createElement("div",(0,r.Z)({className:M()("".concat(n,"-root"),P)},(0,V.Z)(e,{data:!0})),i.createElement(z,{prefixCls:n,visible:Z&&s,motionName:U(n,S,k),style:(0,R.Z)({zIndex:a},T),maskProps:O}),i.createElement("div",(0,r.Z)({tabIndex:-1,onKeyDown:function(e){if(l&&e.keyCode===j.Z.ESC)return e.stopPropagation(),void G(e);s&&e.keyCode===j.Z.TAB&&D.current.changeActive(!e.shiftKey)},className:M()("".concat(n,"-wrap"),v),ref:L,onClick:Q,style:(0,R.Z)((0,R.Z)({zIndex:a},h),{},{display:W?null:"none"})},m),i.createElement(K,(0,r.Z)({},e,{onMouseDown:function(){clearTimeout(X.current),Y.current=!0},onMouseUp:function(){X.current=setTimeout((function(){Y.current=!1}))},ref:D,closable:E,ariaId:$,prefixCls:n,visible:s,onClose:G,onVisibleChanged:function(e){if(e){var t;if(!(0,I.Z)(L.current,document.activeElement))A.current=document.activeElement,null===(t=D.current)||void 0===t||t.focus()}else{if(q(!1),Z&&A.current&&d){try{A.current.focus({preventScroll:!0})}catch(n){}A.current=null}W&&(null===y||void 0===y||y())}},motionName:U(n,b,w)}))))}var Y=function(e){var t=e.visible,n=e.getContainer,a=e.forceRender,c=e.destroyOnClose,s=void 0!==c&&c,u=e.afterClose,l=i.useState(t),f=(0,o.Z)(l,2),d=f[0],p=f[1];return i.useEffect((function(){t&&p(!0)}),[t]),!1===n?i.createElement(G,(0,r.Z)({},e,{getOpenCount:function(){return 2}})):a||!s||d?i.createElement(P,{visible:t,forceRender:a,getContainer:n},(function(t){return i.createElement(G,(0,r.Z)({},e,{destroyOnClose:s,afterClose:function(){null===u||void 0===u||u(),p(!1)}},t))})):null};Y.displayName="Dialog";var X=Y},71990:function(e,t,n){"use strict";n.r(t),n.d(t,{Field:function(){return Ne},FieldContext:function(){return y},FormProvider:function(){return Ve},List:function(){return Te},ListContext:function(){return _e},default:function(){return qe},useForm:function(){return Fe},useWatch:function(){return He}});var r=n(67294),o=n(87462),i=n(91),a=n(4942),c=n(1413),s=n(74902),u=n(15671),l=n(43144),f=n(97326),d=n(60136),p=n(33643),h=n(50344),v=n(80334),m="RC_FORM_INTERNAL_HOOKS",g=function(){(0,v.ZP)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},y=r.createContext({getFieldValue:g,getFieldsValue:g,getFieldError:g,getFieldWarning:g,getFieldsError:g,isFieldsTouched:g,isFieldTouched:g,isFieldValidating:g,isFieldsValidating:g,resetFields:g,setFields:g,setFieldValue:g,setFieldsValue:g,validateFields:g,submit:g,getInternalHooks:function(){return g(),{dispatch:g,initEntityValue:g,registerField:g,useSubscribe:g,setInitialValues:g,destroyForm:g,setCallbacks:g,registerWatch:g,getFields:g,setValidateMessages:g,setPreserve:g,getInitialValue:g}}});function b(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}var w=n(74165),x=n(15861),E=n(34155);function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(t){return"[Circular]"}break;default:return e}}));return a}return e}function R(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function A(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var c=r;r+=1,c()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,z=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,U={integer:function(e){return U.number(e)&&parseInt(e,10)===e},float:function(e){return U.number(e)&&!U.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===typeof e&&!U.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(D)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(function(){if(I)return I;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=("\n(?:\n(?:"+r+":){7}(?:"+r+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+r+":){6}(?:"+n+"|:"+r+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+r+":){5}(?::"+n+"|(?::"+r+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+r+"){0,5}:"+n+"|(?::"+r+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+o+"$)"),a=new RegExp("^"+n+"$"),c=new RegExp("^"+o+"$"),s=function(e){return e&&e.exact?i:new RegExp("(?:"+t(e)+n+t(e)+")|(?:"+t(e)+o+t(e)+")","g")};s.v4=function(e){return e&&e.exact?a:new RegExp(""+t(e)+n+t(e),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp(""+t(e)+o+t(e),"g")};var u=s.v4().source,l=s.v6().source;return I=new RegExp("(?:^(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+u+"|"+l+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?$)',"i")}())},hex:function(e){return"string"===typeof e&&!!e.match(z)}},B={required:V,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(P(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)V(e,t,n,r,o);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?U[i](t)||r.push(P(o.messages.types[i],e.fullField,e.type)):i&&typeof t!==e.type&&r.push(P(o.messages.types[i],e.fullField,e.type))}},range:function(e,t,n,r,o){var i="number"===typeof e.len,a="number"===typeof e.min,c="number"===typeof e.max,s=t,u=null,l="number"===typeof t,f="string"===typeof t,d=Array.isArray(t);if(l?u="number":f?u="string":d&&(u="array"),!u)return!1;d&&(s=t.length),f&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(P(o.messages[u].len,e.fullField,e.len)):a&&!c&&se.max?r.push(P(o.messages[u].max,e.fullField,e.max)):a&&c&&(se.max)&&r.push(P(o.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&r.push(P(o.messages.enum,e.fullField,e.enum.join(", ")))},pattern:function(e,t,n,r,o){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(P(o.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||r.push(P(o.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},H=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t,i)&&!e.required)return n();B.required(e,t,r,a,o,i),R(t,i)||B.type(e,t,r,a,o)}n(a)},W={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t,"string")&&!e.required)return n();B.required(e,t,r,i,o,"string"),R(t,"string")||(B.type(e,t,r,i,o),B.range(e,t,r,i,o),B.pattern(e,t,r,i,o),!0===e.whitespace&&B.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&B.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),R(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&B.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();B.required(e,t,r,i,o),R(t)||B.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((void 0===t||null===t)&&!e.required)return n();B.required(e,t,r,i,o,"array"),void 0!==t&&null!==t&&(B.type(e,t,r,i,o),B.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&B.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();B.required(e,t,r,i,o),void 0!==t&&B.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t,"string")&&!e.required)return n();B.required(e,t,r,i,o),R(t,"string")||B.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t,"date")&&!e.required)return n();var a;if(B.required(e,t,r,i,o),!R(t,"date"))a=t instanceof Date?t:new Date(t),B.type(e,a,r,i,o),a&&B.range(e,a.getTime(),r,i,o)}n(i)},url:H,hex:H,email:H,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":typeof t;B.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(R(t)&&!e.required)return n();B.required(e,t,r,i,o)}n(i)}};function q(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var $=q(),K=function(){function e(e){this.rules=null,this._messages=$,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof e||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach((function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]}))},t.messages=function(e){return e&&(this._messages=F(q(),e)),this._messages},t.validate=function(t,n,r){var o=this;void 0===n&&(n={}),void 0===r&&(r=function(){});var i=t,a=n,c=r;if("function"===typeof a&&(c=a,a={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(null,i),Promise.resolve(i);if(a.messages){var s=this.messages();s===$&&(s=q()),F(s,a.messages),a.messages=s}else a.messages=this.messages();var u={};(a.keys||Object.keys(this.rules)).forEach((function(e){var n=o.rules[e],r=i[e];n.forEach((function(n){var a=n;"function"===typeof a.transform&&(i===t&&(i=C({},i)),r=i[e]=a.transform(r)),(a="function"===typeof a?{validator:a}:C({},a)).validator=o.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=o.getType(a),u[e]=u[e]||[],u[e].push({rule:a,value:r,source:i,field:e}))}))}));var l={};return j(u,a,(function(t,n){var r,o=t.rule,c=("object"===o.type||"array"===o.type)&&("object"===typeof o.fields||"object"===typeof o.defaultField);function s(e,t){return C({},t,{fullField:o.fullField+"."+e,fullFields:o.fullFields?[].concat(o.fullFields,[e]):[e]})}function u(r){void 0===r&&(r=[]);var u=Array.isArray(r)?r:[r];!a.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==o.message&&(u=[].concat(o.message));var f=u.map(L(o,i));if(a.first&&f.length)return l[o.field]=1,n(f);if(c){if(o.required&&!t.value)return void 0!==o.message?f=[].concat(o.message).map(L(o,i)):a.error&&(f=[a.error(o,P(a.messages.required,o.field))]),n(f);var d={};o.defaultField&&Object.keys(t.value).map((function(e){d[e]=o.defaultField})),d=C({},d,t.rule.fields);var p={};Object.keys(d).forEach((function(e){var t=d[e],n=Array.isArray(t)?t:[t];p[e]=n.map(s.bind(null,e))}));var h=new e(p);h.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),h.validate(t.value,t.rule.options||a,(function(e){var t=[];f&&f.length&&t.push.apply(t,f),e&&e.length&&t.push.apply(t,e),n(t.length?t:null)}))}else n(f)}if(c=c&&(o.required||!o.required&&t.value),o.field=t.field,o.asyncValidator)r=o.asyncValidator(o,t.value,u,t.source,a);else if(o.validator){try{r=o.validator(o,t.value,u,t.source,a)}catch(f){null==console.error||console.error(f),a.suppressValidatorError||setTimeout((function(){throw f}),0),u(f.message)}!0===r?u():!1===r?u("function"===typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):r instanceof Array?u(r):r instanceof Error&&u(r.message)}r&&r.then&&r.then((function(){return u()}),(function(e){return u(e)}))}),(function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,e):t.push(e)}for(var o=0;o3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!Q(e,t.slice(0,-1))?e:ee(e,t,n,r)}function ne(e){return Array.isArray(e)?function(e){return e.map((function(e){return ne(e)}))}(e):"object"===(0,X.Z)(e)&&null!==e?function(e){if(Object.getPrototypeOf(e)===Object.prototype){var t={};for(var n in e)t[n]=ne(e[n]);return t}return e}(e):e}var re=ne;function oe(e){return b(e)}function ie(e,t){return Q(e,t)}function ae(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=te(e,t,n,r);return o}function ce(e,t){var n={};return t.forEach((function(t){var r=ie(e,t);n=ae(n,t,r)})),n}function se(e,t){return e&&e.some((function(e){return de(e,t)}))}function ue(e){return"object"===(0,X.Z)(e)&&null!==e&&Object.getPrototypeOf(e)===Object.prototype}function le(e,t){var n=Array.isArray(e)?(0,s.Z)(e):(0,c.Z)({},e);return t?(Object.keys(t).forEach((function(e){var r=n[e],o=t[e],i=ue(r)&&ue(o);n[e]=i?le(r,o||{}):re(o)})),n):n}function fe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat((0,s.Z)(e.slice(0,n)),[o],(0,s.Z)(e.slice(n,t)),(0,s.Z)(e.slice(t+1,r))):i<0?[].concat((0,s.Z)(e.slice(0,t)),(0,s.Z)(e.slice(t+1,n+1)),[o],(0,s.Z)(e.slice(n+1,r))):e}var ve=K;function me(e,t){return e.replace(/\$\{\w+\}/g,(function(e){var n=e.slice(2,-1);return t[n]}))}var ge="CODE_LOGIC_ERROR";function ye(e,t,n,r,o){return be.apply(this,arguments)}function be(){return be=(0,x.Z)((0,w.Z)().mark((function e(t,n,o,i,u){var l,f,d,p,h,v,m,g,y;return(0,w.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=(0,c.Z)({},o)).ruleIndex,l.validator&&(f=l.validator,l.validator=function(){try{return f.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(ge)}}),d=null,l&&"array"===l.type&&l.defaultField&&(d=l.defaultField,delete l.defaultField),p=new ve((0,a.Z)({},t,[l])),h=fe({},Y,i.validateMessages),p.messages(h),v=[],e.prev=9,e.next=12,Promise.resolve(p.validate((0,a.Z)({},t,n),(0,c.Z)({},i)));case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(9),e.t0.errors&&(v=e.t0.errors.map((function(e,t){var n=e.message,o=n===ge?h.default:n;return r.isValidElement(o)?r.cloneElement(o,{key:"error_".concat(t)}):o})));case 17:if(v.length||!d){e.next=22;break}return e.next=20,Promise.all(n.map((function(e,n){return ye("".concat(t,".").concat(n),e,d,i,u)})));case 20:return m=e.sent,e.abrupt("return",m.reduce((function(e,t){return[].concat((0,s.Z)(e),(0,s.Z)(t))}),[]));case 22:return g=(0,c.Z)((0,c.Z)({},o),{},{name:t,enum:(o.enum||[]).join(", ")},u),y=v.map((function(e){return"string"===typeof e?me(e,g):e})),e.abrupt("return",y);case 25:case"end":return e.stop()}}),e,null,[[9,14]])}))),be.apply(this,arguments)}function we(e,t,n,r,o,i){var a,s=e.join("."),u=n.map((function(e,t){var n=e.validator,r=(0,c.Z)((0,c.Z)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,(function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:Ze;if(o.validatePromise===r){var t;o.validatePromise=null;var n=[],i=[];null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,r=e.errors,o=void 0===r?Ze:r;t?i.push.apply(i,(0,s.Z)(o)):n.push.apply(n,(0,s.Z)(o))})),o.errors=n,o.warnings=i,o.triggerMetaEvent(),o.reRender()}})),d}));return o.validatePromise=r,o.dirty=!0,o.errors=Ze,o.warnings=Ze,o.triggerMetaEvent(),o.reRender(),r},o.isFieldValidating=function(){return!!o.validatePromise},o.isFieldTouched=function(){return o.touched},o.isFieldDirty=function(){return!(!o.dirty&&void 0===o.props.initialValue)||void 0!==(0,o.props.fieldContext.getInternalHooks(m).getInitialValue)(o.getNamePath())},o.getErrors=function(){return o.errors},o.getWarnings=function(){return o.warnings},o.isListField=function(){return o.props.isListField},o.isList=function(){return o.props.isList},o.isPreserve=function(){return o.props.preserve},o.getMeta=function(){return o.prevValidating=o.isFieldValidating(),{touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath()}},o.getOnlyChild=function(e){if("function"===typeof e){var t=o.getMeta();return(0,c.Z)((0,c.Z)({},o.getOnlyChild(e(o.getControlled(),t,o.props.fieldContext))),{},{isFunction:!0})}var n=(0,h.Z)(e);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},o.getValue=function(e){var t=o.props.fieldContext.getFieldsValue,n=o.getNamePath();return ie(e||t(!0),n)},o.getControlled=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=o.props,n=t.trigger,r=t.validateTrigger,i=t.getValueFromEvent,s=t.normalize,u=t.valuePropName,l=t.getValueProps,f=t.fieldContext,d=void 0!==r?r:f.validateTrigger,p=o.getNamePath(),h=f.getInternalHooks,v=f.getFieldsValue,g=h(m),y=g.dispatch,w=o.getValue(),x=l||function(e){return(0,a.Z)({},u,e)},E=e[n],C=(0,c.Z)((0,c.Z)({},e),x(w));C[n]=function(){var e;o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),r=0;r=0&&t<=n.length?(l.keys=[].concat((0,s.Z)(l.keys.slice(0,t)),[l.id],(0,s.Z)(l.keys.slice(t))),i([].concat((0,s.Z)(n.slice(0,t)),[e],(0,s.Z)(n.slice(t))))):(l.keys=[].concat((0,s.Z)(l.keys),[l.id]),i([].concat((0,s.Z)(n),[e]))),l.id+=1},remove:function(e){var t=c(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(l.keys=l.keys.filter((function(e,t){return!n.has(t)})),i(t.filter((function(e,t){return!n.has(t)}))))},move:function(e,t){if(e!==t){var n=c();e<0||e>=n.length||t<0||t>=n.length||(l.keys=he(l.keys,e,t),i(he(n,e,t)))}}},p=r||[];return Array.isArray(p)||(p=[]),o(p.map((function(e,t){var n=l.keys[t];return void 0===n&&(l.keys[t]=l.id,n=l.keys[t],l.id+=1),{name:t,key:n,isListField:!0}})),d,t)}))))},Oe=n(97685);var Pe="__@field_split__";function Re(e){return e.map((function(e){return"".concat((0,X.Z)(e),":").concat(e)})).join(Pe)}var Ae=function(){function e(){(0,u.Z)(this,e),this.kvs=new Map}return(0,l.Z)(e,[{key:"set",value:function(e,t){this.kvs.set(Re(e),t)}},{key:"get",value:function(e){return this.kvs.get(Re(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(Re(e))}},{key:"map",value:function(e){return(0,s.Z)(this.kvs.entries()).map((function(t){var n=(0,Oe.Z)(t,2),r=n[0],o=n[1],i=r.split(Pe);return e({key:i.map((function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,Oe.Z)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o})),value:o})}))}},{key:"toJSON",value:function(){var e={};return this.map((function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null})),e}}]),e}(),Me=Ae,je=["name","errors"],Le=(0,l.Z)((function e(t){var n=this;(0,u.Z)(this,e),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(e){return e===m?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,v.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(e){n.subscribable=e},this.prevWithoutPreserves=null,this.setInitialValues=function(e,t){if(n.initialValues=e||{},t){var r,o=fe({},e,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(t){var n=t.key;o=ae(o,n,ie(e,n))})),n.prevWithoutPreserves=null,n.updateStore(o)}},this.destroyForm=function(){var e=new Me;n.getFieldEntities(!0).forEach((function(t){n.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)})),n.prevWithoutPreserves=e},this.getInitialValue=function(e){var t=ie(n.initialValues,e);return e.length?re(t):t},this.setCallbacks=function(e){n.callbacks=e},this.setValidateMessages=function(e){n.validateMessages=e},this.setPreserve=function(e){n.preserve=e},this.watchList=[],this.registerWatch=function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter((function(t){return t!==e}))}},this.notifyWatch=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue();n.watchList.forEach((function(n){n(t,e)}))}},this.timeoutId=null,this.warningUnhooked=function(){0},this.updateStore=function(e){n.store=e},this.getFieldEntities=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter((function(e){return e.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new Me;return n.getFieldEntities(e).forEach((function(e){var n=e.getNamePath();t.set(n,e)})),t},this.getFieldEntitiesForNamePathList=function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map((function(e){var n=oe(e);return t.get(n)||{INVALIDATE_NAME_PATH:oe(e)}}))},this.getFieldsValue=function(e,t){if(n.warningUnhooked(),!0===e&&!t)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(e)?e:null),o=[];return r.forEach((function(n){var r,i="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();if(e||!(null===(r=n.isListField)||void 0===r?void 0:r.call(n)))if(t){var a="getMeta"in n?n.getMeta():null;t(a)&&o.push(i)}else o.push(i)})),ce(n.store,o.map(oe))},this.getFieldValue=function(e){n.warningUnhooked();var t=oe(e);return ie(n.store,t)},this.getFieldsError=function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map((function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:oe(e[n]),errors:[],warnings:[]}}))},this.getFieldError=function(e){n.warningUnhooked();var t=oe(e);return n.getFieldsError([t])[0].errors},this.getFieldWarning=function(e){n.warningUnhooked();var t=oe(e);return n.getFieldsError([t])[0].warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=new Me,r=n.getFieldEntities(!0);r.forEach((function(e){var n=e.props.initialValue,r=e.getNamePath();if(void 0!==n){var o=t.get(r)||new Set;o.add({entity:e,value:n}),t.set(r,o)}}));var o,i=function(r){r.forEach((function(r){if(void 0!==r.props.initialValue){var o=r.getNamePath();if(void 0!==n.getInitialValue(o))(0,v.ZP)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=t.get(o);if(i&&i.size>1)(0,v.ZP)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.skipExist&&void 0!==a||n.updateStore(ae(n.store,o,(0,s.Z)(i)[0].value))}}}}))};e.entities?o=e.entities:e.namePathList?(o=[],e.namePathList.forEach((function(e){var n,r=t.get(e);r&&(n=o).push.apply(n,(0,s.Z)((0,s.Z)(r).map((function(e){return e.entity}))))}))):o=r,i(o)},this.resetFields=function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(fe({},n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var r=e.map(oe);r.forEach((function(e){var t=n.getInitialValue(e);n.updateStore(ae(n.store,e,t))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)},this.setFields=function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach((function(e){var o=e.name,a=(e.errors,(0,i.Z)(e,je)),c=oe(o);r.push(c),"value"in a&&n.updateStore(ae(n.store,c,a.value)),n.notifyObservers(t,[c],{type:"setField",data:e})})),n.notifyWatch(r)},this.getFields=function(){return n.getFieldEntities(!0).map((function(e){var t=e.getNamePath(),r=e.getMeta(),o=(0,c.Z)((0,c.Z)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o}))},this.initEntityValue=function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===ie(n.store,r)&&n.updateStore(ae(n.store,r,t))}},this.isMergedPreserve=function(e){var t=void 0!==e?e:n.preserve;return null===t||void 0===t||t},this.registerField=function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(t){return t!==e})),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every((function(e){return!de(e.getNamePath(),t)}))){var c=n.store;n.updateStore(ae(c,t,a,!0)),n.notifyObservers(c,[t],{type:"remove"}),n.triggerDependenciesUpdate(c,t)}}n.notifyWatch([t])}},this.dispatch=function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}},this.notifyObservers=function(e,t,r){if(n.subscribable){var o=(0,c.Z)((0,c.Z)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(e,t,o)}))}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,s.Z)(r))}),r},this.updateValue=function(e,t){var r=oe(e),o=n.store;n.updateStore(ae(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(ce(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat((0,s.Z)(i)))},this.setFieldsValue=function(e){n.warningUnhooked();var t=n.store;if(e){var r=fe(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.setFieldValue=function(e,t){n.setFields([{name:e,value:t}])},this.getDependencyChildrenFields=function(e){var t=new Set,r=[],o=new Me;n.getFieldEntities().forEach((function(e){(e.props.dependencies||[]).forEach((function(t){var n=oe(t);o.update(n,(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t}))}))}));return function e(n){(o.get(n)||new Set).forEach((function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}}))}(e),r},this.triggerOnFieldsChange=function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new Me;t.forEach((function(e){var t=e.name,n=e.errors;i.set(t,n)})),o.forEach((function(e){e.errors=i.get(e.name)||e.errors}))}r(o.filter((function(t){var n=t.name;return se(e,n)})),o)}},this.validateFields=function(e,t){n.warningUnhooked();var r=!!e,o=r?e.map(oe):[],i=[];n.getFieldEntities(!0).forEach((function(a){if(r||o.push(a.getNamePath()),(null===t||void 0===t?void 0:t.recursive)&&r){var u=a.getNamePath();u.every((function(t,n){return e[n]===t||void 0===e[n]}))&&o.push(u)}if(a.props.rules&&a.props.rules.length){var l=a.getNamePath();if(!r||se(o,l)){var f=a.validateRules((0,c.Z)({validateMessages:(0,c.Z)((0,c.Z)({},Y),n.validateMessages)},t));i.push(f.then((function(){return{name:l,errors:[],warnings:[]}})).catch((function(e){var t,n=[],r=[];return null===(t=e.forEach)||void 0===t||t.call(e,(function(e){var t=e.rule.warningOnly,o=e.errors;t?r.push.apply(r,(0,s.Z)(o)):n.push.apply(n,(0,s.Z)(o))})),n.length?Promise.reject({name:l,errors:n,warnings:r}):{name:l,errors:n,warnings:r}})))}}}));var a=function(e){var t=!1,n=e.length,r=[];return e.length?new Promise((function(o,i){e.forEach((function(e,a){e.catch((function(e){return t=!0,e})).then((function(e){n-=1,r[a]=e,n>0||(t&&i(r),o(r))}))}))})):Promise.resolve([])}(i);n.lastValidatePromise=a,a.catch((function(e){return e})).then((function(e){var t=e.map((function(e){return e.name}));n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)}));var u=a.then((function(){return n.lastValidatePromise===a?Promise.resolve(n.getFieldsValue(o)):Promise.reject([])})).catch((function(e){var t=e.filter((function(e){return e&&e.errors.length}));return Promise.reject({values:n.getFieldsValue(o),errorFields:t,outOfDate:n.lastValidatePromise!==a})}));return u.catch((function(e){return e})),u},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(r){console.error(r)}})).catch((function(e){var t=n.callbacks.onFinishFailed;t&&t(e)}))},this.forceRootUpdate=t}));var Fe=function(e){var t=r.useRef(),n=r.useState({}),o=(0,Oe.Z)(n,2)[1];if(!t.current)if(e)t.current=e;else{var i=new Le((function(){o({})}));t.current=i.getForm()}return[t.current]},Ie=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Ve=function(e){var t=e.validateMessages,n=e.onFormChange,o=e.onFormFinish,i=e.children,s=r.useContext(Ie),u=r.useRef({});return r.createElement(Ie.Provider,{value:(0,c.Z)((0,c.Z)({},s),{},{validateMessages:(0,c.Z)((0,c.Z)({},s.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:u.current}),s.triggerFormChange(e,t)},triggerFormFinish:function(e,t){o&&o(e,{values:t,forms:u.current}),s.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(u.current=(0,c.Z)((0,c.Z)({},u.current),{},(0,a.Z)({},e,t))),s.registerForm(e,t)},unregisterForm:function(e){var t=(0,c.Z)({},u.current);delete t[e],u.current=t,s.unregisterForm(e)}})},i)},De=Ie,ze=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],Ue=function(e,t){var n=e.name,a=e.initialValues,u=e.fields,l=e.form,f=e.preserve,d=e.children,p=e.component,h=void 0===p?"form":p,v=e.validateMessages,g=e.validateTrigger,b=void 0===g?"onChange":g,w=e.onValuesChange,x=e.onFieldsChange,E=e.onFinish,C=e.onFinishFailed,Z=(0,i.Z)(e,ze),S=r.useContext(De),k=Fe(l),N=(0,Oe.Z)(k,1)[0],_=N.getInternalHooks(m),T=_.useSubscribe,O=_.setInitialValues,P=_.setCallbacks,R=_.setValidateMessages,A=_.setPreserve,M=_.destroyForm;r.useImperativeHandle(t,(function(){return N})),r.useEffect((function(){return S.registerForm(n,N),function(){S.unregisterForm(n)}}),[S,N,n]),R((0,c.Z)((0,c.Z)({},S.validateMessages),v)),P({onValuesChange:w,onFieldsChange:function(e){if(S.triggerFormChange(n,e),x){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=(0,r.useState)(),o=(0,Oe.Z)(n,2),i=o[0],a=o[1],c=(0,r.useMemo)((function(){return Be(i)}),[i]),s=(0,r.useRef)(c);s.current=c;var u=(0,r.useContext)(y),l=t||u,f=l&&l._init,d=oe(e),p=(0,r.useRef)(d);return p.current=d,(0,r.useEffect)((function(){if(f){var e=l.getFieldsValue,t=(0,(0,l.getInternalHooks)(m).registerWatch)((function(e){var t=ie(e,p.current),n=Be(t);s.current!==n&&(s.current=n,a(t))})),n=ie(e(),p.current);return a(n),t}}),[]),i},We=r.forwardRef(Ue);We.FormProvider=Ve,We.Field=Ne,We.List=Te,We.useForm=Fe,We.useWatch=He;var qe=We},59775:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseInput:function(){return d},default:function(){return w}});var r=n(4942),o=n(71002),i=n(67294),a=n(94184),c=n.n(a);function s(e){return!(!e.addonBefore&&!e.addonAfter)}function u(e){return!!(e.prefix||e.suffix||e.allowClear)}function l(e,t,n,r){if(n){var o=t;if("click"===t.type){var i=e.cloneNode(!0);return o=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",void n(o)}if(void 0!==r)return o=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=r,void n(o);n(o)}}function f(e){return"undefined"===typeof e||null===e?"":String(e)}var d=function(e){var t=e.inputElement,n=e.prefixCls,a=e.prefix,l=e.suffix,f=e.addonBefore,d=e.addonAfter,p=e.className,h=e.style,v=e.affixWrapperClassName,m=e.groupClassName,g=e.wrapperClassName,y=e.disabled,b=e.readOnly,w=e.focused,x=e.triggerFocus,E=e.allowClear,C=e.value,Z=e.handleReset,S=e.hidden,k=(0,i.useRef)(null),N=(0,i.cloneElement)(t,{value:C,hidden:S});if(u(e)){var _,T="".concat(n,"-affix-wrapper"),O=c()(T,(_={},(0,r.Z)(_,"".concat(T,"-disabled"),y),(0,r.Z)(_,"".concat(T,"-focused"),w),(0,r.Z)(_,"".concat(T,"-readonly"),b),(0,r.Z)(_,"".concat(T,"-input-with-clear-btn"),l&&E&&C),_),!s(e)&&p,v),P=(l||E)&&i.createElement("span",{className:"".concat(n,"-suffix")},function(){var e;if(!E)return null;var t=!y&&!b&&C,a="".concat(n,"-clear-icon"),s="object"===(0,o.Z)(E)&&(null===E||void 0===E?void 0:E.clearIcon)?E.clearIcon:"\u2716";return i.createElement("span",{onClick:Z,onMouseDown:function(e){return e.preventDefault()},className:c()(a,(e={},(0,r.Z)(e,"".concat(a,"-hidden"),!t),(0,r.Z)(e,"".concat(a,"-has-suffix"),!!l),e)),role:"button",tabIndex:-1},s)}(),l);N=i.createElement("span",{className:O,style:h,hidden:!s(e)&&S,onMouseDown:function(e){var t;(null===(t=k.current)||void 0===t?void 0:t.contains(e.target))&&(null===x||void 0===x||x())},ref:k},a&&i.createElement("span",{className:"".concat(n,"-prefix")},a),(0,i.cloneElement)(t,{style:null,value:C,hidden:null}),P)}if(s(e)){var R="".concat(n,"-group"),A="".concat(R,"-addon"),M=c()("".concat(n,"-wrapper"),R,g),j=c()("".concat(n,"-group-wrapper"),p,m);return i.createElement("span",{className:j,style:h,hidden:S},i.createElement("span",{className:M},f&&i.createElement("span",{className:A},f),(0,i.cloneElement)(N,{style:null,hidden:null}),d&&i.createElement("span",{className:A},d)))}return N},p=n(74902),h=n(1413),v=n(97685),m=n(91),g=n(98423),y=n(21770),b=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","inputClassName"],w=(0,i.forwardRef)((function(e,t){var n=e.autoComplete,a=e.onChange,w=e.onFocus,x=e.onBlur,E=e.onPressEnter,C=e.onKeyDown,Z=e.prefixCls,S=void 0===Z?"rc-input":Z,k=e.disabled,N=e.htmlSize,_=e.className,T=e.maxLength,O=e.suffix,P=e.showCount,R=e.type,A=void 0===R?"text":R,M=e.inputClassName,j=(0,m.Z)(e,b),L=(0,y.Z)(e.defaultValue,{value:e.value}),F=(0,v.Z)(L,2),I=F[0],V=F[1],D=(0,i.useState)(!1),z=(0,v.Z)(D,2),U=z[0],B=z[1],H=(0,i.useRef)(null),W=function(e){H.current&&function(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}}(H.current,e)};(0,i.useImperativeHandle)(t,(function(){return{focus:W,blur:function(){var e;null===(e=H.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var r;null===(r=H.current)||void 0===r||r.setSelectionRange(e,t,n)},select:function(){var e;null===(e=H.current)||void 0===e||e.select()},input:H.current}})),(0,i.useEffect)((function(){B((function(e){return(!e||!k)&&e}))}),[k]);var q=function(t){void 0===e.value&&V(t.target.value),H.current&&l(H.current,t,a)},$=function(e){E&&"Enter"===e.key&&E(e),null===C||void 0===C||C(e)},K=function(e){B(!0),null===w||void 0===w||w(e)},G=function(e){B(!1),null===x||void 0===x||x(e)};return i.createElement(d,(0,h.Z)((0,h.Z)({},j),{},{prefixCls:S,className:_,inputElement:function(){var t=(0,g.Z)(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName","htmlSize"]);return i.createElement("input",(0,h.Z)((0,h.Z)({autoComplete:n},t),{},{onChange:q,onFocus:K,onBlur:G,onKeyDown:$,className:c()(S,(0,r.Z)({},"".concat(S,"-disabled"),k),M,!s(e)&&!u(e)&&_),ref:H,size:N,type:A}))}(),handleReset:function(e){V(""),W(),H.current&&l(H.current,e,a)},value:f(I),focused:U,triggerFocus:W,suffix:function(){var e=Number(T)>0;if(O||P){var t=f(I),n=(0,p.Z)(t).length,a="object"===(0,o.Z)(P)?P.formatter({value:t,count:n,maxLength:T}):"".concat(n).concat(e?" / ".concat(T):"");return i.createElement(i.Fragment,null,!!P&&i.createElement("span",{className:c()("".concat(S,"-show-count-suffix"),(0,r.Z)({},"".concat(S,"-show-count-has-suffix"),!!O))},a),O)}return null}(),disabled:k}))}))},97868:function(e,t,n){"use strict";n.d(t,{iz:function(){return He},ck:function(){return $},BW:function(){return Be},sN:function(){return $},GP:function(){return Be},Wd:function(){return ye},ZP:function(){return $e},Xl:function(){return We}});var r=n(87462),o=n(4942),i=n(1413),a=n(74902),c=n(97685),s=n(91),u=n(67294),l=n(94184),f=n.n(l),d=n(96774),p=n.n(d),h=n(21770),v=n(80334),m=n(34243),g=n(15671),y=n(43144),b=n(60136),w=n(33643),x=n(15105),E=n(98423),C=n(56982),Z=["children","locked"],S=u.createContext(null);function k(e){var t=e.children,n=e.locked,r=(0,s.Z)(e,Z),o=u.useContext(S),a=(0,C.Z)((function(){return function(e,t){var n=(0,i.Z)({},e);return Object.keys(t).forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}(o,r)}),[o,r],(function(e,t){return!n&&(e[0]!==t[0]||!p()(e[1],t[1]))}));return u.createElement(S.Provider,{value:a},t)}function N(e,t,n,r){var o=u.useContext(S),i=o.activeKey,a=o.onActive,c=o.onInactive,s={active:i===e};return t||(s.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),a(e)},s.onMouseLeave=function(t){null===r||void 0===r||r({key:e,domEvent:t}),c(e)}),s}var _=["item"];function T(e){var t=e.item,n=(0,s.Z)(e,_);return Object.defineProperty(n,"item",{get:function(){return(0,v.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}function O(e){var t=e.icon,n=e.props,r=e.children;return("function"===typeof t?u.createElement(t,(0,i.Z)({},n)):t)||r||null}function P(e){var t=u.useContext(S),n=t.mode,r=t.rtl,o=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*o}:{paddingLeft:e*o}}var R=[],A=u.createContext(null);function M(){return u.useContext(A)}var j=u.createContext(R);function L(e){var t=u.useContext(j);return u.useMemo((function(){return void 0!==e?[].concat((0,a.Z)(t),[e]):t}),[t,e])}var F=u.createContext(null),I=u.createContext(null);function V(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function D(e){return V(u.useContext(I),e)}var z=u.createContext({}),U=["title","attribute","elementRef"],B=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],H=["active"],W=function(e){(0,b.Z)(n,e);var t=(0,w.Z)(n);function n(){return(0,g.Z)(this,n),t.apply(this,arguments)}return(0,y.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,o=e.elementRef,i=(0,s.Z)(e,U),a=(0,E.Z)(i,["eventKey"]);return(0,v.ZP)(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),u.createElement(m.Z.Item,(0,r.Z)({},n,{title:"string"===typeof t?t:void 0},a,{ref:o}))}}]),n}(u.Component),q=function(e){var t,n=e.style,c=e.className,l=e.eventKey,d=(e.warnKey,e.disabled),p=e.itemIcon,h=e.children,v=e.role,m=e.onMouseEnter,g=e.onMouseLeave,y=e.onClick,b=e.onKeyDown,w=e.onFocus,E=(0,s.Z)(e,B),C=D(l),Z=u.useContext(S),k=Z.prefixCls,_=Z.onItemClick,R=Z.disabled,A=Z.overflowDisabled,M=Z.itemIcon,j=Z.selectedKeys,F=Z.onActive,I=u.useContext(z)._internalRenderMenuItem,V="".concat(k,"-item"),U=u.useRef(),q=u.useRef(),$=R||d,K=L(l);var G=function(e){return{key:l,keyPath:(0,a.Z)(K).reverse(),item:U.current,domEvent:e}},Y=p||M,X=N(l,$,m,g),Q=X.active,J=(0,s.Z)(X,H),ee=j.includes(l),te=P(K.length),ne={};"option"===e.role&&(ne["aria-selected"]=ee);var re=u.createElement(W,(0,r.Z)({ref:U,elementRef:q,role:null===v?"none":v||"menuitem",tabIndex:d?null:-1,"data-menu-id":A&&C?null:C},E,J,ne,{component:"li","aria-disabled":d,style:(0,i.Z)((0,i.Z)({},te),n),className:f()(V,(t={},(0,o.Z)(t,"".concat(V,"-active"),Q),(0,o.Z)(t,"".concat(V,"-selected"),ee),(0,o.Z)(t,"".concat(V,"-disabled"),$),t),c),onClick:function(e){if(!$){var t=G(e);null===y||void 0===y||y(T(t)),_(t)}},onKeyDown:function(e){if(null===b||void 0===b||b(e),e.which===x.Z.ENTER){var t=G(e);null===y||void 0===y||y(T(t)),_(t)}},onFocus:function(e){F(l),null===w||void 0===w||w(e)}}),h,u.createElement(O,{props:(0,i.Z)((0,i.Z)({},e),{},{isSelected:ee}),icon:Y}));return I&&(re=I(re,e,{selected:ee})),re};var $=function(e){var t=e.eventKey,n=M(),r=L(t);return u.useEffect((function(){if(n)return n.registerPath(t,r),function(){n.unregisterPath(t,r)}}),[r]),n?null:u.createElement(q,e)},K=n(71002),G=n(50344),Y=["label","children","key","type"];function X(e,t){return(0,G.Z)(e).map((function(e,n){if(u.isValidElement(e)){var r,o,i=e.key,c=null!==(r=null===(o=e.props)||void 0===o?void 0:o.eventKey)&&void 0!==r?r:i;(null===c||void 0===c)&&(c="tmp_key-".concat([].concat((0,a.Z)(t),[n]).join("-")));var s={key:c,eventKey:c};return u.cloneElement(e,s)}return e}))}function Q(e){return(e||[]).map((function(e,t){if(e&&"object"===(0,K.Z)(e)){var n=e.label,o=e.children,i=e.key,a=e.type,c=(0,s.Z)(e,Y),l=null!==i&&void 0!==i?i:"tmp-".concat(t);return o||"group"===a?"group"===a?u.createElement(Be,(0,r.Z)({key:l},c,{title:n}),Q(o)):u.createElement(ye,(0,r.Z)({key:l},c,{title:n}),Q(o)):"divider"===a?u.createElement(He,(0,r.Z)({key:l},c)):u.createElement($,(0,r.Z)({key:l},c),n)}return null})).filter((function(e){return e}))}function J(e,t,n){var r=e;return t&&(r=Q(t)),X(r,n)}function ee(e){var t=u.useRef(e);t.current=e;var n=u.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o1&&(E.motionAppear=!1);var C=E.onVisibleChanged;return E.onVisibleChanged=function(e){return m.current||e||w(!0),null===C||void 0===C?void 0:C(e)},b?null:u.createElement(k,{mode:s,locked:!m.current},u.createElement(pe.Z,(0,r.Z)({visible:x},E,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(f,"-hidden")}),(function(e){var n=e.className,r=e.style;return u.createElement(oe,{id:t,className:n,style:r},a)})))}var ve=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],me=["active"],ge=function(e){var t,n=e.style,a=e.className,l=e.title,d=e.eventKey,p=(e.warnKey,e.disabled),h=e.internalPopupClose,v=e.children,g=e.itemIcon,y=e.expandIcon,b=e.popupClassName,w=e.popupOffset,x=e.onClick,E=e.onMouseEnter,C=e.onMouseLeave,Z=e.onTitleClick,_=e.onTitleMouseEnter,R=e.onTitleMouseLeave,A=(0,s.Z)(e,ve),M=D(d),j=u.useContext(S),I=j.prefixCls,V=j.mode,U=j.openKeys,B=j.disabled,H=j.overflowDisabled,W=j.activeKey,q=j.selectedKeys,$=j.itemIcon,K=j.expandIcon,G=j.onItemClick,Y=j.onOpenChange,X=j.onActive,Q=u.useContext(z)._internalRenderSubMenuItem,J=u.useContext(F).isSubPathKey,te=L(),ne="".concat(I,"-submenu"),re=B||p,ie=u.useRef(),ae=u.useRef();var ce=g||$,se=y||K,ue=U.includes(d),le=!H&&ue,fe=J(q,d),pe=N(d,re,_,R),ge=pe.active,ye=(0,s.Z)(pe,me),be=u.useState(!1),we=(0,c.Z)(be,2),xe=we[0],Ee=we[1],Ce=function(e){re||Ee(e)},Ze=u.useMemo((function(){return ge||"inline"!==V&&(xe||J([W],d))}),[V,ge,W,xe,d,J]),Se=P(te.length),ke=ee((function(e){null===x||void 0===x||x(T(e)),G(e)})),Ne=M&&"".concat(M,"-popup"),_e=u.createElement("div",(0,r.Z)({role:"menuitem",style:Se,className:"".concat(ne,"-title"),tabIndex:re?null:-1,ref:ie,title:"string"===typeof l?l:null,"data-menu-id":H&&M?null:M,"aria-expanded":le,"aria-haspopup":!0,"aria-controls":Ne,"aria-disabled":re,onClick:function(e){re||(null===Z||void 0===Z||Z({key:d,domEvent:e}),"inline"===V&&Y(d,!ue))},onFocus:function(){X(d)}},ye),l,u.createElement(O,{icon:"horizontal"!==V?se:null,props:(0,i.Z)((0,i.Z)({},e),{},{isOpen:le,isSubMenu:!0})},u.createElement("i",{className:"".concat(ne,"-arrow")}))),Te=u.useRef(V);if("inline"!==V&&(Te.current=te.length>1?"vertical":V),!H){var Oe=Te.current;_e=u.createElement(de,{mode:Oe,prefixCls:ne,visible:!h&&le&&"inline"!==V,popupClassName:b,popupOffset:w,popup:u.createElement(k,{mode:"horizontal"===Oe?"vertical":Oe},u.createElement(oe,{id:Ne,ref:ae},v)),disabled:re,onVisibleChange:function(e){"inline"!==V&&Y(d,e)}},_e)}var Pe=u.createElement(m.Z.Item,(0,r.Z)({role:"none"},A,{component:"li",style:n,className:f()(ne,"".concat(ne,"-").concat(V),a,(t={},(0,o.Z)(t,"".concat(ne,"-open"),le),(0,o.Z)(t,"".concat(ne,"-active"),Ze),(0,o.Z)(t,"".concat(ne,"-selected"),fe),(0,o.Z)(t,"".concat(ne,"-disabled"),re),t)),onMouseEnter:function(e){Ce(!0),null===E||void 0===E||E({key:d,domEvent:e})},onMouseLeave:function(e){Ce(!1),null===C||void 0===C||C({key:d,domEvent:e})}}),_e,!H&&u.createElement(he,{id:Ne,open:le,keyPath:te},v));return Q&&(Pe=Q(Pe,e,{selected:fe,active:Ze,open:le,disabled:re})),u.createElement(k,{onItemClick:ke,mode:"horizontal"===V?"vertical":V,itemIcon:ce,expandIcon:se},Pe)};function ye(e){var t,n=e.eventKey,r=e.children,o=L(n),i=X(r,o),a=M();return u.useEffect((function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}}),[o]),t=a?i:u.createElement(ge,e,i),u.createElement(j.Provider,{value:o},t)}var be=n(88603),we=x.Z.LEFT,xe=x.Z.RIGHT,Ee=x.Z.UP,Ce=x.Z.DOWN,Ze=x.Z.ENTER,Se=x.Z.ESC,ke=x.Z.HOME,Ne=x.Z.END,_e=[Ee,Ce,we,xe];function Te(e,t){return(0,be.tS)(e,!0).filter((function(e){return t.has(e)}))}function Oe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var o=Te(e,t),i=o.length,a=o.findIndex((function(e){return n===e}));return r<0?-1===a?a=i-1:a-=1:r>0&&(a+=1),o[a=(a+i)%i]}function Pe(e,t,n,r,i,a,c,s,l,f){var d=u.useRef(),p=u.useRef();p.current=t;var h=function(){ae.Z.cancel(d.current)};return u.useEffect((function(){return function(){h()}}),[]),function(u){var v=u.which;if([].concat(_e,[Ze,Se,ke,Ne]).includes(v)){var m,g,y,b=function(){return m=new Set,g=new Map,y=new Map,a().forEach((function(e){var t=document.querySelector("[data-menu-id='".concat(V(r,e),"']"));t&&(m.add(t),y.set(t,e),g.set(e,t))})),m};b();var w=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(g.get(t),m),x=y.get(w),E=function(e,t,n,r){var i,a,c,s,u="prev",l="next",f="children",d="parent";if("inline"===e&&r===Ze)return{inlineTrigger:!0};var p=(i={},(0,o.Z)(i,Ee,u),(0,o.Z)(i,Ce,l),i),h=(a={},(0,o.Z)(a,we,n?l:u),(0,o.Z)(a,xe,n?u:l),(0,o.Z)(a,Ce,f),(0,o.Z)(a,Ze,f),a),v=(c={},(0,o.Z)(c,Ee,u),(0,o.Z)(c,Ce,l),(0,o.Z)(c,Ze,f),(0,o.Z)(c,Se,d),(0,o.Z)(c,we,n?f:d),(0,o.Z)(c,xe,n?d:f),c);switch(null===(s={inline:p,horizontal:h,vertical:v,inlineSub:p,horizontalSub:v,verticalSub:v}["".concat(e).concat(t?"":"Sub")])||void 0===s?void 0:s[r]){case u:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case f:return{offset:1,sibling:!1};default:return null}}(e,1===c(x,!0).length,n,v);if(!E&&v!==ke&&v!==Ne)return;(_e.includes(v)||[ke,Ne].includes(v))&&u.preventDefault();var C=function(e){if(e){var t=e,n=e.querySelector("a");(null===n||void 0===n?void 0:n.getAttribute("href"))&&(t=n);var r=y.get(e);s(r),h(),d.current=(0,ae.Z)((function(){p.current===r&&t.focus()}))}};if([ke,Ne].includes(v)||E.sibling||!w){var Z,S,k=Te(Z=w&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(w):i.current,m);S=v===ke?k[0]:v===Ne?k[k.length-1]:Oe(Z,m,w,E.offset),C(S)}else if(E.inlineTrigger)l(x);else if(E.offset>0)l(x,!0),h(),d.current=(0,ae.Z)((function(){b();var e=w.getAttribute("aria-controls"),t=Oe(document.getElementById(e),m);C(t)}),5);else if(E.offset<0){var N=c(x,!0),_=N[N.length-2],T=g.get(_);l(_,!1),C(T)}}null===f||void 0===f||f(u)}}var Re=Math.random().toFixed(5).toString().slice(2),Ae=0;var Me="__RC_UTIL_PATH_SPLIT__",je=function(e){return e.join(Me)},Le="rc-menu-more";function Fe(){var e=u.useState({}),t=(0,c.Z)(e,2)[1],n=(0,u.useRef)(new Map),r=(0,u.useRef)(new Map),o=u.useState([]),i=(0,c.Z)(o,2),s=i[0],l=i[1],f=(0,u.useRef)(0),d=(0,u.useRef)(!1),p=(0,u.useCallback)((function(e,o){var i=je(o);r.current.set(i,e),n.current.set(e,i),f.current+=1;var a,c=f.current;a=function(){c===f.current&&(d.current||t({}))},Promise.resolve().then(a)}),[]),h=(0,u.useCallback)((function(e,t){var o=je(t);r.current.delete(o),n.current.delete(e)}),[]),v=(0,u.useCallback)((function(e){l(e)}),[]),m=(0,u.useCallback)((function(e,t){var r=n.current.get(e)||"",o=r.split(Me);return t&&s.includes(o[0])&&o.unshift(Le),o}),[s]),g=(0,u.useCallback)((function(e,t){return e.some((function(e){return m(e,!0).includes(t)}))}),[m]),y=(0,u.useCallback)((function(e){var t="".concat(n.current.get(e)).concat(Me),o=new Set;return(0,a.Z)(r.current.keys()).forEach((function(e){e.startsWith(t)&&o.add(r.current.get(e))})),o}),[]);return u.useEffect((function(){return function(){d.current=!0}}),[]),{registerPath:p,unregisterPath:h,refreshOverflowKeys:v,isSubPathKey:g,getKeyPath:m,getKeys:function(){var e=(0,a.Z)(n.current.keys());return s.length&&e.push(Le),e},getSubPathKeys:y}}var Ie=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Ve=[],De=["className","title","eventKey","children"],ze=["children"],Ue=function(e){var t=e.className,n=e.title,o=(e.eventKey,e.children),i=(0,s.Z)(e,De),a=u.useContext(S).prefixCls,c="".concat(a,"-item-group");return u.createElement("li",(0,r.Z)({},i,{onClick:function(e){return e.stopPropagation()},className:f()(c,t)}),u.createElement("div",{className:"".concat(c,"-title"),title:"string"===typeof n?n:void 0},n),u.createElement("ul",{className:"".concat(c,"-list")},o))};function Be(e){var t=e.children,n=(0,s.Z)(e,ze),r=X(t,L(n.eventKey));return M()?r:u.createElement(Ue,(0,E.Z)(n,["warnKey"]),r)}function He(e){var t=e.className,n=e.style,r=u.useContext(S).prefixCls;return M()?null:u.createElement("li",{className:f()("".concat(r,"-item-divider"),t),style:n})}var We=L,qe=u.forwardRef((function(e,t){var n,l,d=e.prefixCls,v=void 0===d?"rc-menu":d,g=e.rootClassName,y=e.style,b=e.className,w=e.tabIndex,x=void 0===w?0:w,E=e.items,C=e.children,Z=e.direction,S=e.id,N=e.mode,_=void 0===N?"vertical":N,O=e.inlineCollapsed,P=e.disabled,R=e.disabledOverflow,M=e.subMenuOpenDelay,j=void 0===M?.1:M,L=e.subMenuCloseDelay,D=void 0===L?.1:L,U=e.forceSubMenuRender,B=e.defaultOpenKeys,H=e.openKeys,W=e.activeKey,q=e.defaultActiveFirst,K=e.selectable,G=void 0===K||K,Y=e.multiple,X=void 0!==Y&&Y,Q=e.defaultSelectedKeys,te=e.selectedKeys,ne=e.onSelect,re=e.onDeselect,oe=e.inlineIndent,ie=void 0===oe?24:oe,ae=e.motion,ce=e.defaultMotions,se=e.triggerSubMenuAction,ue=void 0===se?"hover":se,le=e.builtinPlacements,fe=e.itemIcon,de=e.expandIcon,pe=e.overflowedIndicator,he=void 0===pe?"...":pe,ve=e.overflowedIndicatorPopupClassName,me=e.getPopupContainer,ge=e.onClick,be=e.onOpenChange,we=e.onKeyDown,xe=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),Ee=e._internalRenderSubMenuItem,Ce=(0,s.Z)(e,Ie),Ze=u.useMemo((function(){return J(C,E,Ve)}),[C,E]),Se=u.useState(!1),ke=(0,c.Z)(Se,2),Ne=ke[0],_e=ke[1],Te=u.useRef(),Oe=function(e){var t=(0,h.Z)(e,{value:e}),n=(0,c.Z)(t,2),r=n[0],o=n[1];return u.useEffect((function(){Ae+=1;var e="".concat(Re,"-").concat(Ae);o("rc-menu-uuid-".concat(e))}),[]),r}(S),Me="rtl"===Z;var je=u.useMemo((function(){return"inline"!==_&&"vertical"!==_||!O?[_,!1]:["vertical",O]}),[_,O]),De=(0,c.Z)(je,2),ze=De[0],Ue=De[1],Be=u.useState(0),He=(0,c.Z)(Be,2),We=He[0],qe=He[1],$e=We>=Ze.length-1||"horizontal"!==ze||R,Ke=(0,h.Z)(B,{value:H,postState:function(e){return e||Ve}}),Ge=(0,c.Z)(Ke,2),Ye=Ge[0],Xe=Ge[1],Qe=function(e){Xe(e),null===be||void 0===be||be(e)},Je=u.useState(Ye),et=(0,c.Z)(Je,2),tt=et[0],nt=et[1],rt="inline"===ze,ot=u.useRef(!1);u.useEffect((function(){rt&&nt(Ye)}),[Ye]),u.useEffect((function(){ot.current&&(rt?Xe(tt):Qe(Ve))}),[rt]),u.useEffect((function(){return ot.current=!0,function(){ot.current=!1}}),[]);var it=Fe(),at=it.registerPath,ct=it.unregisterPath,st=it.refreshOverflowKeys,ut=it.isSubPathKey,lt=it.getKeyPath,ft=it.getKeys,dt=it.getSubPathKeys,pt=u.useMemo((function(){return{registerPath:at,unregisterPath:ct}}),[at,ct]),ht=u.useMemo((function(){return{isSubPathKey:ut}}),[ut]);u.useEffect((function(){st($e?Ve:Ze.slice(We+1).map((function(e){return e.key})))}),[We,$e]);var vt=(0,h.Z)(W||q&&(null===(n=Ze[0])||void 0===n?void 0:n.key),{value:W}),mt=(0,c.Z)(vt,2),gt=mt[0],yt=mt[1],bt=ee((function(e){yt(e)})),wt=ee((function(){yt(void 0)}));(0,u.useImperativeHandle)(t,(function(){return{list:Te.current,focus:function(e){var t,n,r,o,i=null!==gt&&void 0!==gt?gt:null===(t=Ze.find((function(e){return!e.props.disabled})))||void 0===t?void 0:t.key;i&&(null===(n=Te.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(V(Oe,i),"']")))||void 0===r||null===(o=r.focus)||void 0===o||o.call(r,e))}}}));var xt=(0,h.Z)(Q||[],{value:te,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?Ve:[e]}}),Et=(0,c.Z)(xt,2),Ct=Et[0],Zt=Et[1],St=ee((function(e){null===ge||void 0===ge||ge(T(e)),function(e){if(G){var t,n=e.key,r=Ct.includes(n);t=X?r?Ct.filter((function(e){return e!==n})):[].concat((0,a.Z)(Ct),[n]):[n],Zt(t);var o=(0,i.Z)((0,i.Z)({},e),{},{selectedKeys:t});r?null===re||void 0===re||re(o):null===ne||void 0===ne||ne(o)}!X&&Ye.length&&"inline"!==ze&&Qe(Ve)}(e)})),kt=ee((function(e,t){var n=Ye.filter((function(t){return t!==e}));if(t)n.push(e);else if("inline"!==ze){var r=dt(e);n=n.filter((function(e){return!r.has(e)}))}p()(Ye,n)||Qe(n)})),Nt=ee(me),_t=Pe(ze,gt,Me,Oe,Te,ft,lt,yt,(function(e,t){var n=null!==t&&void 0!==t?t:!Ye.includes(e);kt(e,n)}),we);u.useEffect((function(){_e(!0)}),[]);var Tt=u.useMemo((function(){return{_internalRenderMenuItem:xe,_internalRenderSubMenuItem:Ee}}),[xe,Ee]),Ot="horizontal"!==ze||R?Ze:Ze.map((function(e,t){return u.createElement(k,{key:e.key,overflowDisabled:t>We},e)})),Pt=u.createElement(m.Z,(0,r.Z)({id:S,ref:Te,prefixCls:"".concat(v,"-overflow"),component:"ul",itemComponent:$,className:f()(v,"".concat(v,"-root"),"".concat(v,"-").concat(ze),b,(l={},(0,o.Z)(l,"".concat(v,"-inline-collapsed"),Ue),(0,o.Z)(l,"".concat(v,"-rtl"),Me),l),g),dir:Z,style:y,role:"menu",tabIndex:x,data:Ot,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?Ze.slice(-t):null;return u.createElement(ye,{eventKey:Le,title:he,disabled:$e,internalPopupClose:0===t,popupClassName:ve},n)},maxCount:"horizontal"!==ze||R?m.Z.INVALIDATE:m.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){qe(e)},onKeyDown:_t},Ce));return u.createElement(z.Provider,{value:Tt},u.createElement(I.Provider,{value:Oe},u.createElement(k,{prefixCls:v,rootClassName:g,mode:ze,openKeys:Ye,rtl:Me,disabled:P,motion:Ne?ae:null,defaultMotions:Ne?ce:null,activeKey:gt,onActive:bt,onInactive:wt,selectedKeys:Ct,inlineIndent:ie,subMenuOpenDelay:j,subMenuCloseDelay:D,forceSubMenuRender:U,builtinPlacements:le,triggerSubMenuAction:ue,getPopupContainer:Nt,itemIcon:fe,expandIcon:de,onItemClick:St,onOpenChange:kt},u.createElement(F.Provider,{value:ht},Pt),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(A.Provider,{value:pt},Ze)))))}));qe.Item=$,qe.SubMenu=ye,qe.ItemGroup=Be,qe.Divider=He;var $e=qe},62874:function(e,t,n){"use strict";n.d(t,{V:function(){return ae},Z:function(){return ce}});var r=n(4942),o=n(1413),i=n(97685),a=n(71002),c=n(67294),s=n(34203),u=n(42550),l=n(94184),f=n.n(l),d=n(98924);function p(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var h=function(e,t){var n={animationend:p("Animation","AnimationEnd"),transitionend:p("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}((0,d.Z)(),"undefined"!==typeof window?window:{}),v={};if((0,d.Z)()){var m=document.createElement("div");v=m.style}var g={};function y(e){if(g[e])return g[e];var t=h[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,j.Z)((function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)}));e.current=i},t]}(),u=(0,i.Z)(s,2),l=u[0],f=u[1];return L((function(){if(o!==T&&o!==A){var e=F.indexOf(o),n=F[e+1],r=t(o);false===r?a(n,!0):l((function(e){function t(){e.isCanceled()||a(n,!0)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,o]),c.useEffect((function(){return function(){f()}}),[]),[function(){a(O,!0)},o]};function D(e,t,n,a){var s=a.motionEnter,u=void 0===s||s,l=a.motionAppear,f=void 0===l||l,d=a.motionLeave,p=void 0===d||d,h=a.motionDeadline,v=a.motionLeaveImmediately,m=a.onAppearPrepare,g=a.onEnterPrepare,y=a.onLeavePrepare,b=a.onAppearStart,w=a.onEnterStart,x=a.onLeaveStart,Z=a.onAppearActive,T=a.onEnterActive,A=a.onLeaveActive,j=a.onAppearEnd,F=a.onEnterEnd,D=a.onLeaveEnd,z=a.onVisibleChanged,U=(0,M.Z)(),B=(0,i.Z)(U,2),H=B[0],W=B[1],q=(0,M.Z)(S),$=(0,i.Z)(q,2),K=$[0],G=$[1],Y=(0,M.Z)(null),X=(0,i.Z)(Y,2),Q=X[0],J=X[1],ee=(0,c.useRef)(!1),te=(0,c.useRef)(null);function ne(){return n()}var re=(0,c.useRef)(!1);function oe(e){var t=ne();if(!e||e.deadline||e.target===t){var n,r=re.current;K===k&&r?n=null===j||void 0===j?void 0:j(t,e):K===N&&r?n=null===F||void 0===F?void 0:F(t,e):K===_&&r&&(n=null===D||void 0===D?void 0:D(t,e)),K!==S&&r&&!1!==n&&(G(S,!0),J(null,!0))}}var ie=function(e){var t=(0,c.useRef)(),n=(0,c.useRef)(e);n.current=e;var r=c.useCallback((function(e){n.current(e)}),[]);function o(e){e&&(e.removeEventListener(C,r),e.removeEventListener(E,r))}return c.useEffect((function(){return function(){o(t.current)}}),[]),[function(e){t.current&&t.current!==e&&o(t.current),e&&e!==t.current&&(e.addEventListener(C,r),e.addEventListener(E,r),t.current=e)},o]}(oe),ae=(0,i.Z)(ie,1)[0],ce=c.useMemo((function(){var e,t,n;switch(K){case k:return e={},(0,r.Z)(e,O,m),(0,r.Z)(e,P,b),(0,r.Z)(e,R,Z),e;case N:return t={},(0,r.Z)(t,O,g),(0,r.Z)(t,P,w),(0,r.Z)(t,R,T),t;case _:return n={},(0,r.Z)(n,O,y),(0,r.Z)(n,P,x),(0,r.Z)(n,R,A),n;default:return{}}}),[K]),se=V(K,(function(e){if(e===O){var t=ce.prepare;return!!t&&t(ne())}var n;fe in ce&&J((null===(n=ce[fe])||void 0===n?void 0:n.call(ce,ne(),null))||null);return fe===R&&(ae(ne()),h>0&&(clearTimeout(te.current),te.current=setTimeout((function(){oe({deadline:!0})}),h))),true})),ue=(0,i.Z)(se,2),le=ue[0],fe=ue[1],de=I(fe);re.current=de,L((function(){W(t);var n,r=ee.current;(ee.current=!0,e)&&(!r&&t&&f&&(n=k),r&&t&&u&&(n=N),(r&&!t&&p||!r&&v&&!t&&p)&&(n=_),n&&(G(n),le()))}),[t]),(0,c.useEffect)((function(){(K===k&&!f||K===N&&!u||K===_&&!p)&&G(S)}),[f,u,p]),(0,c.useEffect)((function(){return function(){ee.current=!1,clearTimeout(te.current)}}),[]);var pe=c.useRef(!1);(0,c.useEffect)((function(){H&&(pe.current=!0),void 0!==H&&K===S&&((pe.current||H)&&(null===z||void 0===z||z(H)),pe.current=!0)}),[H,K]);var he=Q;return ce.prepare&&fe===P&&(he=(0,o.Z)({transition:"none"},he)),[K,fe,he,null!==H&&void 0!==H?H:t]}var z=n(15671),U=n(43144),B=n(60136),H=n(33643),W=function(e){(0,B.Z)(n,e);var t=(0,H.Z)(n);function n(){return(0,z.Z)(this,n),t.apply(this,arguments)}return(0,U.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component),q=W;var $=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===(0,a.Z)(e)&&(t=e.transitionSupport);var l=c.forwardRef((function(e,t){var a=e.visible,l=void 0===a||a,d=e.removeOnLeave,p=void 0===d||d,h=e.forceRender,v=e.children,m=e.motionName,g=e.leavedClassName,y=e.eventProps,b=n(e),w=(0,c.useRef)(),x=(0,c.useRef)();var E=D(b,l,(function(){try{return w.current instanceof HTMLElement?w.current:(0,s.Z)(x.current)}catch(e){return null}}),e),C=(0,i.Z)(E,4),k=C[0],N=C[1],_=C[2],T=C[3],R=c.useRef(T);T&&(R.current=!0);var A,M=c.useCallback((function(e){w.current=e,(0,u.mH)(t,e)}),[t]),j=(0,o.Z)((0,o.Z)({},y),{},{visible:l});if(v)if(k!==S&&n(e)){var L,F;N===O?F="prepare":I(N)?F="active":N===P&&(F="start"),A=v((0,o.Z)((0,o.Z)({},j),{},{className:f()(Z(m,k),(L={},(0,r.Z)(L,Z(m,"".concat(k,"-").concat(F)),F),(0,r.Z)(L,m,"string"===typeof m),L)),style:_}),M)}else A=T?v((0,o.Z)({},j),M):!p&&R.current?v((0,o.Z)((0,o.Z)({},j),{},{className:g}),M):h?v((0,o.Z)((0,o.Z)({},j),{},{style:{display:"none"}}),M):null;else A=null;c.isValidElement(A)&&(0,u.Yr)(A)&&(A.ref||(A=c.cloneElement(A,{ref:M})));return c.createElement(q,{ref:x},A)}));return l.displayName="CSSMotion",l}(x),K=n(87462),G=n(91),Y="add",X="keep",Q="remove",J="removed";function ee(e){var t;return t=e&&"object"===(0,a.Z)(e)&&"key"in e?e:{key:e},(0,o.Z)((0,o.Z)({},t),{},{key:String(t.key)})}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(ee)}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,a=te(e),c=te(t);a.forEach((function(e){for(var t=!1,a=r;a1}));return u.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||r!==Q}))).forEach((function(t){t.key===e&&(t.status=X)}))})),n}var re=["component","children","onVisibleChanged","onAllRemoved"],oe=["status"],ie=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];var ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,n=function(e){(0,B.Z)(r,e);var n=(0,H.Z)(r);function r(){var e;(0,z.Z)(this,r);for(var t=arguments.length,i=new Array(t),a=0;a=a&&(o.key=c[0].notice.key,o.updateMark=w(),o.userPassKey=r,c.shift()),c.push({notice:o,holderCallback:n})),{notices:c}}))},e.remove=function(t){e.setState((function(e){return{notices:e.notices.filter((function(e){var n=e.notice,r=n.key;return(n.userPassKey||r)!==t}))}}))},e.noticePropsMap={},e}return(0,c.Z)(n,[{key:"getTransitionName",value:function(){var e=this.props,t=e.prefixCls,n=e.animation,r=this.props.transitionName;return!r&&n&&(r="".concat(t,"-").concat(n)),r}},{key:"render",value:function(){var e=this,t=this.state.notices,n=this.props,r=n.prefixCls,a=n.className,c=n.closeIcon,s=n.style,u=[];return t.forEach((function(n,o){var a=n.notice,s=n.holderCallback,l=o===t.length-1?a.updateMark:void 0,f=a.key,d=a.userPassKey,p=(0,i.Z)((0,i.Z)((0,i.Z)({prefixCls:r,closeIcon:c},a),a.props),{},{key:f,noticeKey:d||f,updateMark:l,onClose:function(t){var n;e.remove(t),null===(n=a.onClose)||void 0===n||n.call(a)},onClick:a.onClick,children:a.content});u.push(f),e.noticePropsMap[f]={props:p,holderCallback:s}})),l.createElement("div",{className:p()(r,a),style:s},l.createElement(h.V,{keys:u,motionName:this.getTransitionName(),onVisibleChanged:function(t,n){var r=n.key;t||delete e.noticePropsMap[r]}},(function(t){var n=t.key,a=t.className,c=t.style,s=t.visible,u=e.noticePropsMap[n],f=u.props,d=u.holderCallback;return d?l.createElement("div",{key:n,className:p()(a,"".concat(r,"-hook-holder")),style:(0,i.Z)({},c),ref:function(t){"undefined"!==typeof n&&(t?(e.hookRefs.set(n,t),d(t,f)):e.hookRefs.delete(n))}}):l.createElement(v.Z,(0,o.Z)({},f,{className:p()(a,null===f||void 0===f?void 0:f.className),style:(0,i.Z)((0,i.Z)({},c),null===f||void 0===f?void 0:f.style),visible:s}))})))}}]),n}(l.Component);x.newInstance=void 0,x.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},x.newInstance=function(e,t){var n=e||{},i=n.getContainer,a=(0,r.Z)(n,g),c=document.createElement("div");i?i().appendChild(c):document.body.appendChild(c);var s=!1;(0,f.s)(l.createElement(x,(0,o.Z)({},a,{ref:function(e){s||(s=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){(0,f.v)(c),c.parentNode&&c.parentNode.removeChild(c)},useNotification:function(){return(0,m.Z)(e)}}))}})),c)};var E=x},51550:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(74902),o=n(87462),i=n(97685),a=n(67294),c=n(51784);function s(e){var t=a.useRef({}),n=a.useState([]),s=(0,i.Z)(n,2),u=s[0],l=s[1];return[function(n){var i=!0;e.add(n,(function(e,n){var s=n.key;if(e&&(!t.current[s]||i)){var u=a.createElement(c.Z,(0,o.Z)({},n,{holder:e}));t.current[s]=u,l((function(e){var t=e.findIndex((function(e){return e.key===n.key}));if(-1===t)return[].concat((0,r.Z)(e),[u]);var o=(0,r.Z)(e);return o[t]=u,o}))}i=!1}))},a.createElement(a.Fragment,null,u)]}},34243:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(87462),o=n(1413),i=n(97685),a=n(91),c=n(67294),s=n(94184),u=n.n(s),l=n(48555),f=n(8410),d=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],p=void 0;function h(e,t){var n=e.prefixCls,i=e.invalidate,s=e.item,f=e.renderItem,h=e.responsive,v=e.responsiveDisabled,m=e.registerSize,g=e.itemKey,y=e.className,b=e.style,w=e.children,x=e.display,E=e.order,C=e.component,Z=void 0===C?"div":C,S=(0,a.Z)(e,d),k=h&&!x;function N(e){m(g,e)}c.useEffect((function(){return function(){N(null)}}),[]);var _,T=f&&s!==p?f(s):w;i||(_={opacity:k?0:1,height:k?0:p,overflowY:k?"hidden":p,order:h?E:p,pointerEvents:k?"none":p,position:k?"absolute":p});var O={};k&&(O["aria-hidden"]=!0);var P=c.createElement(Z,(0,r.Z)({className:u()(!i&&n,y),style:(0,o.Z)((0,o.Z)({},_),b)},O,S,{ref:t}),T);return h&&(P=c.createElement(l.default,{onResize:function(e){N(e.offsetWidth)},disabled:v},P)),P}var v=c.forwardRef(h);v.displayName="Item";var m=v,g=n(75164),y=n(30470);var b=["component"],w=["className"],x=["className"],E=function(e,t){var n=c.useContext(k);if(!n){var o=e.component,i=void 0===o?"div":o,s=(0,a.Z)(e,b);return c.createElement(i,(0,r.Z)({},s,{ref:t}))}var l=n.className,f=(0,a.Z)(n,w),d=e.className,p=(0,a.Z)(e,x);return c.createElement(k.Provider,{value:null},c.createElement(m,(0,r.Z)({ref:t,className:u()(l,d)},f,p)))},C=c.forwardRef(E);C.displayName="RawItem";var Z=C,S=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],k=c.createContext(null),N="responsive",_="invalidate";function T(e){return"+ ".concat(e.length," ...")}function O(e,t){var n=e.prefixCls,s=void 0===n?"rc-overflow":n,d=e.data,p=void 0===d?[]:d,h=e.renderItem,v=e.renderRawItem,b=e.itemKey,w=e.itemWidth,x=void 0===w?10:w,E=e.ssr,C=e.style,Z=e.className,O=e.maxCount,P=e.renderRest,R=e.renderRawRest,A=e.suffix,M=e.component,j=void 0===M?"div":M,L=e.itemComponent,F=e.onVisibleChange,I=(0,a.Z)(e,S),V=function(){var e=(0,y.Z)({}),t=(0,i.Z)(e,2)[1],n=(0,c.useRef)([]),r=0,o=0;return function(e){var i=r;return r+=1,n.current.lengthO,Ne=(0,c.useMemo)((function(){var e=p;return Ze?e=null===B&&D?p:p.slice(0,Math.min(p.length,W/x)):"number"===typeof O&&(e=p.slice(0,O)),e}),[p,x,B,O,Ze]),_e=(0,c.useMemo)((function(){return Ze?p.slice(me+1):p.slice(Ne.length)}),[p,Ne,Ze,me]),Te=(0,c.useCallback)((function(e,t){var n;return"function"===typeof b?b(e):null!==(n=b&&(null===e||void 0===e?void 0:e[b]))&&void 0!==n?n:t}),[b]),Oe=(0,c.useCallback)(h||function(e){return e},[h]);function Pe(e,t,n){(he!==e||void 0!==t&&t!==le)&&(ve(e),n||(we(eW){Pe(r-1,e-o-ae+ne);break}}A&&Ae(0)+ae>W&&fe(null)}}),[W,K,ne,ae,Te,Ne]);var Me=be&&!!_e.length,je={};null!==le&&Ze&&(je={position:"absolute",left:le,top:0});var Le,Fe={prefixCls:xe,responsive:Ze,component:L,invalidate:Se},Ie=v?function(e,t){var n=Te(e,t);return c.createElement(k.Provider,{key:n,value:(0,o.Z)((0,o.Z)({},Fe),{},{order:t,item:e,itemKey:n,registerSize:Re,display:t<=me})},v(e,t))}:function(e,t){var n=Te(e,t);return c.createElement(m,(0,r.Z)({},Fe,{order:t,key:n,item:e,renderItem:Oe,itemKey:n,registerSize:Re,display:t<=me}))},Ve={order:Me?me:Number.MAX_SAFE_INTEGER,className:"".concat(xe,"-rest"),registerSize:function(e,t){re(t),J(ne)},display:Me};if(R)R&&(Le=c.createElement(k.Provider,{value:(0,o.Z)((0,o.Z)({},Fe),Ve)},R(_e)));else{var De=P||T;Le=c.createElement(m,(0,r.Z)({},Fe,Ve),"function"===typeof De?De(_e):De)}var ze=c.createElement(j,(0,r.Z)({className:u()(!Se&&s,Z),style:C,ref:t},I),Ne.map(Ie),ke?Le:null,A&&c.createElement(m,(0,r.Z)({},Fe,{responsive:Ce,responsiveDisabled:!Ze,order:me,className:"".concat(xe,"-suffix"),registerSize:function(e,t){ce(t)},display:!0,style:je}),A));return Ce&&(ze=c.createElement(l.default,{onResize:function(e,t){H(t.clientWidth)},disabled:!Ze},ze)),ze}var P=c.forwardRef(O);P.displayName="Overflow",P.Item=Z,P.RESPONSIVE=N,P.INVALIDATE=_;var R=P},62906:function(e,t){"use strict";t.Z={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},48555:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return w}});var r=n(87462),o=n(67294),i=n(50344),a=(n(80334),n(1413)),c=n(42550),s=n(34203),u=n(91033),l=new Map;var f=new u.Z((function(e){e.forEach((function(e){var t,n=e.target;null===(t=l.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var d=n(15671),p=n(43144),h=n(60136),v=n(33643),m=function(e){(0,h.Z)(n,e);var t=(0,v.Z)(n);function n(){return(0,d.Z)(this,n),t.apply(this,arguments)}return(0,p.Z)(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component),g=o.createContext(null);function y(e){var t=e.children,n=e.disabled,r=o.useRef(null),i=o.useRef(null),u=o.useContext(g),d="function"===typeof t,p=d?t(r):t,h=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),v=!d&&o.isValidElement(p)&&(0,c.Yr)(p),y=v?p.ref:null,b=o.useMemo((function(){return(0,c.sQ)(y,r)}),[y,r]),w=o.useRef(e);w.current=e;var x=o.useCallback((function(e){var t=w.current,n=t.onResize,r=t.data,o=e.getBoundingClientRect(),i=o.width,c=o.height,s=e.offsetWidth,l=e.offsetHeight,f=Math.floor(i),d=Math.floor(c);if(h.current.width!==f||h.current.height!==d||h.current.offsetWidth!==s||h.current.offsetHeight!==l){var p={width:f,height:d,offsetWidth:s,offsetHeight:l};h.current=p;var v=s===Math.round(i)?i:s,m=l===Math.round(c)?c:l,g=(0,a.Z)((0,a.Z)({},p),{},{offsetWidth:v,offsetHeight:m});null===u||void 0===u||u(g,e,r),n&&Promise.resolve().then((function(){n(g,e)}))}}),[]);return o.useEffect((function(){var e,t,o=(0,s.Z)(r.current)||(0,s.Z)(i.current);return o&&!n&&(e=o,t=x,l.has(e)||(l.set(e,new Set),f.observe(e)),l.get(e).add(t)),function(){return function(e,t){l.has(e)&&(l.get(e).delete(t),l.get(e).size||(f.unobserve(e),l.delete(e)))}(o,x)}}),[r.current,n]),o.createElement(m,{ref:i},v?o.cloneElement(p,{ref:b}):p)}function b(e){var t=e.children;return("function"===typeof t?[t]:(0,i.Z)(t)).map((function(t,n){var i=(null===t||void 0===t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return o.createElement(y,(0,r.Z)({},e,{key:i}),t)}))}b.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(g),c=o.useCallback((function(e,t,o){r.current+=1;var c=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){c===r.current&&(null===n||void 0===n||n(i.current),i.current=[])})),null===a||void 0===a||a(e,t,o)}),[n,a]);return o.createElement(g.Provider,{value:c},t)};var w=b},57239:function(e,t,n){"use strict";n.r(t),n.d(t,{ResizableTextArea:function(){return Z},default:function(){return S}});var r,o=n(87462),i=n(15671),a=n(43144),c=n(60136),s=n(33643),u=n(67294),l=n(1413),f=n(4942),d=n(48555),p=n(98423),h=n(94184),v=n.n(h),m="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",g=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],y={};function b(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&y[n])return y[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=g.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),s={sizingStyle:c,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(y[n]=s),s}var w,x=n(96774),E=n.n(x);!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(w||(w={}));var C=function(e){(0,c.Z)(n,e);var t=(0,s.Z)(n);function n(e){var a;return(0,i.Z)(this,n),(a=t.call(this,e)).nextFrameActionId=void 0,a.resizeFrameId=void 0,a.textArea=void 0,a.saveTextArea=function(e){a.textArea=e},a.handleResize=function(e){var t=a.state.resizeStatus,n=a.props,r=n.autoSize,o=n.onResize;t===w.NONE&&("function"===typeof o&&o(e),r&&a.resizeOnNextFrame())},a.resizeOnNextFrame=function(){cancelAnimationFrame(a.nextFrameActionId),a.nextFrameActionId=requestAnimationFrame(a.resizeTextarea)},a.resizeTextarea=function(){var e=a.props.autoSize;if(e&&a.textArea){var t=e.minRows,n=e.maxRows,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),e.getAttribute("wrap")?r.setAttribute("wrap",e.getAttribute("wrap")):r.removeAttribute("wrap");var i=b(e,t),a=i.paddingSize,c=i.borderSize,s=i.boxSizing,u=i.sizingStyle;r.setAttribute("style","".concat(u,";").concat(m)),r.value=e.value||e.placeholder||"";var l,f=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,p=r.scrollHeight;if("border-box"===s?p+=c:"content-box"===s&&(p-=a),null!==n||null!==o){r.value=" ";var h=r.scrollHeight-a;null!==n&&(f=h*n,"border-box"===s&&(f=f+a+c),p=Math.max(f,p)),null!==o&&(d=h*o,"border-box"===s&&(d=d+a+c),l=p>d?"":"hidden",p=Math.min(d,p))}return{height:p,minHeight:f,maxHeight:d,overflowY:l,resize:"none"}}(a.textArea,!1,t,n);a.setState({textareaStyles:o,resizeStatus:w.RESIZING},(function(){cancelAnimationFrame(a.resizeFrameId),a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:w.RESIZED},(function(){a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:w.NONE}),a.fixFirefoxAutoScroll()}))}))}))}))}},a.renderTextArea=function(){var e=a.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,r=e.autoSize,i=e.onResize,c=e.className,s=e.disabled,h=a.state,m=h.textareaStyles,g=h.resizeStatus,y=(0,p.Z)(a.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),b=v()(n,c,(0,f.Z)({},"".concat(n,"-disabled"),s));"value"in y&&(y.value=y.value||"");var x=(0,l.Z)((0,l.Z)((0,l.Z)({},a.props.style),m),g===w.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return u.createElement(d.default,{onResize:a.handleResize,disabled:!(r||i)},u.createElement("textarea",(0,o.Z)({},y,{className:b,style:x,ref:a.saveTextArea})))},a.state={textareaStyles:{},resizeStatus:w.NONE},a}return(0,a.Z)(n,[{key:"componentDidUpdate",value:function(e){e.value===this.props.value&&E()(e.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(u.Component),Z=C,S=function(e){(0,c.Z)(n,e);var t=(0,s.Z)(n);function n(e){var r;(0,i.Z)(this,n),(r=t.call(this,e)).resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,o=t.onKeyDown;13===e.keyCode&&n&&n(e),o&&o(e)};var o="undefined"===typeof e.value||null===e.value?e.defaultValue:e.value;return r.state={value:o},r}return(0,a.Z)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return u.createElement(Z,(0,o.Z)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(u.Component)},43763:function(e,t,n){"use strict";n.r(t),n.d(t,{Popup:function(){return d},default:function(){return h}});var r=n(87462),o=n(71002),i=n(1413),a=n(91),c=n(67294),s=n(51169),u=n(43159),l=n(94184),f=n.n(l);function d(e){var t=e.showArrow,n=e.arrowContent,r=e.children,o=e.prefixCls,i=e.id,a=e.overlayInnerStyle,s=e.className,u=e.style;return c.createElement("div",{className:f()("".concat(o,"-content"),s),style:u},!1!==t&&c.createElement("div",{className:"".concat(o,"-arrow"),key:"arrow"},n),c.createElement("div",{className:"".concat(o,"-inner"),id:i,role:"tooltip",style:a},"function"===typeof r?r():r))}var p=function(e,t){var n=e.overlayClassName,l=e.trigger,f=void 0===l?["hover"]:l,p=e.mouseEnterDelay,h=void 0===p?0:p,v=e.mouseLeaveDelay,m=void 0===v?.1:v,g=e.overlayStyle,y=e.prefixCls,b=void 0===y?"rc-tooltip":y,w=e.children,x=e.onVisibleChange,E=e.afterVisibleChange,C=e.transitionName,Z=e.animation,S=e.motion,k=e.placement,N=void 0===k?"right":k,_=e.align,T=void 0===_?{}:_,O=e.destroyTooltipOnHide,P=void 0!==O&&O,R=e.defaultVisible,A=e.getTooltipContainer,M=e.overlayInnerStyle,j=e.arrowContent,L=e.overlay,F=e.id,I=e.showArrow,V=(0,a.Z)(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),D=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,(function(){return D.current}));var z=(0,i.Z)({},V);"visible"in e&&(z.popupVisible=e.visible);var U=!1,B=!1;if("boolean"===typeof P)U=P;else if(P&&"object"===(0,o.Z)(P)){var H=P.keepParent;U=!0===H,B=!1===H}return c.createElement(s.Z,(0,r.Z)({popupClassName:n,prefixCls:b,popup:function(){return c.createElement(d,{showArrow:I,arrowContent:j,key:"content",prefixCls:b,id:F,overlayInnerStyle:M},L)},action:f,builtinPlacements:u.C,popupPlacement:N,ref:D,popupAlign:T,getPopupContainer:A,onPopupVisibleChange:x,afterPopupVisibleChange:E,popupTransitionName:C,popupAnimation:Z,popupMotion:S,defaultPopupVisible:R,destroyPopupOnHide:U,autoDestroy:B,mouseLeaveDelay:m,popupStyle:g,mouseEnterDelay:h},z),w)},h=(0,c.forwardRef)(p)},43159:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});var r={adjustX:1,adjustY:1},o=[0,0],i={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:o},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:o},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:o},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:o},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:o},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:o},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:o},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:o},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:o},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:o},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:o}}},51169:function(e,t,n){"use strict";n.d(t,{Z:function(){return tt}});var r=n(1413),o=n(87462),i=n(15671),a=n(43144),c=n(97326),s=n(60136),u=n(33643),l=n(67294),f=n(73935),d=n(75164),p=n(94999),h=n(34203),v=n(42550),m=n(64019),g=n(59015),y=n(94184),b=n.n(y);function w(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var x=n(97685),E=n(91),C=n(31131),Z=n(62874);function S(e){var t=e.prefixCls,n=e.motion,r=e.animation,o=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:o?{motionName:o}:null)}function k(e){var t=e.prefixCls,n=e.visible,i=e.zIndex,a=e.mask,c=e.maskMotion,s=e.maskAnimation,u=e.maskTransitionName;if(!a)return null;var f={};return(c||u||s)&&(f=(0,r.Z)({motionAppear:!0},S({motion:c,prefixCls:t,transitionName:u,animation:s}))),l.createElement(Z.Z,(0,o.Z)({},f,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return l.createElement("div",{style:{zIndex:i},className:b()("".concat(t,"-mask"),n)})}))}var N,_=n(71002),T=n(5110);function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function ye(e){var t,n,r;if(pe.isWindow(e)||9===e.nodeType){var o=pe.getWindow(e);t={left:pe.getWindowScrollLeft(o),top:pe.getWindowScrollTop(o)},n=pe.viewportWidth(o),r=pe.viewportHeight(o)}else t=pe.offset(e),n=pe.outerWidth(e),r=pe.outerHeight(e);return t.width=n,t.height=r,t}function be(e,t){var n=t.charAt(0),r=t.charAt(1),o=e.width,i=e.height,a=e.left,c=e.top;return"c"===n?c+=i/2:"b"===n&&(c+=i),"c"===r?a+=o/2:"r"===r&&(a+=o),{left:a,top:c}}function we(e,t,n,r,o){var i=be(t,n[1]),a=be(e,n[0]),c=[a.left-i.left,a.top-i.top];return{left:Math.round(e.left-c[0]+r[0]-o[0]),top:Math.round(e.top-c[1]+r[1]-o[1])}}function xe(e,t,n){return e.leftn.right}function Ee(e,t,n){return e.topn.bottom}function Ce(e,t,n){var r=[];return pe.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function Ze(e,t){return e[t]=-e[t],e}function Se(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function ke(e,t){e[0]=Se(e[0],t.width),e[1]=Se(e[1],t.height)}function Ne(e,t,n,r){var o=n.points,i=n.offset||[0,0],a=n.targetOffset||[0,0],c=n.overflow,s=n.source||e;i=[].concat(i),a=[].concat(a);var u={},l=0,f=ge(s,!(!(c=c||{})||!c.alwaysByViewport)),d=ye(s);ke(i,d),ke(a,t);var p=we(d,t,o,i,a),h=pe.merge(d,p);if(f&&(c.adjustX||c.adjustY)&&r){if(c.adjustX&&xe(p,d,f)){var v=Ce(o,/[lr]/gi,{l:"r",r:"l"}),m=Ze(i,0),g=Ze(a,0);(function(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),pe.mix(o,i)}(p,d,f,u))}return h.width!==d.width&&pe.css(s,"width",pe.width(s)+h.width-d.width),h.height!==d.height&&pe.css(s,"height",pe.height(s)+h.height-d.height),pe.offset(s,{left:h.left,top:h.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:o,offset:i,targetOffset:a,overflow:u}}function _e(e,t,n){var r=n.target||t,o=ye(r),i=!function(e,t){var n=ge(e,t),r=ye(e);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}(r,n.overflow&&n.overflow.alwaysByViewport);return Ne(e,o,n,i)}_e.__getOffsetParent=ve,_e.__getVisibleRectForElement=ge;var Te=n(18446),Oe=n.n(Te),Pe=n(91033);function Re(e,t){var n=null,r=null;var o=new Pe.Z((function(e){var o=(0,x.Z)(e,1)[0].target;if(document.documentElement.contains(o)){var i=o.getBoundingClientRect(),a=i.width,c=i.height,s=Math.floor(a),u=Math.floor(c);n===s&&r===u||Promise.resolve().then((function(){t({width:s,height:u})})),n=s,r=u}}));return e&&o.observe(e),function(){o.disconnect()}}function Ae(e){return"function"!==typeof e?null:e()}function Me(e){return"object"===(0,_.Z)(e)&&e?e:null}var je=function(e,t){var n=e.children,r=e.disabled,o=e.target,i=e.align,a=e.onAlign,c=e.monitorWindowResize,s=e.monitorBufferTime,u=void 0===s?0:s,f=l.useRef({}),d=l.useRef(),h=l.Children.only(n),g=l.useRef({});g.current.disabled=r,g.current.target=o,g.current.align=i,g.current.onAlign=a;var y=function(e,t){var n=l.useRef(!1),r=l.useRef(null);function o(){window.clearTimeout(r.current)}return[function i(a){if(o(),n.current&&!0!==a)r.current=window.setTimeout((function(){n.current=!1,i()}),t);else{if(!1===e())return;n.current=!0,r.current=window.setTimeout((function(){n.current=!1}),t)}},function(){n.current=!1,o()}]}((function(){var e=g.current,t=e.disabled,n=e.target,r=e.align,o=e.onAlign;if(!t&&n){var i,a=d.current,c=Ae(n),s=Me(n);f.current.element=c,f.current.point=s,f.current.align=r;var u=document.activeElement;return c&&(0,T.Z)(c)?i=_e(a,c,r):s&&(i=function(e,t,n){var r,o,i=pe.getDocument(e),a=i.defaultView||i.parentWindow,c=pe.getWindowScrollLeft(a),s=pe.getWindowScrollTop(a),u=pe.viewportWidth(a),l=pe.viewportHeight(a),f={left:r="pageX"in t?t.pageX:c+t.clientX,top:o="pageY"in t?t.pageY:s+t.clientY,width:0,height:0},d=r>=0&&r<=c+u&&o>=0&&o<=s+l,p=[n.points[0],"cc"];return Ne(e,f,P(P({},n),{},{points:p}),d)}(a,s,r)),function(e,t){e!==document.activeElement&&(0,p.Z)(t,e)&&"function"===typeof e.focus&&e.focus()}(u,a),o&&i&&o(a,i),!0}return!1}),u),b=(0,x.Z)(y,2),w=b[0],E=b[1],C=l.useRef({cancel:function(){}}),Z=l.useRef({cancel:function(){}});l.useEffect((function(){var e,t,n=Ae(o),r=Me(o);d.current!==Z.current.element&&(Z.current.cancel(),Z.current.element=d.current,Z.current.cancel=Re(d.current,w)),f.current.element===n&&((e=f.current.point)===(t=r)||e&&t&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY))&&Oe()(f.current.align,i)||(w(),C.current.element!==n&&(C.current.cancel(),C.current.element=n,C.current.cancel=Re(n,w)))})),l.useEffect((function(){r?E():w()}),[r]);var S=l.useRef(null);return l.useEffect((function(){c?S.current||(S.current=(0,m.Z)(window,"resize",w)):S.current&&(S.current.remove(),S.current=null)}),[c]),l.useEffect((function(){return function(){C.current.cancel(),Z.current.cancel(),S.current&&S.current.remove(),E()}}),[]),l.useImperativeHandle(t,(function(){return{forceAlign:function(){return w(!0)}}})),l.isValidElement(h)&&(h=l.cloneElement(h,{ref:(0,v.sQ)(h.ref,d)})),h},Le=l.forwardRef(je);Le.displayName="Align";var Fe=Le,Ie=n(8410),Ve=n(74165),De=n(15861),ze=n(30470),Ue=["measure","alignPre","align",null,"motion"],Be=l.forwardRef((function(e,t){var n=e.visible,i=e.prefixCls,a=e.className,c=e.style,s=e.children,u=e.zIndex,f=e.stretch,p=e.destroyPopupOnHide,h=e.forceRender,v=e.align,m=e.point,g=e.getRootDomNode,y=e.getClassNameFromAlign,w=e.onAlign,E=e.onMouseEnter,C=e.onMouseLeave,k=e.onMouseDown,N=e.onTouchStart,_=e.onClick,T=(0,l.useRef)(),O=(0,l.useRef)(),P=(0,l.useState)(),R=(0,x.Z)(P,2),A=R[0],M=R[1],j=function(e){var t=l.useState({width:0,height:0}),n=(0,x.Z)(t,2),r=n[0],o=n[1];return[l.useMemo((function(){var t={};if(e){var n=r.width,o=r.height;-1!==e.indexOf("height")&&o?t.height=o:-1!==e.indexOf("minHeight")&&o&&(t.minHeight=o),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){o({width:e.offsetWidth,height:e.offsetHeight})}]}(f),L=(0,x.Z)(j,2),F=L[0],I=L[1];var V=function(e,t){var n=(0,ze.Z)(null),r=(0,x.Z)(n,2),o=r[0],i=r[1],a=(0,l.useRef)();function c(e){i(e,!0)}function s(){d.Z.cancel(a.current)}return(0,l.useEffect)((function(){c("measure")}),[e]),(0,l.useEffect)((function(){"measure"===o&&t(),o&&(a.current=(0,d.Z)((0,De.Z)((0,Ve.Z)().mark((function e(){var t,n;return(0,Ve.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ue.indexOf(o),(n=Ue[t+1])&&-1!==t&&c(n);case 3:case"end":return e.stop()}}),e)})))))}),[o]),(0,l.useEffect)((function(){return function(){s()}}),[]),[o,function(e){s(),a.current=(0,d.Z)((function(){c((function(e){switch(o){case"align":return"motion";case"motion":return"stable"}return e})),null===e||void 0===e||e()}))}]}(n,(function(){f&&I(g())})),D=(0,x.Z)(V,2),z=D[0],U=D[1],B=(0,l.useState)(0),H=(0,x.Z)(B,2),W=H[0],q=H[1],$=(0,l.useRef)();function K(){var e;null===(e=T.current)||void 0===e||e.forceAlign()}function G(e,t){var n=y(t);A!==n&&M(n),q((function(e){return e+1})),"align"===z&&(null===w||void 0===w||w(e,t))}(0,Ie.Z)((function(){"alignPre"===z&&q(0)}),[z]),(0,Ie.Z)((function(){"align"===z&&(W<2?K():U((function(){var e;null===(e=$.current)||void 0===e||e.call($)})))}),[W]);var Y=(0,r.Z)({},S(e));function X(){return new Promise((function(e){$.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=Y[e];Y[e]=function(e,n){return U(),null===t||void 0===t?void 0:t(e,n)}})),l.useEffect((function(){Y.motionName||"motion"!==z||U()}),[Y.motionName,z]),l.useImperativeHandle(t,(function(){return{forceAlign:K,getElement:function(){return O.current}}}));var Q=(0,r.Z)((0,r.Z)({},F),{},{zIndex:u,opacity:"motion"!==z&&"stable"!==z&&n?0:void 0,pointerEvents:n||"stable"===z?void 0:"none"},c),J=!0;!(null===v||void 0===v?void 0:v.points)||"align"!==z&&"stable"!==z||(J=!1);var ee=s;return l.Children.count(s)>1&&(ee=l.createElement("div",{className:"".concat(i,"-content")},s)),l.createElement(Z.Z,(0,o.Z)({visible:n,ref:O,leavedClassName:"".concat(i,"-hidden")},Y,{onAppearPrepare:X,onEnterPrepare:X,removeOnLeave:p,forceRender:h}),(function(e,t){var n=e.className,o=e.style,c=b()(i,a,A,n);return l.createElement(Fe,{target:m||g,key:"popup",ref:T,monitorWindowResize:!0,disabled:J,align:v,onAlign:G},l.createElement("div",{ref:t,className:c,onMouseEnter:E,onMouseLeave:C,onMouseDownCapture:k,onTouchStartCapture:N,onClick:_,style:(0,r.Z)((0,r.Z)({},o),Q)},ee))}))}));Be.displayName="PopupInner";var He=Be,We=l.forwardRef((function(e,t){var n=e.prefixCls,i=e.visible,a=e.zIndex,c=e.children,s=e.mobile,u=(s=void 0===s?{}:s).popupClassName,f=s.popupStyle,d=s.popupMotion,p=void 0===d?{}:d,h=s.popupRender,v=e.onClick,m=l.useRef();l.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var g=(0,r.Z)({zIndex:a},f),y=c;return l.Children.count(c)>1&&(y=l.createElement("div",{className:"".concat(n,"-content")},c)),h&&(y=h(y)),l.createElement(Z.Z,(0,o.Z)({visible:i,ref:m,removeOnLeave:!0},p),(function(e,t){var o=e.className,i=e.style,a=b()(n,u,o);return l.createElement("div",{ref:t,className:a,onClick:v,style:(0,r.Z)((0,r.Z)({},i),g)},y)}))}));We.displayName="MobilePopupInner";var qe=We,$e=["visible","mobile"],Ke=l.forwardRef((function(e,t){var n=e.visible,i=e.mobile,a=(0,E.Z)(e,$e),c=(0,l.useState)(n),s=(0,x.Z)(c,2),u=s[0],f=s[1],d=(0,l.useState)(!1),p=(0,x.Z)(d,2),h=p[0],v=p[1],m=(0,r.Z)((0,r.Z)({},a),{},{visible:u});(0,l.useEffect)((function(){f(n),n&&i&&v((0,C.Z)())}),[n,i]);var g=h?l.createElement(qe,(0,o.Z)({},m,{mobile:i,ref:t})):l.createElement(He,(0,o.Z)({},m,{ref:t}));return l.createElement("div",null,l.createElement(k,m),g)}));Ke.displayName="Popup";var Ge=Ke,Ye=l.createContext(null);function Xe(){}function Qe(){return""}function Je(e){return e?e.ownerDocument:window.document}var et=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var tt=function(e){var t=function(t){(0,s.Z)(g,t);var n=(0,u.Z)(g);function g(e){var t,r;return(0,i.Z)(this,g),(t=n.call(this,e)).popupRef=l.createRef(),t.triggerRef=l.createRef(),t.portalContainer=void 0,t.attachId=void 0,t.clickOutsideHandler=void 0,t.touchOutsideHandler=void 0,t.contextMenuOutsideHandler1=void 0,t.contextMenuOutsideHandler2=void 0,t.mouseDownTimeout=void 0,t.focusTime=void 0,t.preClickTime=void 0,t.preTouchTime=void 0,t.delayTimer=void 0,t.hasPopupMouseDown=void 0,t.onMouseEnter=function(e){var n=t.props.mouseEnterDelay;t.fireEvents("onMouseEnter",e),t.delaySetPopupVisible(!0,n,n?null:e)},t.onMouseMove=function(e){t.fireEvents("onMouseMove",e),t.setPoint(e)},t.onMouseLeave=function(e){t.fireEvents("onMouseLeave",e),t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onPopupMouseEnter=function(){t.clearDelayTimer()},t.onPopupMouseLeave=function(e){var n;e.relatedTarget&&!e.relatedTarget.setTimeout&&(0,p.Z)(null===(n=t.popupRef.current)||void 0===n?void 0:n.getElement(),e.relatedTarget)||t.delaySetPopupVisible(!1,t.props.mouseLeaveDelay)},t.onFocus=function(e){t.fireEvents("onFocus",e),t.clearDelayTimer(),t.isFocusToShow()&&(t.focusTime=Date.now(),t.delaySetPopupVisible(!0,t.props.focusDelay))},t.onMouseDown=function(e){t.fireEvents("onMouseDown",e),t.preClickTime=Date.now()},t.onTouchStart=function(e){t.fireEvents("onTouchStart",e),t.preTouchTime=Date.now()},t.onBlur=function(e){t.fireEvents("onBlur",e),t.clearDelayTimer(),t.isBlurToHide()&&t.delaySetPopupVisible(!1,t.props.blurDelay)},t.onContextMenu=function(e){e.preventDefault(),t.fireEvents("onContextMenu",e),t.setPopupVisible(!0,e)},t.onContextMenuClose=function(){t.isContextMenuToShow()&&t.close()},t.onClick=function(e){if(t.fireEvents("onClick",e),t.focusTime){var n;if(t.preClickTime&&t.preTouchTime?n=Math.min(t.preClickTime,t.preTouchTime):t.preClickTime?n=t.preClickTime:t.preTouchTime&&(n=t.preTouchTime),Math.abs(n-t.focusTime)<20)return;t.focusTime=0}t.preClickTime=0,t.preTouchTime=0,t.isClickToShow()&&(t.isClickToHide()||t.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var r=!t.state.popupVisible;(t.isClickToHide()&&!r||r&&t.isClickToShow())&&t.setPopupVisible(!t.state.popupVisible,e)},t.onPopupMouseDown=function(){var e;(t.hasPopupMouseDown=!0,clearTimeout(t.mouseDownTimeout),t.mouseDownTimeout=window.setTimeout((function(){t.hasPopupMouseDown=!1}),0),t.context)&&(e=t.context).onPopupMouseDown.apply(e,arguments)},t.onDocumentClick=function(e){if(!t.props.mask||t.props.maskClosable){var n=e.target,r=t.getRootDomNode(),o=t.getPopupDomNode();(0,p.Z)(r,n)&&!t.isContextMenuOnly()||(0,p.Z)(o,n)||t.hasPopupMouseDown||t.close()}},t.getRootDomNode=function(){var e=t.props.getTriggerDOMNode;if(e)return e(t.triggerRef.current);try{var n=(0,h.Z)(t.triggerRef.current);if(n)return n}catch(r){}return f.findDOMNode((0,c.Z)(t))},t.getPopupClassNameFromAlign=function(e){var n=[],r=t.props,o=r.popupPlacement,i=r.builtinPlacements,a=r.prefixCls,c=r.alignPoint,s=r.getPopupClassNameFromAlign;return o&&i&&n.push(function(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r.Children.forEach(e,(function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(i(e)):(0,o.isFragment)(e)&&e.props?n=n.concat(i(e.props.children,t)):n.push(e))})),n}},64019:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(73935);function o(e,t,n,o){var i=r.unstable_batchedUpdates?function(e){r.unstable_batchedUpdates(n,e)}:n;return e.addEventListener&&e.addEventListener(t,i,o),{remove:function(){e.removeEventListener&&e.removeEventListener(t,i,o)}}}},98924:function(e,t,n){"use strict";function r(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}n.d(t,{Z:function(){return r}})},94999:function(e,t,n){"use strict";function r(e,t){return!!e&&e.contains(t)}n.d(t,{Z:function(){return r}})},44958:function(e,t,n){"use strict";n.d(t,{hq:function(){return p}});var r=n(98924),o="data-rc-order",i="rc-util-key",a=new Map;function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):i}function s(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function u(e){return"queue"===e?"prependQueue":e?"prepend":"append"}function l(e){return Array.from((a.get(e)||e).children).filter((function(e){return"STYLE"===e.tagName}))}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,r.Z)())return null;var n=t.csp,i=t.prepend,a=document.createElement("style");a.setAttribute(o,u(i)),(null===n||void 0===n?void 0:n.nonce)&&(a.nonce=null===n||void 0===n?void 0:n.nonce),a.innerHTML=e;var c=s(t),f=c.firstChild;if(i){if("queue"===i){var d=l(c).filter((function(e){return["prepend","prependQueue"].includes(e.getAttribute(o))}));if(d.length)return c.insertBefore(a,d[d.length-1].nextSibling),a}c.insertBefore(a,f)}else c.appendChild(a);return a}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=s(t);return l(n).find((function(n){return n.getAttribute(c(t))===e}))}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=s(n);if(!a.has(r)){var o=f("",n),i=o.parentNode;a.set(r,i),i.removeChild(o)}var u=d(t,n);if(u){var l,p,h;if((null===(l=n.csp)||void 0===l?void 0:l.nonce)&&u.nonce!==(null===(p=n.csp)||void 0===p?void 0:p.nonce))u.nonce=null===(h=n.csp)||void 0===h?void 0:h.nonce;return u.innerHTML!==e&&(u.innerHTML=e),u}var v=f(e,n);return v.setAttribute(c(n),t),v}},34203:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(73935);function o(e){return e instanceof HTMLElement?e:r.findDOMNode(e)}},88603:function(e,t,n){"use strict";n.d(t,{tS:function(){return a}});var r=n(74902),o=n(5110);function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,o.Z)(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),a=Number(i),c=null;return i&&!Number.isNaN(a)?c=a:r&&null===c&&(c=0),r&&e.disabled&&(c=null),null!==c&&(c>=0||t&&c<0)}return!1}function a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,r.Z)(e.querySelectorAll("*")).filter((function(e){return i(e,t)}));return i(e,t)&&n.unshift(e),n}},5110:function(e,t){"use strict";t.Z=function(e){if(!e)return!1;if(e instanceof HTMLElement&&e.offsetParent)return!0;if(e instanceof SVGGraphicsElement&&e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e instanceof HTMLElement&&e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}return!1}},79370:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(98924),o=function(e){if((0,r.Z)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some((function(e){return e in n.style}))}return!1};function i(e,t){return Array.isArray(e)||void 0===t?o(e):function(e,t){if(!o(e))return!1;var n=document.createElement("div"),r=n.style[e];return n.style[e]=t,n.style[e]!==r}(e,t)}},15105:function(e,t){"use strict";var n={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,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,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION: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,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=n.F1&&t<=n.F12)return!1;switch(t){case n.ALT:case n.CAPS_LOCK:case n.CONTEXT_MENU:case n.CTRL:case n.DOWN:case n.END:case n.ESC:case n.HOME:case n.INSERT:case n.LEFT:case n.MAC_FF_META:case n.META:case n.NUMLOCK:case n.NUM_CENTER:case n.PAGE_DOWN:case n.PAGE_UP:case n.PAUSE:case n.PRINT_SCREEN:case n.RIGHT:case n.SHIFT:case n.UP:case n.WIN_KEY:case n.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=n.ZERO&&e<=n.NINE)return!0;if(e>=n.NUM_ZERO&&e<=n.NUM_MULTIPLY)return!0;if(e>=n.A&&e<=n.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case n.SPACE:case n.QUESTION_MARK:case n.NUM_PLUS:case n.NUM_MINUS:case n.NUM_PERIOD:case n.NUM_DIVISION:case n.SEMICOLON:case n.DASH:case n.EQUALS:case n.COMMA:case n.PERIOD:case n.SLASH:case n.APOSTROPHE:case n.SINGLE_QUOTE:case n.OPEN_SQUARE_BRACKET:case n.BACKSLASH:case n.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.Z=n},59015:function(e,t,n){"use strict";var r=n(67294),o=n(73935),i=n(98924),a=(0,r.forwardRef)((function(e,t){var n=e.didUpdate,a=e.getContainer,c=e.children,s=(0,r.useRef)(),u=(0,r.useRef)();(0,r.useImperativeHandle)(t,(function(){return{}}));var l=(0,r.useRef)(!1);return!l.current&&(0,i.Z)()&&(u.current=a(),s.current=u.current.parentNode,l.current=!0),(0,r.useEffect)((function(){null===n||void 0===n||n(e)})),(0,r.useEffect)((function(){return null===u.current.parentNode&&null!==s.current&&s.current.appendChild(u.current),function(){var e,t;null===(e=u.current)||void 0===e||null===(t=e.parentNode)||void 0===t||t.removeChild(u.current)}}),[]),u.current?o.createPortal(c,u.current):null}));t.Z=a},38135:function(e,t,n){"use strict";var r;n.d(t,{s:function(){return m},v:function(){return w}});var o,i=n(74165),a=n(15861),c=n(71002),s=n(1413),u=n(73935),l=(0,s.Z)({},r||(r=n.t(u,2))),f=l.version,d=l.render,p=l.unmountComponentAtNode;try{Number((f||"").split(".")[0])>=18&&(o=l.createRoot)}catch(E){}function h(e){var t=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,c.Z)(t)&&(t.usingClientEntryPoint=e)}var v="__rc_react_root__";function m(e,t){o?function(e,t){h(!0);var n=t[v]||o(t);h(!1),n.render(e),t[v]=n}(e,t):function(e,t){d(e,t)}(e,t)}function g(e){return y.apply(this,arguments)}function y(){return(y=(0,a.Z)((0,i.Z)().mark((function e(t){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then((function(){var e;null===(e=t[v])||void 0===e||e.unmount(),delete t[v]})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e){p(e)}function w(e){return x.apply(this,arguments)}function x(){return(x=(0,a.Z)((0,i.Z)().mark((function e(t){return(0,i.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===o){e.next=2;break}return e.abrupt("return",g(t));case 2:b(t);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},74204:function(e,t,n){"use strict";var r;function o(e){if("undefined"===typeof document)return 0;if(e||void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var i=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),r=i-a}return r}function i(e){var t=e.match(/^(.*)px$/),n=Number(null===t||void 0===t?void 0:t[1]);return Number.isNaN(n)?o():n}function a(e){if("undefined"===typeof document||!e||!(e instanceof Element))return{width:0,height:0};var t=getComputedStyle(e,"::-webkit-scrollbar"),n=t.width,r=t.height;return{width:i(n),height:i(r)}}n.d(t,{Z:function(){return o},o:function(){return a}})},66680:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294);function o(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){for(var e,n=arguments.length,r=new Array(n),o=0;o